'Edit information about a library, optionally using an existing template with up to 2 elements'

def library_info(self, cntrller, library_id, library_name='', new_name='', new_description='', new_synopsis='', template_fields=[], strings_displayed=[]):

    self.visit_url(('%s/library_common/library_info?cntrller=%s&id=%s' % (self.url, cntrller, library_id)))
    for check_str in strings_displayed:
        self.check_page_for_string(check_str)
    if (new_name and new_description and new_synopsis):
        tc.fv('1', 'name', new_name)
        tc.fv('1', 'description', new_description)
        tc.fv('1', 'synopsis', new_synopsis)
        tc.submit('library_info_button')
        self.check_page_for_string('Information    updated    for    library')
    if template_fields:
        for (field_name, field_value) in template_fields:
            tc.fv('edit_info', field_name, field_value)
        tc.submit('edit_info_button')
