4 [% USE AuthorisedValues %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Recalls to pull › Circulation › Koha</title>
11 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="circ_recalls_to_pull" class="circ">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'cat-search.inc' %]
17 <div id="breadcrumbs">
18 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
20 › <a href="/cgi-bin/koha/recalls/recalls_to_pull.pl">Recalls to pull</a>
23 <div class="main container-fluid">
25 [% IF Koha.Preference('CircSidebar') %]
26 <div class="col-sm-10 col-sm-push-2">
28 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
32 <h1>Recalls to pull</h1>
33 The following recalls could be fulfilled by available items.
35 [% IF Koha.Preference('UseRecalls') %]
38 <table id="recalls-table">
41 <th class="recall-topull">Pull this many items</th>
42 <th class="recall-items">Items available</th>
43 <th class="recall-patrons">Patrons with recalls</th>
44 <th class="recall-firstpatron">First patron</th>
45 <th class="recall-title anti-the">Title</th>
46 <th class="recall-libraries">Libraries</th>
47 <th class="recall-callnumbers">Available call numbers</th>
48 <th class="recall-copynumbers">Available copy numbers</th>
49 <th class="recall-enumeration">Available enumeration</th>
50 <th class="recall-itemtypes">Available item types</th>
51 <th class="recall-locations">Available locations</th>
52 <th class="recall-date title-string">Earliest recall date</th>
53 <th class="recall-action nosort"> </th>
57 [% FOREACH recall IN recalls %]
59 <td class="recall-topull"><b>[% recall.pull_count | html %]</b></td>
60 <td class="recall-items">[% recall.items_count | html %]</td>
61 <td class="recall-patrons">[% recall.patrons_count | html %]</td>
62 <td class="recall-firstpatron"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.first_recall.borrowernumber | uri %]">[% recall.first_recall.patron.firstname | html %] [% recall.first_recall.patron.surname | html %]</a></td>
63 <td class="recall-title">
64 [% INCLUDE 'biblio-title.inc' biblio=recall.first_recall.biblio link=1 %]
65 [% IF recall.first_recall.biblio.author %] by [% recall.first_recall.biblio.author | html %][% END %]
67 <td class="recall-libraries">
69 [% FOREACH library IN recall.libraries %]
70 <li>[% Branches.GetName( library ) | html %]</li>
74 <td class="recall-callnumbers">
76 [% FOREACH callnumber IN recall.callnumbers %]
77 <li>[% callnumber | html %]</li>
81 <td class="recall-copynumbers">
83 [% FOREACH copyno IN recall.copynumbers %]
84 <li>[% copyno | html %]</li>
88 <td class="recall-enumeration">
90 [% FOREACH enumchron IN recall.enumchrons %]
91 <li>[% enumchron | html %]</li>
95 <td class="recall-itemtypes">
97 [% FOREACH itemtype IN recall.itemtypes %]
98 <li>[% ItemTypes.GetDescription( itemtype ) | html %]</li>
102 <td class="recall-locations">
104 [% FOREACH loc IN recall.locations %]
105 <li>[% AuthorisedValues.GetByCode('LOC', loc) | html %]</li>
109 <td class="recall-date">
110 <span title="[% recall.first_recall.recalldate | html %]">[% recall.first_recall.recalldate | $KohaDates %] in [% recall.first_recall.library.branchname | html %]</span>
112 <td class="recall-action">
113 <form action="/cgi-bin/koha/recalls/recalls_to_pull.pl" method="post">
114 <input type="hidden" name="recall_id" value="[% recall.first_recall.recall_id | html %]">
115 <input type="hidden" name="op" value="cancel">
116 [% IF recall.first_recall.in_transit %]
117 <button type="submit" class="btn btn-default cancelreturn"><i class="fa fa-times"></i> Cancel recall and return to: [% Branches.GetName(recall.first_recall.item.homebranch) | html %]</button>
119 <button type="submit" class="btn btn-default cancel"><i class="fa fa-times"></i> Cancel recall</button>
128 <div class="dialog message">There are no recalls to pull.</div>
132 <div class="dialog message">Recalls have not been enabled. Enable the <a href="/cgi-bin/koha/admin/preferences.pl?tab=circulation">UseRecalls</a> system preference to use recalls.</div>
136 </div> <!-- /.col-etc -->
138 [% IF Koha.Preference('CircSidebar') %]
139 <div class="col-sm-2 col-sm-pull-10">
141 [% INCLUDE 'circ-nav.inc' %]
143 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
146 </div> <!-- /.row -->
149 [% MACRO jsinclude BLOCK %]
150 [% INCLUDE 'datatables.inc' %]
151 [% INCLUDE 'columns_settings.inc' %]
153 $(document).ready(function(){
154 $("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, {
156 { 'bSortable': false, 'aTargets': [ 'nosort' ] },
157 { "sType": "title-string", "aTargets" : [ "title-string" ] },
158 { "sType": "anti-the", "aTargets": [ "anti-the" ] }
160 "sPaginationType": "full_numbers"
163 $(".cancelreturn").click(function(){
164 return confirmDelete(_("Are you sure you want to remove this recall and return the item to it's home library?"));
167 $(".cancel").click(function(){
168 return confirmDelete(_("Are you sure you want to remove this recall?"));
174 [% INCLUDE 'intranet-bottom.inc' %]