Lines 15-25
Link Here
|
15 |
[% INCLUDE 'cat-search.inc' %] |
15 |
[% INCLUDE 'cat-search.inc' %] |
16 |
[% END %] |
16 |
[% END %] |
17 |
|
17 |
|
18 |
<div id="breadcrumbs"> |
18 |
[% WRAPPER 'sub-header.inc' %] |
19 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
19 |
[% WRAPPER breadcrumbs %] |
20 |
› <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> |
20 |
[% WRAPPER breadcrumb_item %] |
21 |
› <a href="/cgi-bin/koha/recalls/recalls_to_pull.pl">Recalls to pull</a> |
21 |
<a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> |
22 |
</div> |
22 |
[% END %] |
|
|
23 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
24 |
<span>Recalls to pull</span> |
25 |
[% END %] |
26 |
[% END #/ WRAPPER breadcrumbs %] |
27 |
[% END #/ WRAPPER sub-header.inc %] |
23 |
|
28 |
|
24 |
<div class="main container-fluid"> |
29 |
<div class="main container-fluid"> |
25 |
<div class="row"> |
30 |
<div class="row"> |
Lines 34-134
Link Here
|
34 |
The following recalls could be fulfilled by available items. |
39 |
The following recalls could be fulfilled by available items. |
35 |
|
40 |
|
36 |
[% IF Koha.Preference('UseRecalls') %] |
41 |
[% IF Koha.Preference('UseRecalls') %] |
37 |
<div id="recalls"> |
42 |
[% IF recalls %] |
38 |
[% IF recalls %] |
43 |
<div id="recalls" class="page-section"> |
39 |
<table id="recalls-table"> |
44 |
<table id="recalls-table"> |
40 |
<thead> |
45 |
<thead> |
41 |
<tr> |
46 |
<tr> |
42 |
<th class="recall-topull">Pull this many items</th> |
47 |
<th class="recall-topull">Pull this many items</th> |
43 |
<th class="recall-items">Items available</th> |
48 |
<th class="recall-items">Items available</th> |
44 |
<th class="recall-patrons">Patrons with recalls</th> |
49 |
<th class="recall-patrons">Patrons with recalls</th> |
45 |
<th class="recall-firstpatron">First patron</th> |
50 |
<th class="recall-firstpatron">First patron</th> |
46 |
<th class="recall-title anti-the">Title</th> |
51 |
<th class="recall-title anti-the">Title</th> |
47 |
<th class="recall-libraries">Libraries</th> |
52 |
<th class="recall-libraries">Libraries</th> |
48 |
<th class="recall-callnumbers">Available call numbers</th> |
53 |
<th class="recall-callnumbers">Available call numbers</th> |
49 |
<th class="recall-copynumbers">Available copy numbers</th> |
54 |
<th class="recall-copynumbers">Available copy numbers</th> |
50 |
<th class="recall-enumeration">Available enumeration</th> |
55 |
<th class="recall-enumeration">Available enumeration</th> |
51 |
<th class="recall-itemtypes">Available item types</th> |
56 |
<th class="recall-itemtypes">Available item types</th> |
52 |
<th class="recall-locations">Available locations</th> |
57 |
<th class="recall-locations">Available locations</th> |
53 |
<th class="recall-date title-string">Earliest recall date</th> |
58 |
<th class="recall-date title-string">Earliest recall date</th> |
54 |
<th class="recall-action nosort"> </th> |
59 |
<th class="recall-action nosort"> </th> |
55 |
</tr> |
60 |
</tr> |
56 |
</thead> |
61 |
</thead> |
57 |
<tbody> |
62 |
<tbody> |
58 |
[% FOREACH recall IN recalls %] |
63 |
[% FOREACH recall IN recalls %] |
59 |
<tr> |
64 |
<tr> |
60 |
<td class="recall-topull"><b>[% recall.pull_count | html %]</b></td> |
65 |
<td class="recall-topull"><b>[% recall.pull_count | html %]</b></td> |
61 |
<td class="recall-items">[% recall.items_count | html %]</td> |
66 |
<td class="recall-items">[% recall.items_count | html %]</td> |
62 |
<td class="recall-patrons">[% recall.patrons_count | html %]</td> |
67 |
<td class="recall-patrons">[% recall.patrons_count | html %]</td> |
63 |
<td class="recall-firstpatron"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.first_recall.patron_id | uri %]">[% recall.first_recall.patron.firstname | html %] [% recall.first_recall.patron.surname | html %]</a></td> |
68 |
<td class="recall-firstpatron"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.first_recall.patron_id | uri %]">[% recall.first_recall.patron.firstname | html %] [% recall.first_recall.patron.surname | html %]</a></td> |
64 |
<td class="recall-title"> |
69 |
<td class="recall-title"> |
65 |
[% INCLUDE 'biblio-title.inc' biblio=recall.first_recall.biblio link=1 %] |
70 |
[% INCLUDE 'biblio-title.inc' biblio=recall.first_recall.biblio link=1 %] |
66 |
[% IF recall.first_recall.biblio.author %] by [% recall.first_recall.biblio.author | html %][% END %] |
71 |
[% IF recall.biblio.author %] by [% recall.biblio.author | html %][% END %] |
67 |
</td> |
72 |
[% recall.item.enumchron | html %] |
68 |
<td class="recall-libraries"> |
73 |
[% IF ( recall.item ) %]<br><em>Barcode: [% recall.item.barcode | html %]</em>[% END %] |
69 |
<ul> |
74 |
</td> |
70 |
[% FOREACH library IN recall.libraries %] |
75 |
<td class="recall-libraries"> |
71 |
<li>[% Branches.GetName( library ) | html %]</li> |
76 |
<ul> |
72 |
[% END %] |
77 |
[% FOREACH library IN recall.libraries %] |
73 |
</ul> |
78 |
<li>[% Branches.GetName( library ) | html %]</li> |
74 |
</td> |
79 |
[% END %] |
75 |
<td class="recall-callnumbers"> |
80 |
</ul> |
76 |
<ul> |
81 |
</td> |
77 |
[% FOREACH callnumber IN recall.callnumbers %] |
82 |
<td class="recall-callnumbers"> |
78 |
<li>[% callnumber | html %]</li> |
83 |
<ul> |
79 |
[% END %] |
84 |
[% FOREACH callnumber IN recall.callnumbers %] |
80 |
</ul> |
85 |
<li>[% callnumber | html %]</li> |
81 |
</td> |
86 |
[% END %] |
82 |
<td class="recall-copynumbers"> |
87 |
</ul> |
83 |
<ul> |
88 |
</td> |
84 |
[% FOREACH copyno IN recall.copynumbers %] |
89 |
<td class="recall-copynumbers"> |
85 |
<li>[% copyno | html %]</li> |
90 |
<ul> |
86 |
[% END %] |
91 |
[% FOREACH copyno IN recall.copynumbers %] |
87 |
</ul> |
92 |
<li>[% copyno | html %]</li> |
88 |
</td> |
93 |
[% END %] |
89 |
<td class="recall-enumeration"> |
94 |
</ul> |
90 |
<ul> |
95 |
</td> |
91 |
[% FOREACH enumchron IN recall.enumchrons %] |
96 |
<td class="recall-enumeration"> |
92 |
<li>[% enumchron | html %]</li> |
97 |
<ul> |
93 |
[% END %] |
98 |
[% FOREACH enumchron IN recall.enumchrons %] |
94 |
</ul> |
99 |
<li>[% enumchron | html %]</li> |
95 |
</td> |
100 |
[% END %] |
96 |
<td class="recall-itemtypes"> |
101 |
</ul> |
97 |
<ul> |
102 |
</td> |
98 |
[% FOREACH itemtype IN recall.itemtypes %] |
103 |
<td class="recall-itemtypes"> |
99 |
<li>[% ItemTypes.GetDescription( itemtype ) | html %]</li> |
104 |
<ul> |
100 |
[% END %] |
105 |
[% FOREACH itemtype IN recall.itemtypes %] |
101 |
</ul> |
106 |
<li>[% ItemTypes.GetDescription( itemtype ) | html %]</li> |
102 |
</td> |
107 |
[% END %] |
103 |
<td class="recall-locations"> |
108 |
</ul> |
104 |
<ul> |
109 |
</td> |
105 |
[% FOREACH loc IN recall.locations %] |
110 |
<td class="recall-locations"> |
106 |
<li>[% AuthorisedValues.GetByCode('LOC', loc) | html %]</li> |
111 |
<ul> |
107 |
[% END %] |
112 |
[% FOREACH loc IN recall.locations %] |
108 |
</ul> |
113 |
<li>[% AuthorisedValues.GetByCode('LOC', loc) | html %]</li> |
109 |
</td> |
114 |
[% END %] |
110 |
<td class="recall-date"> |
115 |
</ul> |
111 |
<span title="[% recall.first_recall.created_date | html %]">[% recall.first_recall.created_date | $KohaDates %] in [% recall.first_recall.library.branchname | html %]</span> |
116 |
</td> |
112 |
</td> |
117 |
<td class="recall-date"> |
113 |
<td class="recall-action"> |
118 |
<span title="[% recall.first_recall.created_date | html %]">[% recall.first_recall.created_date | $KohaDates %] in [% recall.first_recall.library.branchname | html %]</span> |
114 |
<form action="/cgi-bin/koha/recalls/recalls_to_pull.pl" method="post"> |
119 |
</td> |
115 |
<input type="hidden" name="recall_id" value="[% recall.first_recall.id | html %]"> |
120 |
<td class="recall-action"> |
116 |
<input type="hidden" name="op" value="cancel"> |
121 |
<form action="/cgi-bin/koha/recalls/recalls_to_pull.pl" method="post"> |
117 |
[% IF recall.first_recall.in_transit %] |
122 |
<input type="hidden" name="recall_id" value="[% recall.first_recall.id | html %]"> |
118 |
<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> |
123 |
<input type="hidden" name="op" value="cancel"> |
119 |
[% ELSE %] |
124 |
[% IF recall.first_recall.in_transit %] |
120 |
<button type="submit" class="btn btn-default cancel"><i class="fa fa-times"></i> Cancel recall</button> |
125 |
<button type="submit" class="btn btn-default btn-sm cancelreturn"><i class="fa fa-times"></i> Cancel recall and return to: [% Branches.GetName(recall.first_recall.item.homebranch) | html %]</button> |
121 |
[% END %] |
126 |
[% ELSE %] |
122 |
</form> |
127 |
<button type="submit" class="btn btn-default btn-sm cancel"><i class="fa fa-times"></i> Cancel recall</button> |
123 |
</td> |
128 |
[% END %] |
124 |
</tr> |
129 |
</form> |
125 |
[% END %] |
130 |
</td> |
126 |
</tbody> |
131 |
</tr> |
127 |
</table> |
132 |
[% END %] |
128 |
[% ELSE %] |
133 |
</tbody> |
129 |
<div class="dialog message">There are no recalls to pull.</div> |
134 |
</table> |
130 |
[% END %] |
135 |
</div> <!-- /#recalls.page-section --> |
131 |
</div> |
136 |
[% ELSE %] |
|
|
137 |
<div class="dialog message">There are no recalls to pull.</div> |
138 |
[% END %] |
132 |
[% ELSE %] |
139 |
[% ELSE %] |
133 |
<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> |
140 |
<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> |
134 |
[% END %] |
141 |
[% END %] |