[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% USE AuthorisedValues %] [% USE ItemTypes %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% SET libraries = Branches.all %] [% SET categories = Categories.all.unblessed %] [% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] [% PROCESS "patron-search.inc" %] [% FILTER collapse %] [% t("Place a recall") | html %] › [% t("Recalls") | html %] › [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% FILTER collapse %] [% END %] [% WRAPPER 'header.inc' %] [% INCLUDE 'circ-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Catalog [% END %] [% WRAPPER breadcrumb_item %] [% INCLUDE 'biblio-title.inc' link = 1 %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Place a recall [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %] [% WRAPPER 'main-container.inc' aside='biblio-view-menu' wide_centered=1 %]

Recalls

Place a recall on [% INCLUDE 'biblio-title.inc' link = 1 %]

[% IF patron %] [% IF error %]
Cannot place recalls: check your circulation rules.
[% END %] [% IF patron_holds_count %]
Patron has placed one or more record-level holds. Convert a hold to a recall.
[% END %]
Recall details
  1. [% INCLUDE 'patron-title.inc' %]
Recall next available item
    [% UNLESS ( singleBranchMode ) %]
  1. [% END %]
[% INCLUDE 'csrf-token.inc' %] [% IF error %] [% ELSE %] [% END %] Cancel
Recall a specific item [% UNLESS ( singleBranchMode ) %] [% END %] [% FOREACH item IN biblio.items %] [% UNLESS ( singleBranchMode ) %] [% END %] [% END # FOREACH item IN biblio.items %]
  Item type BarcodeHome library Holding libraryCollection Call number Copy number Vol no. Information
[% IF item.can_be_recalled( patron => patron ) %] [% ELSE %] [% END %] [% ItemTypes.GetDescription( item.effective_itemtype ) | html %] [% item.barcode | html %][% Branches.GetName( item.homebranch ) | html %] [% Branches.GetName( item.holdingbranch) | html %][% AuthorisedValues.GetByCode( 'CCODE', item.ccode, 1 ) | html %] [% item.itemcallnumber | html %] [% item.copynumber | html %] [% item.enumchron | html %] [% IF ( item.checkout ) %] Due [% item.checkout.date_due | $KohaDates %] [% ELSIF ( item.get_transfer ) %] In transit from [% Branches.GetName( item.get_transfer.frombranch ) | html %] to [% Branches.GetName( item.get_transfer.tobranch ) | html %] since [% item.get_transfer.datesent | $KohaDates %] [% END %] [% IF ( item.itemlost || item.withdrawn ) %] Unavailable (lost or withdrawn) [% END %] [% IF ( item.notforloan ) %] Not for loan ([% item.notforloan | html %]) [% END %] [% hold = item.current_holds.next %] [% IF ( item.recall ) %] [% IF ( item.recall.waiting_date ) %] Waiting for patron at [% Branches.GetName( item.recall.pickup_library_id ) | html %] since [% item.recall.waiting_date | $KohaDates %]. [% ELSIF ( item.recall.item_id == item.itemnumber ) %] Recalled by patron expected at [% Branches.GetName( item.recall.pickup_library_id ) | html %] since [% item.recall.created_date | $KohaDates %]. [% END %] [% ELSIF ( hold.waitingdate ) %] Waiting for patron at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %]. [% ELSIF ( hold.borrowernumber == logged_in_user.borrowernumber ) %] Patron has already placed a hold on this item. [% END # / IF ( item.recall or hold ) %]
[% INCLUDE 'csrf-token.inc' %] [% IF error %] [% ELSE %] [% END %] Cancel
[% ELSE # patron %] [% IF Koha.Preference('UseRecalls') == 'opac' %]
Due to the UseRecalls system preference, recalls cannot be placed through the staff interface.
[% ELSE %]

Search patrons

[% WRAPPER tabs id= "circ_recalls_select" %] [% WRAPPER tabs_nav %] [% WRAPPER tab_item tabname= "recalls_patronsearch_pane" bt_active= 1 %]Patrons[% END %] [% END # /WRAPPER tabs_nav %] [% WRAPPER tab_panels %] [% WRAPPER tab_panel tabname="recalls_patronsearch_pane" bt_active= 1 %] [% PROCESS patron_search_filters_simple %] [% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] [% END # /tab_panel# %] [% END # /WRAPPER tab_panels %] [% END # /WRAPPER tabs %]
[% END %]

Existing recalls

[% IF Koha.Preference('UseRecalls') != "off" %] [% IF recalls.count %]
[% INCLUDE 'csrf-token.inc' %] Select all [% INCLUDE 'recalls.inc' %]
[% ELSE %]
No recalls have been made.
[% END %] [% ELSE %]
Recalls have not been enabled. Enable the UseRecalls system preference to use recalls.
[% END %]
[% END # patron %] [% END # WRAPPER %] [% MACRO jsinclude BLOCK %] [% Asset.js("js/recalls.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'select2.inc' %] [% SET url_biblio_params = "biblionumber=" _ biblio.biblionumber %] [% UNLESS patron %] [% SET search_results_block_id = 'recalls_patronsearch_pane_panel' %] [%# adjusting variable for patron-search.inc %] [% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %] [% END %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]