Line 0
Link Here
|
|
|
1 |
[% USE KohaDates %] |
2 |
[% USE ItemTypes %] |
3 |
[% USE Branches %] |
4 |
[% USE AuthorisedValues %] |
5 |
|
6 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
<title>Koha › Circulation › Article requests</title> |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
<style type="text/css"> p { margin-top: 0; }</style> |
10 |
</head> |
11 |
|
12 |
<body id="circ_view_holdsqueue" class="circ"> |
13 |
[% INCLUDE 'header.inc' %] |
14 |
[% INCLUDE 'cat-search.inc' %] |
15 |
|
16 |
<script type="text/javascript">//<![CDATA[ |
17 |
$(document).ready(function() { |
18 |
$('#article-request-tabs').tabs(); |
19 |
}); |
20 |
|
21 |
function PrintSlip(link) { |
22 |
window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
23 |
} |
24 |
|
25 |
function Cancel( id, a ) { |
26 |
notes = prompt("Reason for cancelation:"); |
27 |
if ( notes == null ) { |
28 |
return; |
29 |
} |
30 |
|
31 |
a.closest('td').prepend('<img src="[% interface %]/[% theme %]/img/loading-small.gif"/>'); |
32 |
a.closest('div').hide(); |
33 |
$.ajax({ |
34 |
type: "POST", |
35 |
url: '/cgi-bin/koha/svc/article_request', |
36 |
data: { |
37 |
action: 'cancel', |
38 |
id: id, |
39 |
notes: notes |
40 |
}, |
41 |
success: function( data ) { |
42 |
a.closest('tr').remove(); |
43 |
}, |
44 |
dataType: 'json' |
45 |
}); |
46 |
} |
47 |
|
48 |
function Process( id, a ) { |
49 |
a.closest('td').prepend('<img src="[% interface %]/[% theme %]/img/loading-small.gif"/>'); |
50 |
a.closest('div').hide(); |
51 |
$.ajax({ |
52 |
type: "POST", |
53 |
url: '/cgi-bin/koha/svc/article_request', |
54 |
data: { |
55 |
action: 'process', |
56 |
id: id, |
57 |
}, |
58 |
success: function( data ) { |
59 |
a.closest('tr').remove(); |
60 |
}, |
61 |
dataType: 'json' |
62 |
}); |
63 |
} |
64 |
|
65 |
function Complete( id, a ) { |
66 |
a.closest('td').prepend('<img src="[% interface %]/[% theme %]/img/loading-small.gif"/>'); |
67 |
a.closest('div').hide(); |
68 |
$.ajax({ |
69 |
type: "POST", |
70 |
url: '/cgi-bin/koha/svc/article_request', |
71 |
data: { |
72 |
action: 'complete', |
73 |
id: id, |
74 |
}, |
75 |
success: function( data ) { |
76 |
a.closest('tr').remove(); |
77 |
}, |
78 |
dataType: 'json' |
79 |
}); |
80 |
} |
81 |
//]]></script> |
82 |
|
83 |
<div id="breadcrumbs"> |
84 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
85 |
› |
86 |
<a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> |
87 |
› |
88 |
<a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a> |
89 |
</div> |
90 |
|
91 |
<div id="doc" class="yui-t7"> |
92 |
<div id="bd"> |
93 |
<div id="yui-main"> |
94 |
<div class="yui-g"> |
95 |
|
96 |
<h1>Article requests</h1> |
97 |
|
98 |
<div id="article-request-tabs" class="toptabs"> |
99 |
<ul> |
100 |
<li><a href="#article-requests-open">Open ([% article_requests_open.count %])</a></li> |
101 |
<li><a href="#article-requests-processing">Processing ([% article_requests_processing.count %])</a></li> |
102 |
</ul> |
103 |
|
104 |
<div id="article-requests-open"> |
105 |
[% IF article_requests_open.count %] |
106 |
<table id="article-requests-processing-open-table"> |
107 |
<thead> |
108 |
<tr> |
109 |
<th class="ar-title">Title</th> |
110 |
<th class="ar-request">Requested article</th> |
111 |
<th class="ar-collection">Collection</th> |
112 |
<th class="ar-itemtype">Item type</th> |
113 |
<th class="ar-callnumber">Call number</th> |
114 |
<th class="ar-copynumber">Copy number</th> |
115 |
<th class="ar-enumchron">Enumeration</th> |
116 |
<th class="ar-barcode">Barcode</th> |
117 |
<th class="ar-patron">Patron</th> |
118 |
<th class="ar-date">Date</th> |
119 |
<th class="ar-actions">Actions</th> |
120 |
</tr> |
121 |
</thead> |
122 |
|
123 |
<tbody> |
124 |
[% FOREACH ar IN article_requests_open %] |
125 |
<tr> |
126 |
<td class="ar-title"> |
127 |
<p> |
128 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ar.biblionumber %]"> |
129 |
<strong>[% ar.biblio.title | html %]</strong> |
130 |
[% FOREACH s IN itemsloo.subtitle %] [% s %][% END %] |
131 |
</a> |
132 |
</p> |
133 |
|
134 |
<p> |
135 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber %]</div> |
136 |
<div class="ar-author">[% ar.biblio.author %]</div> |
137 |
<div class="ar-pubdata"> |
138 |
[% ar.biblio.biblioitem.publishercode %] |
139 |
|
140 |
[% IF ar.biblio.biblioitem.publicationyear %] |
141 |
, [% ar.biblio.biblioitem.publicationyear %] |
142 |
[% ELSIF ar.biblio.copyrightdate %] |
143 |
, [% ar.biblio.copyrightdate %] |
144 |
[% END %] |
145 |
|
146 |
[% IF ar.biblio.biblioitem.pages %] |
147 |
: [% ar.biblio.biblioitem.pages %] |
148 |
[% END %] |
149 |
|
150 |
[% r.biblio.biblioitem.size %] |
151 |
|
152 |
[% IF ar.biblio.biblioitem.isbn %] |
153 |
ISBN: [% ar.biblio.biblioitem.isbn %] |
154 |
[% END %] |
155 |
</div> |
156 |
</p> |
157 |
</td> |
158 |
<td class="ar-request"> |
159 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title %] </p> [% END %] |
160 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author %] </p> [% END %] |
161 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume %] </p> [% END %] |
162 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue %] </p> [% END %] |
163 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date %] </p> [% END %] |
164 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages %] </p> [% END %] |
165 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters %] </p> [% END %] |
166 |
</td> |
167 |
<td class="ar-collection">[% AuthorisedValues.GetByCode( 'CCODE', ar.item.ccode ) %]</td> |
168 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) %]</td> |
169 |
<td class="ar-callnumber"> |
170 |
[% IF ar.item.location %] |
171 |
<em>[% AuthorisedValues.GetByCode( 'LOC', ar.item.location ) %]</em> |
172 |
[% END %] |
173 |
|
174 |
[% ar.item.itemcallnumber %] |
175 |
</td> |
176 |
<td class="ar-copynumber">[% ar.item.copynumber %]</td> |
177 |
<td class="ar-enumchron">[% ar.item.enumchron %]</td> |
178 |
<td class="ar-barcode">[% ar.item.barcode %]</td> |
179 |
<td class="ar-patron"> |
180 |
<p> |
181 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber %]"> |
182 |
[% ar.borrower.surname %], [% ar.borrower.firstname %] ([% ar.borrower.cardnumber %]) |
183 |
</a> |
184 |
</p> |
185 |
|
186 |
<p>[% ar.borrower.phone %]</p> |
187 |
</td> |
188 |
<td class="ar-date"><span title="[% ar.created_on %]">[% ar.created_on | $KohaDates %]</span></td> |
189 |
<td class="ar-actions"> |
190 |
<div class="dropdown"> |
191 |
<a class="btn btn-mini dropdown-toggle" id="ar-actions" role="button" data-toggle="dropdown" href="#"> |
192 |
Actions <b class="caret"></b> |
193 |
</a> |
194 |
|
195 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="ar-actions"> |
196 |
<li> |
197 |
<a href="#" onclick="Process( [% ar.id %], $(this) ); return false;"> |
198 |
<i class="icon-ok-circle"></i> |
199 |
Process request |
200 |
</a> |
201 |
|
202 |
<a href="#" onclick="Complete( [% ar.id %], $(this) ); return false;"> |
203 |
<i class="icon-ok-circle"></i> |
204 |
Complete request |
205 |
</a> |
206 |
|
207 |
<a href="#" onclick="Cancel( [% ar.id %], $(this) ); return false;"> |
208 |
<i class="icon-remove-circle"></i> |
209 |
Cancel request |
210 |
</a> |
211 |
|
212 |
<a href="#" onclick="PrintSlip('article-request-slip.pl?id=[% ar.id %]'); return false;"> |
213 |
<i class="icon-print"></i> |
214 |
Print slip |
215 |
</a> |
216 |
</li> |
217 |
</ul> |
218 |
</div> |
219 |
</td> |
220 |
</tr> |
221 |
[% END %] |
222 |
</tbody> |
223 |
</table> |
224 |
[% ELSE %] |
225 |
There are currently no open article requests. |
226 |
[% END %] |
227 |
</div> |
228 |
|
229 |
<div id="article-requests-processing"> |
230 |
[% IF article_requests_processing.count %] |
231 |
<table id="article-requests-processing-table"> |
232 |
<thead> |
233 |
<tr> |
234 |
<th class="ar-title">Title</th> |
235 |
<th class="ar-request">Requested article</th> |
236 |
<th class="ar-collection">Collection</th> |
237 |
<th class="ar-itemtype">Item type</th> |
238 |
<th class="ar-callnumber">Call number</th> |
239 |
<th class="ar-copynumber">Copy number</th> |
240 |
<th class="ar-enumchron">Enumeration</th> |
241 |
<th class="ar-barcode">Barcode</th> |
242 |
<th class="ar-patron">Patron</th> |
243 |
<th class="ar-date">Date</th> |
244 |
<th class="ar-actions">Actions</th> |
245 |
</tr> |
246 |
</thead> |
247 |
|
248 |
<tbody> |
249 |
[% FOREACH ar IN article_requests_processing %] |
250 |
<tr> |
251 |
<td class="ar-title"> |
252 |
<p> |
253 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ar.biblionumber %]"> |
254 |
<strong>[% ar.biblio.title | html %]</strong> |
255 |
[% FOREACH s IN itemsloo.subtitle %] [% s %][% END %] |
256 |
</a> |
257 |
</p> |
258 |
|
259 |
<p> |
260 |
<div class="ar-biblionumber content_hidden">[% ar.biblionumber %]</div> |
261 |
<div class="ar-author">[% ar.biblio.author %]</div> |
262 |
<div class="ar-pubdata"> |
263 |
[% ar.biblio.biblioitem.publishercode %] |
264 |
|
265 |
[% IF ar.biblio.biblioitem.publicationyear %] |
266 |
, [% ar.biblio.biblioitem.publicationyear %] |
267 |
[% ELSIF ar.biblio.copyrightdate %] |
268 |
, [% ar.biblio.copyrightdate %] |
269 |
[% END %] |
270 |
|
271 |
[% IF ar.biblio.biblioitem.pages %] |
272 |
: [% ar.biblio.biblioitem.pages %] |
273 |
[% END %] |
274 |
|
275 |
[% r.biblio.biblioitem.size %] |
276 |
|
277 |
[% IF ar.biblio.biblioitem.isbn %] |
278 |
ISBN: [% ar.biblio.biblioitem.isbn %] |
279 |
[% END %] |
280 |
</div> |
281 |
</p> |
282 |
</td> |
283 |
<td class="ar-request"> |
284 |
[% IF ar.title %] <p><strong>Title:</strong> [% ar.title %] </p> [% END %] |
285 |
[% IF ar.author %] <p><strong>Author:</strong> [% ar.author %] </p> [% END %] |
286 |
[% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume %] </p> [% END %] |
287 |
[% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue %] </p> [% END %] |
288 |
[% IF ar.date %] <p><strong>Date:</strong> [% ar.date %] </p> [% END %] |
289 |
[% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages %] </p> [% END %] |
290 |
[% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters %] </p> [% END %] |
291 |
</td> |
292 |
<td class="ar-collection">[% AuthorisedValues.GetByCode( 'CCODE', ar.item.ccode ) %]</td> |
293 |
<td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) %]</td> |
294 |
<td class="ar-callnumber"> |
295 |
[% IF ar.item.location %] |
296 |
<em>[% AuthorisedValues.GetByCode( 'LOC', ar.item.location ) %]</em> |
297 |
[% END %] |
298 |
|
299 |
[% ar.item.itemcallnumber %] |
300 |
</td> |
301 |
<td class="ar-copynumber">[% ar.item.copynumber %]</td> |
302 |
<td class="ar-enumchron">[% ar.item.enumchron %]</td> |
303 |
<td class="ar-barcode">[% ar.item.barcode %]</td> |
304 |
<td class="ar-patron"> |
305 |
<p> |
306 |
<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber %]"> |
307 |
[% ar.borrower.surname %], [% ar.borrower.firstname %] ([% ar.borrower.cardnumber %]) |
308 |
</a> |
309 |
</p> |
310 |
|
311 |
<p>[% ar.borrower.phone %]</p> |
312 |
</td> |
313 |
<td class="ar-date"><span title="[% ar.created_on %]">[% ar.created_on | $KohaDates %]</span></td> |
314 |
<td class="ar-actions"> |
315 |
<div class="dropdown"> |
316 |
<a class="btn btn-mini dropdown-toggle" id="ar-actions" role="button" data-toggle="dropdown" href="#"> |
317 |
Actions <b class="caret"></b> |
318 |
</a> |
319 |
|
320 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="ar-actions"> |
321 |
<li> |
322 |
<a href="#" onclick="Complete( [% ar.id %], $(this) ); return false;"> |
323 |
<i class="icon-ok-circle"></i> |
324 |
Complete request |
325 |
</a> |
326 |
|
327 |
<a href="#" onclick="Cancel( [% ar.id %], $(this) ); return false;"> |
328 |
<i class="icon-remove-circle"></i> |
329 |
Cancel request |
330 |
</a> |
331 |
|
332 |
<a href="#" onclick="PrintSlip('article-request-slip.pl?id=[% ar.id %]'); return false;"> |
333 |
<i class="icon-print"></i> |
334 |
Print slip |
335 |
</a> |
336 |
</li> |
337 |
</ul> |
338 |
</div> |
339 |
</td> |
340 |
</tr> |
341 |
[% END %] |
342 |
</tbody> |
343 |
</table> |
344 |
[% ELSE %] |
345 |
There are currently no article requests being processed. |
346 |
[% END %] |
347 |
</div> |
348 |
</div> |
349 |
</div> |
350 |
</div> |
351 |
</div> |
352 |
[% INCLUDE 'intranet-bottom.inc' %] |