Lines 1-3
Link Here
|
|
|
1 |
[% USE raw %] |
1 |
[% USE Asset %] |
2 |
[% USE Asset %] |
2 |
[% USE Koha %] |
3 |
[% USE Koha %] |
3 |
[% USE KohaDates %] |
4 |
[% USE KohaDates %] |
Lines 5-12
Link Here
|
5 |
<title>Koha › Circulation › Recalls awaiting pickup</title> |
6 |
<title>Koha › Circulation › Recalls awaiting pickup</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
<style type="text/css"> p { margin-top: 0; }</style> |
8 |
<style type="text/css"> p { margin-top: 0; }</style> |
8 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
9 |
<link rel="stylesheet" type="text/css" href="[% interface | url %]/[% theme | uri %]/css/datatables.css" /> |
9 |
[% Asset.js("js/recalls.js") %] |
10 |
[% Asset.js("js/recalls.js") | $raw %] |
10 |
[% INCLUDE 'datatables.inc' %] |
11 |
[% INCLUDE 'datatables.inc' %] |
11 |
<script type="text/javascript"> |
12 |
<script type="text/javascript"> |
12 |
$(document).ready(function() { |
13 |
$(document).ready(function() { |
Lines 46-53
Link Here
|
46 |
<div id="results" class="toptabs"> |
47 |
<div id="results" class="toptabs"> |
47 |
|
48 |
|
48 |
<ul> |
49 |
<ul> |
49 |
<li><a href="#recallswaiting">Recalls waiting: [% recalls.size %]</a></li> |
50 |
<li><a href="#recallswaiting">Recalls waiting: [% recalls.size | html %]</a></li> |
50 |
<li><a href="#recallsover">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') %] days: [% over.size %]</a></li> |
51 |
<li><a href="#recallsover">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.size | html %]</a></li> |
51 |
</ul> |
52 |
</ul> |
52 |
|
53 |
|
53 |
<div id="recallswaiting"> |
54 |
<div id="recallswaiting"> |
Lines 64-88
Link Here
|
64 |
[% FOREACH recall IN recalls %]<tr> |
65 |
[% FOREACH recall IN recalls %]<tr> |
65 |
<td>[% recall.waitingdate | $KohaDates %]</td> |
66 |
<td>[% recall.waitingdate | $KohaDates %]</td> |
66 |
<td> |
67 |
<td> |
67 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber %]"> |
68 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber | uri %]"> |
68 |
[% recall.biblio.title %] |
69 |
[% recall.biblio.title | html %] |
69 |
[% FOREACH s IN recall.biblio.subtitles %] |
70 |
[% FOREACH s IN recall.biblio.subtitles %] |
70 |
[% s %] |
71 |
[% s | html %] |
71 |
[% END %] |
72 |
[% END %] |
72 |
[% recall.item.enumchron %] |
73 |
[% recall.item.enumchron | html %] |
73 |
</a> |
74 |
</a> |
74 |
[% recall.biblio.author %] |
75 |
[% recall.biblio.author | html %] |
75 |
<br><i>Barcode: [% recall.item.barcode %]</i> |
76 |
<br><i>Barcode: [% recall.item.barcode | html %]</i> |
76 |
</td> |
77 |
</td> |
77 |
<td> |
78 |
<td> |
78 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber %]">[% recall.patron.firstname %] [% recall.patron.surname %]</a> |
79 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a> |
79 |
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone %][% END %] |
80 |
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %] |
80 |
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email %]?subject=Recall waiting: [% recall.biblio.title %]">[% recall.patron.email %]</a>[% END %] |
81 |
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %] |
81 |
</td> |
82 |
</td> |
82 |
<td>[% recall.library.branchname %]</td> |
83 |
<td>[% recall.library.branchname | html %]</td> |
83 |
<td> |
84 |
<td> |
84 |
<form action="/cgi-bin/koha/circ/recalls_waiting.pl" method="post"> |
85 |
<form action="/cgi-bin/koha/circ/recalls_waiting.pl" method="post"> |
85 |
<input type="hidden" name="recall_id" value="[% recall.recall_id %]"> |
86 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
86 |
<input type="hidden" name="op" value="expire_recall"> |
87 |
<input type="hidden" name="op" value="expire_recall"> |
87 |
<fieldset class="action"> |
88 |
<fieldset class="action"> |
88 |
<button type="submit" class="btn btn-default btn-xs" id="expire_recall"><i class="fa fa-times"></i> Expire</button> |
89 |
<button type="submit" class="btn btn-default btn-xs" id="expire_recall"><i class="fa fa-times"></i> Expire</button> |
Lines 99-105
Link Here
|
99 |
|
100 |
|
100 |
<div id="recallsover"> |
101 |
<div id="recallsover"> |
101 |
[% IF ( over.size > 0 ) %] |
102 |
[% IF ( over.size > 0 ) %] |
102 |
[% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') %] days.</p>[% END %] |
103 |
[% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %] |
103 |
<table id="recallsover-table"> |
104 |
<table id="recallsover-table"> |
104 |
<thead><tr> |
105 |
<thead><tr> |
105 |
<th class="title-string">Available since</th> |
106 |
<th class="title-string">Available since</th> |
Lines 112-136
Link Here
|
112 |
[% FOREACH recall IN over %]<tr> |
113 |
[% FOREACH recall IN over %]<tr> |
113 |
<td>[% recall.waitingdate | $KohaDates %]</td> |
114 |
<td>[% recall.waitingdate | $KohaDates %]</td> |
114 |
<td> |
115 |
<td> |
115 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber %]"> |
116 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber | uri %]"> |
116 |
[% recall.biblio.title %] |
117 |
[% recall.biblio.title | html %] |
117 |
[% FOREACH s IN recall.biblio.subtitles %] |
118 |
[% FOREACH s IN recall.biblio.subtitles %] |
118 |
[% s %] |
119 |
[% s | html %] |
119 |
[% END %] |
120 |
[% END %] |
120 |
[% recall.item.enumchron %] |
121 |
[% recall.item.enumchron | html %] |
121 |
</a> |
122 |
</a> |
122 |
[% recall.biblio.author %] |
123 |
[% recall.biblio.author | html %] |
123 |
<br><i>Barcode: [% recall.item.barcode %]</i> |
124 |
<br><i>Barcode: [% recall.item.barcode | html %]</i> |
124 |
</td> |
125 |
</td> |
125 |
<td> |
126 |
<td> |
126 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber %]">[% recall.patron.firstname %] [% recall.patron.surname %]</a> |
127 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a> |
127 |
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone %][% END %] |
128 |
[% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %] |
128 |
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email %]?subject=Recall waiting: [% recall.biblio.title %]">[% recall.patron.email %]</a>[% END %] |
129 |
[% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %] |
129 |
</td> |
130 |
</td> |
130 |
<td>[% recall.library.branchname %]</td> |
131 |
<td>[% recall.library.branchname | html %]</td> |
131 |
<td> |
132 |
<td> |
132 |
<form action="/cgi-bin/koha/circ/recalls_waiting.pl" method="post"> |
133 |
<form action="/cgi-bin/koha/circ/recalls_waiting.pl" method="post"> |
133 |
<input type="hidden" name="recall_id" value="[% recall.recall_id %]"> |
134 |
<input type="hidden" name="recall_id" value="[% recall.recall_id | html %]"> |
134 |
<input type="hidden" name="op" value="expire_recall"> |
135 |
<input type="hidden" name="op" value="expire_recall"> |
135 |
<fieldset class="action"> |
136 |
<fieldset class="action"> |
136 |
<button type="submit" class="btn btn-default btn-xs" id="expire_recall"><i class="fa fa-times"></i> Expire</button> |
137 |
<button type="submit" class="btn btn-default btn-xs" id="expire_recall"><i class="fa fa-times"></i> Expire</button> |