4 [% USE AuthorisedValues %]
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>
12 <body id="circ_view_holdsqueue" class="circ">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
16 <script type="text/javascript">//<![CDATA[
17 $(document).ready(function() {
18 $('#article-request-tabs').tabs();
20 [% IF article_requests_pending.count %]
21 $(".ar-pending-none").hide();
24 [% IF article_requests_processing.count %]
25 $(".ar-processing-none").hide();
29 function PrintSlip(link) {
30 window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
33 function Cancel( id, a ) {
34 notes = prompt(_("Reason for cancelation:"));
35 if ( notes == null ) {
39 a.closest('td').prepend('<img src="[% interface %]/[% theme %]/img/loading-small.gif"/>');
40 a.closest('div').hide();
43 url: '/cgi-bin/koha/svc/article_request',
49 success: function( data ) {
50 a.closest('tr').remove();
57 function Process( id, a ) {
58 var table_row = a.closest('tr').clone();
59 table_row.find('.ar-process-request').remove();
61 a.closest('td').prepend('<img src="[% interface %]/[% theme %]/img/loading-small.gif"/>');
62 a.closest('div').hide();
65 url: '/cgi-bin/koha/svc/article_request',
70 success: function( data ) {
71 a.closest('tr').remove();
72 $("#article-requests-processing-table").append( table_row );
73 $("#article-requests-processing-table .ar-processing-none").hide();
80 function Complete( id, a ) {
81 a.closest('td').prepend('<img src="[% interface %]/[% theme %]/img/loading-small.gif"/>');
82 a.closest('div').hide();
85 url: '/cgi-bin/koha/svc/article_request',
90 success: function( data ) {
91 a.closest('tr').remove();
98 function UpdateTabCounts() {
99 var pending_count = $('#article-requests-pending-table tbody tr.ar-row').length;
100 $("#ar_pending_count").html( pending_count );
101 if ( pending_count == 0 ) $(".ar-pending-none").show();
103 var processing_count = $('#article-requests-processing-table tbody tr.ar-row').length;
104 $("#ar_processing_count").html( processing_count );
105 if ( processing_count == 0 ) $(".ar-processing-none").show();
109 <div id="breadcrumbs">
110 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
112 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
114 <a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a>
117 <div id="doc" class="yui-t7">
122 <h1>Article requests</h1>
124 <form id="ar-branchcode-form" method="post">
125 <select name="branchcode" id="branchcode">
126 <option value="">All libraries</option>
127 [% FOREACH b IN Branches.all %]
128 [% IF b.branchcode == branchcode %]
129 <option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option>
131 <option value="[% b.branchcode %]">[% b.branchname %]</option>
135 <button type="submit" class="btn btn-small" type="submit">
136 <i class="fa fa-refresh"></i> Update
140 <div id="article-request-tabs" class="toptabs">
143 <a href="#article-requests-pending">
144 Pending (<span id="ar_pending_count">[% article_requests_pending.count %]</span>)
149 <a href="#article-requests-processing">
150 Processing (<span id="ar_processing_count">[% article_requests_processing.count %]</span>)
155 <div id="article-requests-pending">
156 <table id="article-requests-pending-table">
159 <th class="ar-title">Title</th>
160 <th class="ar-request">Requested article</th>
161 <th class="ar-collection">Collection</th>
162 <th class="ar-itemtype">Item type</th>
163 <th class="ar-callnumber">Call number</th>
164 <th class="ar-copynumber">Copy number</th>
165 <th class="ar-enumchron">Enumeration</th>
166 <th class="ar-barcode">Barcode</th>
167 <th class="ar-patron">Patron</th>
168 <th class="ar-date">Date</th>
169 <th class="ar-actions">Actions</th>
174 <tr class="ar-pending-none">
176 There are no pending article requests at this time.
180 [% FOREACH ar IN article_requests_pending %]
181 <tr class="ar-row ar-pending">
182 <td class="ar-title">
184 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber %]">
185 <strong>[% ar.biblio.title | html %]</strong>
186 [% FOREACH s IN itemsloo.subtitle %] [% s %][% END %]
191 <div class="ar-biblionumber content_hidden">[% ar.biblionumber %]</div>
192 <div class="ar-author">[% ar.biblio.author %]</div>
193 <div class="ar-pubdata">
194 [% ar.biblio.biblioitem.publishercode %]
196 [% IF ar.biblio.biblioitem.publicationyear %]
197 [% ar.biblio.biblioitem.publicationyear %]
198 [% ELSIF ar.biblio.copyrightdate %]
199 [% ar.biblio.copyrightdate %]
202 [% IF ar.biblio.biblioitem.pages %]
203 : [% ar.biblio.biblioitem.pages %]
206 [% r.biblio.biblioitem.size %]
208 [% IF ar.biblio.biblioitem.isbn %]
209 ISBN: [% ar.biblio.biblioitem.isbn %]
214 <td class="ar-request">
215 [% IF ar.title %] <p><strong>Title:</strong> [% ar.title %] </p> [% END %]
216 [% IF ar.author %] <p><strong>Author:</strong> [% ar.author %] </p> [% END %]
217 [% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume %] </p> [% END %]
218 [% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue %] </p> [% END %]
219 [% IF ar.date %] <p><strong>Date:</strong> [% ar.date %] </p> [% END %]
220 [% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages %] </p> [% END %]
221 [% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters %] </p> [% END %]
222 [% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes %] </p> [% END %]
224 <td class="ar-collection">[% AuthorisedValues.GetByCode( 'CCODE', ar.item.ccode ) %]</td>
225 <td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) %]</td>
226 <td class="ar-callnumber">
227 [% IF ar.item.location %]
228 <em>[% AuthorisedValues.GetByCode( 'LOC', ar.item.location ) %]</em>
231 [% ar.item.itemcallnumber %]
233 <td class="ar-copynumber">[% ar.item.copynumber %]</td>
234 <td class="ar-enumchron">[% ar.item.enumchron %]</td>
235 <td class="ar-barcode">[% ar.item.barcode %]</td>
236 <td class="ar-patron">
238 <a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber %]">
239 [% ar.borrower.surname %][% IF ar.borrower.firstname %], [% ar.borrower.firstname %][% END %] ([% ar.borrower.cardnumber %])
243 <p>[% ar.borrower.phone %]</p>
245 <td class="ar-date"><span title="[% ar.created_on %]">[% ar.created_on | $KohaDates %]</span></td>
246 <td class="ar-actions">
247 <div class="dropdown">
248 <a class="btn btn-mini dropdown-toggle" id="ar-actions" role="button" data-toggle="dropdown" href="#">
249 Actions <b class="caret"></b>
252 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="ar-actions">
254 <a class="ar-process-request" href="#" onclick="Process( [% ar.id %], $(this) ); return false;">
255 <i class="fa fa-cog"></i>
259 <a class="ar-complete-request" href="#" onclick="Complete( [% ar.id %], $(this) ); return false;">
260 <i class="fa fa-check-circle"></i>
264 <a class="ar-cancel-request" href="#" onclick="Cancel( [% ar.id %], $(this) ); return false;">
265 <i class="fa fa-minus-circle"></i>
269 <a class="ar-print-request" href="#" onclick="PrintSlip('article-request-slip.pl?id=[% ar.id %]'); return false;">
270 <i class="fa fa-print"></i>
283 <div id="article-requests-processing">
284 <table id="article-requests-processing-table">
287 <th class="ar-title">Title</th>
288 <th class="ar-request">Requested article</th>
289 <th class="ar-collection">Collection</th>
290 <th class="ar-itemtype">Item type</th>
291 <th class="ar-callnumber">Call number</th>
292 <th class="ar-copynumber">Copy number</th>
293 <th class="ar-enumchron">Enumeration</th>
294 <th class="ar-barcode">Barcode</th>
295 <th class="ar-patron">Patron</th>
296 <th class="ar-date">Date</th>
297 <th class="ar-actions">Actions</th>
302 <tr class="ar-processing-none">
304 There are no article requests in processing at this time.
308 [% FOREACH ar IN article_requests_processing %]
309 <tr class="ar-row ar-processing">
310 <td class="ar-title">
312 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ar.biblionumber %]">
313 <strong>[% ar.biblio.title | html %]</strong>
314 [% FOREACH s IN itemsloo.subtitle %] [% s %][% END %]
319 <div class="ar-biblionumber content_hidden">[% ar.biblionumber %]</div>
320 <div class="ar-author">[% ar.biblio.author %]</div>
321 <div class="ar-pubdata">
322 [% ar.biblio.biblioitem.publishercode %]
324 [% IF ar.biblio.biblioitem.publicationyear %]
325 [% ar.biblio.biblioitem.publicationyear %]
326 [% ELSIF ar.biblio.copyrightdate %]
327 [% ar.biblio.copyrightdate %]
330 [% IF ar.biblio.biblioitem.pages %]
331 : [% ar.biblio.biblioitem.pages %]
334 [% r.biblio.biblioitem.size %]
336 [% IF ar.biblio.biblioitem.isbn %]
337 ISBN: [% ar.biblio.biblioitem.isbn %]
342 <td class="ar-request">
343 [% IF ar.title %] <p><strong>Title:</strong> [% ar.title %] </p> [% END %]
344 [% IF ar.author %] <p><strong>Author:</strong> [% ar.author %] </p> [% END %]
345 [% IF ar.volume %] <p><strong>Volume:</strong> [% ar.volume %] </p> [% END %]
346 [% IF ar.issue %] <p><strong>Issue:</strong> [% ar.issue %] </p> [% END %]
347 [% IF ar.date %] <p><strong>Date:</strong> [% ar.date %] </p> [% END %]
348 [% IF ar.pages %] <p><strong>Pages:</strong> [% ar.pages %] </p> [% END %]
349 [% IF ar.chapters %] <p><strong>Chapters:</strong> [% ar.chapters %] </p> [% END %]
350 [% IF ar.patron_notes %] <p><strong>Patron notes:</strong> [% ar.patron_notes %] </p> [% END %]
352 <td class="ar-collection">[% AuthorisedValues.GetByCode( 'CCODE', ar.item.ccode ) %]</td>
353 <td class="ar-itemtype">[% ItemTypes.GetDescription( ar.item.effective_itemtype ) %]</td>
354 <td class="ar-callnumber">
355 [% IF ar.item.location %]
356 <em>[% AuthorisedValues.GetByCode( 'LOC', ar.item.location ) %]</em>
359 [% ar.item.itemcallnumber %]
361 <td class="ar-copynumber">[% ar.item.copynumber %]</td>
362 <td class="ar-enumchron">[% ar.item.enumchron %]</td>
363 <td class="ar-barcode">[% ar.item.barcode %]</td>
364 <td class="ar-patron">
366 <a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% ar.borrower.cardnumber %]">
367 [% ar.borrower.surname %][% IF ar.borrower.firstname %], [% ar.borrower.firstname %][% END %] ([% ar.borrower.cardnumber %])
371 <p>[% ar.borrower.phone %]</p>
373 <td class="ar-date"><span title="[% ar.created_on %]">[% ar.created_on | $KohaDates %]</span></td>
374 <td class="ar-actions">
375 <div class="dropdown">
376 <a class="btn btn-mini dropdown-toggle" id="ar-actions" role="button" data-toggle="dropdown" href="#">
377 Actions <b class="caret"></b>
380 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="ar-actions">
382 <a href="#" onclick="Complete( [% ar.id %], $(this) ); return false;">
383 <i class="icon-ok-circle"></i>
387 <a href="#" onclick="Cancel( [% ar.id %], $(this) ); return false;">
388 <i class="icon-remove-circle"></i>
392 <a href="#" onclick="PrintSlip('article-request-slip.pl?id=[% ar.id %]'); return false;">
393 <i class="icon-print"></i>
409 [% INCLUDE 'intranet-bottom.inc' %]