$def with (work, book)
$ edition_config = get_edition_config()
$ is_privileged_user = ctx.user and (ctx.user.is_admin() or ctx.user.is_librarian())
$def radiobuttons(name, options, value):
$for v in options:
$ id = name + '--' + v.replace(' ', '-')
$ checked = cond(v == value, 'checked="checked"', '')
$v
$jsdef render_language_autocomplete_item(item):
$item.name
$# Render the ith language input field
$jsdef render_language_field(i, language):
$# Render the ith translated_from language input field
$jsdef render_translated_from_language_field(i, language):
$# Render the ith work input field
$jsdef render_work_field(i, work):
$jsdef render_work_autocomplete_item(item):
$if item.key == "__new__":
$_('-- Move to a new work')
$else:
$if item.cover_i:
$item.key.split('/')[2]
$item.full_title
$if item.first_publish_year:
($item.first_publish_year)
$if item.author_name:
by ${', '.join(item.author_name)}
•
$if item.edition_count == 1:
$item.edition_count edition
$else:
$item.edition_count editions
$_("This Edition")
$_("ID Numbers")
$_("Classifications")
$_("The Physical Object")
$if ctx.user and ctx.user.is_admin():
$_("Admin Only")
$if ctx.user: