$def with (doc, data={}, status=None) $putctx('cssfile', 'form') $putctx("show_ol_shell", False) $putctx('robots', 'noindex,nofollow') $if doc.type.key == "/type/author": $ intro = _("There are two ways to put an author's image on Open Library") $ action = doc.url('/add-photo') $ guideline = _("Image Guidelines") $else: $ intro = _("There are two ways to put a cover image on Open Library") $ action = doc.url('/add-cover') $ guideline = _("Cover Guidelines")