[% USE raw %] [% USE Asset %] [% USE KohaDates %] [% USE Koha %] [% USE AuthorisedValues %] [% USE Branches %] [% USE TablesSettings %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% t("Circulation history for") | html %] [% INCLUDE 'patron-title.inc' no_html = 1 %] [% t("Patrons") | html %] › [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'patron-search-header.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Patrons [% END %] [% WRAPPER breadcrumb_item %] [% INCLUDE 'patron-title.inc' %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Circulation history [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %]
[% INCLUDE 'members-toolbar.inc' %]

Circulation history

[% SET all_checkouts = checkouts.merge(old_checkouts) %] [% UNLESS Koha.Preference('intranetreadinghistory') %]
Staff members are not allowed to access patron's checkout history
[% ELSIF is_anonymous %]
This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.
[% ELSIF ( patron.privacy == 2) %]
This patron has set the privacy rules to never keeping a circulation history.
[% ELSIF ( !all_checkouts.size ) %]
This patron has no circulation history.
[% ELSE %]
[% BLOCK table_readingrec %] [% IF Koha.Preference('RecordStaffUserOnCheckout') %] [% END %] [% FOREACH checkout IN all_checkouts %] [% SET item = checkout.item %] [% SET biblio = item.biblio %] [% IF checkout.returndate %][% ELSE %][% END %] [% IF Koha.Preference('RecordStaffUserOnCheckout') %] [% SET issuer = checkout.issuer %] [% END %] [% IF checkout.returndate %] [% END %]
Type Date Title Author Call number Vol info Barcode Number of renewals Checked out on Checked out fromChecked out byDate due Return date
[% IF checkout.onsite_checkout %][% issuetype = 'onsite_checkout' | html %] [% ELSE %][% issuetype = 'standard_checkout' | html %] [% END %] [% issuetype | html %] [% checkout.timestamp | $KohaDates with_hours => 1 %] [% INCLUDE 'biblio-title.inc' biblio=biblio link = 1 %] [% biblio.author | html %] [% item.itemcallnumber | html %] [% IF item.enumchron %] [% item.enumchron | html %] [% END %] [% item.barcode | html %] [% checkout.renewals_count | html %] [% IF checkout.renewals_count > 0 %] [ View ] [% END %] [% checkout.issuedate | $KohaDates with_hours => 1 %] [% Branches.GetName( checkout.branchcode ) | html %][% issuer.firstname | html %] [% issuer.surname | html %] [% checkout.date_due | $KohaDates as_due_date => 1 %] [% checkout.returndate | $KohaDates with_hours => 1 %] [% ELSE %] Checked out [% END %]
[% END %] [% IF Koha.Preference('OnSiteCheckouts') %] [% WRAPPER tabs id= "tabs" %] [% WRAPPER tabs_nav %] [% WRAPPER tab_item tabname= "tab_all" bt_active= 1 %] All [% END %] [% WRAPPER tab_item tabname= "tab_checkout" %] Checkouts [% END %] [% WRAPPER tab_item tabname= "tab_onsite_checkout" %] On-site checkouts [% END %] [% END # /WRAPPER tabs_nav %] [% WRAPPER tab_panels %] [% WRAPPER tab_panel tabname="readingrec" bt_active= 1 %] [% INCLUDE table_readingrec %] [% END # /tab_panel# %] [% END # /WRAPPER tab_panels %] [% END # /WRAPPER tabs %] [% ELSE %]
[% INCLUDE table_readingrec %]
[% END # /IF Koha.Preference('OnSiteCheckouts') %] [% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'modals/checkout_renewals.inc' %] [% INCLUDE 'js-date-format.inc' %] [% INCLUDE 'js-patron-format.inc' %] [% Asset.js("js/checkout_renewals_modal.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]