$def with (work_key, read_status, edition_key=None, last_read_date=None, event_id=None) $# work_key : str : The work key $# read_status : int | None : Number representing which shelf this work is on. $# Possible Values: $# 1 : Want to Read $# 2 : Currently Reading $# 3 : Already Read $# None : Work is not on the patron's shelf $# edition_key : str | None : The edition key $# last_read_date : str | None : Date that the patron last read the book $# event_id : str | None : ID of record for this event $ work_olid = work_key.split('/')[-1] $ modal_id = 'check-in-dialog-%s' % work_olid $ prompt_id = 'prompt-%s' % work_olid
Read: $last_read_date $_("Edit Date")
$ display_prompt = read_status == 3
$_("When did you finish this book?") $_("Today") $_("Custom Date")
$ check_in_form = render_template('check_ins/modal_form', work_olid, work_key, edition_key=edition_key, last_read_date=last_read_date, event_id=event_id) $:render_template('native_dialog', modal_id, check_in_form, title=_("Check-In"))