$# Render the ith translated_from language input field
$jsdef render_translated_from_language_field(i, language, i18n_name):
$ lang_name = i18n_name or language.name
$# Render the ith work input field
$jsdef render_work_field(i, work):
$# Import the side-effect of the jsdef function
$:render_template('jsdef/LazyWorkPreview', None)
$jsdef render_work_autocomplete_item(item):
$if item.key == "__new__":
$_('-- Move to a new work')
$else:
$:render_lazy_work_preview(item)
$ config = ({
$ 'Please select an identifier.': _('Please select an identifier.'),
$ 'You need to give a value to ID.': _('You need to give a value to ID.'),
$ 'ID ids cannot contain whitespace.': _('ID ids cannot contain whitespace.'),
$ 'ID must be exactly 10 characters [0-9] or X.': _('ID must be exactly 10 characters [0-9] or X.'),
$ 'That ID already exists for this edition.': _('That ID already exists for this edition.'),
$ 'ID must be exactly 13 digits [0-9]. For example: 978-1-56619-909-4': _('ID must be exactly 13 digits [0-9]. For example: 978-1-56619-909-4'),
$ 'Invalid ID format': _('Invalid ID format')
$ })
$_("Like, ISBN?")
{{\$("#select-id").find("option[value='" + name + "']").html()}}