$def with (work=None, authors=None, recaptcha=None) $var title: $_("Add a book") $ i18n_strings = { $ "invalid_checksum": _("Invalid ISBN checksum digit"), $ "invalid_isbn10": _("ID must be exactly 10 characters [0-9 or X]. For example 0-19-853453-1 or 0198534531"), $ "invalid_isbn13": _("ID must be exactly 13 characters [0-9]. For example 978-3-16-148410-0 or 9783161484100"), $ "invalid_lccn": _("Invalid LC Control Number format"), $ "empty_id": _("Please enter a value for the selected identifier"), $ "invalid_publish_date": _("Are you sure that's the published date?") $ }

$_("Add a book to Open Library")

$_("We require a minimum set of fields to create a new record. These are those fields.")

$if not ctx.user: $:render_template("lib/not_logged")
$:_('Use Title: Subtitle to add a subtitle.') *$_("Required field")
$if work: $else:
$_('Like, "Agatha Christie" or "Jean-Paul Sartre." We\'ll also do a live check to see if we already know the author.')
$:render_template("books/author-autocomplete", authors, "author_names", "authors", readonly=work is not None)
$_("For example:") $_("Oxford University Press; Penguin; W.W. Norton")*$_("Required field")
$_("You should be able to find this in the first few pages of the book.")*$_("Required field")
$ is_privileged = ctx.user and (ctx.user.is_admin() or ctx.user.is_super_librarian())
 
$ is_admin = ctx.user and ctx.user.is_admin() $if is_admin:
$_("Only fill this out if this is a web book")
$if recaptcha and not ctx.user: $:render_template("recaptcha", recaptcha.public_key, error=None)

$:_('By saving a change to this wiki, you agree that your contribution is given freely to the world under CC0. Yippee!')
  $_("Cancel")