7 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>Koha › ILL requests</title>
13 [% INCLUDE 'doc-head-close.inc' %]
16 <body id="illrequests" class="ill">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'cat-search.inc' %]
20 <div id="breadcrumbs">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
22 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
23 [% IF query_type == 'create' %]
25 [% ELSIF query_type == 'status' %]
30 <div class="main container-fluid">
33 [% IF query_type == 'illlist' %]
34 <div class="col-sm-2">
36 <form method="get" id="illfilter_form">
37 <fieldset class="brief">
41 <label for="illfilter_status">Status:</label>
42 <select name="illfilter_status" id="illfilter_status">
43 <option value=""></option>
47 <label for="illfilter_dateplaced_start">Date placed between:</label>
48 <input type="text" name="illfilter_dateplaced_start" id="illfilter_dateplaced_start" class="datepicker" />
51 <label for="illfilter_dateplaced_end">and:</label>
52 <input type="text" name="illfilter_dateplaced_end" id="illfilter_dateplaced_end" class="datepicker" />
55 <label for="illfilter_datemodified_start">Updated between:</label>
56 <input type="text" name="illfilter_datemodified_start" id="illfilter_datemodified_start" class="datepicker" />
59 <label for="illfilter_datemodified_end">and:</label>
60 <input type="text" name="illfilter_datemodified_end" id="illfilter_datemodified_end" class="datepicker" />
63 <label for="illfilter_branchname">Library:</label>
64 <select name="illfilter_branchname" id="illfilter_branchname">
65 <option value=""></option>
69 <label for="illfilter_patron">Patron:</label>
70 <input type="text" name="illfilter_patron" id="illfilter_patron" />
73 <fieldset class="action">
74 <input type="submit" value="Search" />
75 <input type="button" value="Clear" id="clear_search" />
78 </form> <!-- /#illfilter_form -->
80 </div> <!-- /.col-sm-2 -->
81 <div class="col-sm-10">
84 <div class="col-sm-10 col-sm-offset-2">
87 <div id="interlibraryloans">
88 [% IF !backends_available || !has_branch %]
89 <div class="dialog message">ILL module configuration problem. Take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a></div>
91 [% INCLUDE 'ill-toolbar.inc' %]
94 <h1>Error performing operation</h1>
95 <!-- Dispatch on Status -->
96 <p>We encountered an error:</p>
98 <pre>[% whole.message | html %] ([% whole.status | html %])</pre>
102 [% IF query_type == 'create' %]
103 <h1>New ILL request</h1>
104 [% PROCESS $whole.template %]
106 [% ELSIF query_type == 'confirm' %]
107 <h1>Confirm ILL request</h1>
108 [% PROCESS $whole.template %]
110 [% ELSIF query_type == 'cancel' and !whole.error %]
111 <h1>Cancel a confirmed request</h1>
112 [% PROCESS $whole.template %]
114 [% ELSIF query_type == 'check_out' and !whole.error %]
115 [% IF !whole.stage || whole.stage == 'form' %]
116 <h1 id="ill-issue-title">Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]</h1>
117 [% IF !request.biblio_id || request.biblio_id.length == 0 %]
118 <div class="alert">This item cannot be issued as it has no biblio record associated with it</div>
120 [% IF whole.value.errors.itemcount %]
121 <div class="alert">The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.</div>
123 [% IF whole.value.errors.item_creation %]
124 <div class="alert">An unknown error occurred while trying to add an item</div>
126 [% IF whole.value.errors.item_check_out %]
127 <div class="alert">An unknown error occurred while trying to check out the item</div>
129 [% IF whole.value.check_out_errors %]
130 [% IF whole.value.check_out_errors.error.STATS %]
136 There was a problem checking this item out, please check for problems with the <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% whole.value.patron.borrowernumber | uri %]">patron's account</a>
140 [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]
141 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
142 <fieldset class="rows">
143 <legend>Check out details</legend>
144 [% items = whole.value.biblio.items.unblessed %]
145 [% IF items.size == 1 %]
146 <p>The bibliographic record for this request already has an item attached to it, you are about to check it out</p>
148 <p>A bibliographic record for this request exists, but no item. You are about to create an item and check it out</p>
151 <li class="ill_checkout_inhouse">
152 <label for="inhouse" class="ill_checkout_inhouse_label">Statistical patron:</label>
153 <select id="ill_checkout_inhouse_select" name="inhouse" class="ill_checkout_inhouse_select">
154 <option value=""></option>
155 [% FOREACH stat IN whole.value.statistical %]
156 [% IF stat.borrowernumber == params.inhouse %]
157 <option value="[% stat.cardnumber | html %]" selected>[% INCLUDE 'patron-title.inc' patron = stat %]</option>
159 <option value="[% stat.cardnumber | html %]">[% INCLUDE 'patron-title.inc' patron = stat %]</option>
163 [% IF whole.value.errors.inhouse %]
164 <span class="required">You must choose a valid patron</span>
166 <div class="hint">If you do not wish to check out the item to [% INCLUDE 'patron-title.inc' patron = request.patron %] and would rather issue it to an in-house statistical patron, choose the patron here</div>
168 <li class="ill_checkout_item_type">
169 <label for="item_type" class="ill_checkout_item_type_label required">Item type:</label>
170 [% IF items.size != 1 %]
171 <select id="ill_checkout_item_type_select" name="item_type" required>
172 [% FOREACH type IN whole.value.itemtypes %]
173 [% IF type.itemtype == params.item_type %]
174 <option value="[% type.itemtype | html %]" selected>
176 <option value="[% type.itemtype | html %]">
178 [% type.description | html %]
183 [% FOREACH type IN whole.value.itemtypes %]
184 [% IF type.itemtype == items.0.itype %]
185 [% type.description | html %]
189 [% IF whole.value.errors.item_type %]
190 <span class="required">You must choose an item type</span>
193 [% IF items.size == 1 %]
195 <label for="barcode" class="ill_checkout_barcode_label">Item barcode:</label>
196 [% items.0.barcode | html %]
199 <li class="ill_checkout_branchcode">
200 <label for="branchcode" class="ill_checkout_branchcode_label required">Library:</label>
201 [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %]
202 [% IF items.size != 1 %]
203 <select name="branchcode" id="ill_checkout_branchcode_select" required>
204 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
207 [% FOREACH branch IN whole.value.libraries.unblessed %]
208 [% IF branch.branchcode == branchcode %]
209 [% branch.branchname | html %]
213 [% IF whole.value.errors.branchcode %]
214 <span class="required">You must choose a branch</span>
217 <li class="ill_checkout_due_date">
218 <label for="duedate" class="ill_checkout_duedate_label">Due date:</label>
219 <input name="duedate" id="ill_checkout_duedate_input" type="text" value="[% params.duedate | html %]"> [% INCLUDE 'date-format.inc' %]
220 <div class="hint">If you do not specify a due date, it will be set according to circulation rules</p>
224 <fieldset class="action">
225 <input type="hidden" value="check_out" name="method">
226 <input type="hidden" value="form" name="stage">
227 [% IF items.size == 1 %]
228 <input name="branchcode" type="hidden" value="[% branchcode | html %]">
229 <input name="item_type" type="hidden" value="[% items.0.itype | html %]">
231 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
232 <input type="submit" value="Submit">
233 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
237 [% IF whole.value.check_out_errors.error.STATS %]
238 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
240 [% ELSIF whole.stage == 'done_check_out' %]
241 <h1>Item checked out</h1>
242 <fieldset class="rows">
243 <legend>Check out details</legend>
246 <label>Checked out to:</label>
247 [% INCLUDE 'patron-title.inc' patron = whole.value.patron %]
250 <label>Due date:</label>
251 [% whole.value.check_out.date_due | $KohaDates with_hours => 1 %]
255 <fieldset class="action">
256 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
260 [% ELSIF query_type == 'generic_confirm' %]
261 <h1>Place request with partner libraries</h1>
263 [% IF error == 'no_target_email' %]
265 No target email addresses found. Either select at least
266 one partner or check your ILL partner library records.
268 [% ELSIF error == 'no_library_email' %]
270 Your library has no usable email address. Please set it.
272 [% ELSIF error == 'unkown_error' %]
274 Unknown error processing your request. Contact your administrator.
278 <!-- Start of GENERIC_EMAIL case -->
279 [% IF whole.value.partners %]
280 [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=" _ request.illrequest_id %]
281 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
282 <fieldset class="rows">
283 <legend>Interlibrary loan request details</legend>
286 <label for="partner_filter">Filter partner libraries:</label>
287 <input type="text" id="partner_filter" />
290 <label for="partners" class="required">Select partner libraries:</label>
291 <select size="5" multiple="true" id="partners" name="partners" required="required">
292 [% FOREACH partner IN whole.value.partners %]
293 [% IF partner.email && partner.email.length > 0 %]
294 <option data-partner-id="[% partner.id | html %]" value=[% partner.email | html %]>
295 [% partner.branchcode _ " - " _ partner.surname %]
300 [% IF Koha.Preference('ILLCheckAvailability') %]
301 <div id="generic_confirm_search_count">Partners available for searching: <span id="generic_confirm_enabled">none</span></div>
302 <div id="generic_confirm_search">
303 <button type="button">Search selected partners</button>
308 <label for="subject" class="required">Subject line:</label>
309 <input type="text" name="subject" id="subject" type="text" value="[% whole.value.draft.subject | html %]" required="required" />
312 <label for="body" class="required">Email text:</label>
313 <textarea name="body" id="body" rows="20" cols="80" required="required">[% whole.value.draft.body | html %]</textarea>
316 <input type="hidden" value="generic_confirm" name="method">
317 <input type="hidden" value="draft" name="stage">
318 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
320 <fieldset class="action">
321 <input type="submit" class="btn btn-default" value="Send email"/>
322 <span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span>
325 [% IF Koha.Preference('ILLCheckAvailability') %]
326 <div id="partnerSearch" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="partnerSearchLabel" aria-hidden="true">
327 <div class="modal-dialog">
328 <div class="modal-content">
329 <div class="modal-header">
330 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
331 <h3 id="partnerSearchLabel"> Search partners</h3>
333 <div class="modal-body">
334 [% FOR service IN services %]
335 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
336 [% INCLUDE 'ill-availability-table.inc' service=service %]
338 <span id="service_id_restrict" data-service_id_restrict_plugin="ILL availability - z39.50" data-service_id_restrict_ids=""></span>
340 <div class="modal-footer">
341 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
349 <fieldset class="rows">
350 <legend>Interlibrary loan request details</legend>
351 <p>No partners have been defined yet. Please create appropriate patron records (by default ILLLIBS category).</p>
352 <p>Be sure to provide email addresses for these patrons.</p>
353 <p><span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span></p>
356 <!-- generic_confirm ends here -->
358 [% ELSIF query_type == 'edit_action' %]
359 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
360 <fieldset class="rows">
361 <legend>Request details</legend>
363 [% type = request.get_type %]
364 <li class="borrowernumber">
365 <label for="borrowernumber">Patron ID:</label>
366 [% request.borrowernumber | html %]
368 <li class="biblio_id">
369 <label for="biblio_id" class="biblio_id">Bibliographic record ID:</label>
370 <input name="biblio_id" id="biblio_id" type="text" value="[% request.biblio_id | html %]">
372 <li class="branchcode">
373 <label for="library" class="branchcode">Library:</label>
374 <select name="branchcode" id="library">
375 [% PROCESS options_for_libraries libraries => Branches.all( selected => request.branchcode ) %]
379 <label class="status">Status:</label>
380 [% stat = request.status %]
381 [% current_alias = request.status_alias %]
382 <select id="status_alias" name="status_alias">
383 [% IF !current_alias %]
384 <option value="" selected>
388 [% request.capabilities.$stat.name | html %]
390 [% FOREACH alias IN AuthorisedValues.Get('ILLSTATUS') %]
391 [% IF alias.authorised_value == current_alias %]
392 <option value="[% alias.authorised_value | html %]" selected>
394 <option value="[% alias.authorised_value | html %]">
396 [% alias.lib | html %]
402 <label class="updated">Last updated:</label>
403 [% request.updated | $KohaDates with_hours => 1 %]
406 <label class="medium">Request type:</label>
407 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
410 <label class="cost">Cost:</label>
411 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
413 <li class="price_paid">
414 <label class="price_paid">Price paid:</label>
415 <input name="price_paid" id="price_paid" type="text" value="[% request.price_paid | html %]">
418 <label class="req_id">Request number:</label>
419 [% request.id_prefix _ request.illrequest_id | html %]
421 <li class="notesstaff">
422 <label for="notesstaff" class="notesstaff">Staff notes:</label>
423 <textarea name="notesstaff" id="notesstaff" rows="5">[% request.notesstaff | html %]</textarea>
425 <li class="notesopac">
426 <label for="notesopac" class="notesopac">Opac notes:</label>
427 <textarea name="notesopac" id="notesopac" rows="5">[% request.notesopac | html %]</textarea>
431 <fieldset class="action">
432 <input type="hidden" value="edit_action" name="method">
433 <input type="hidden" value="form" name="stage">
434 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
435 <input type="hidden" value="[% request.borrowernumber | html %]" name="borrowernumber">
436 <input type="submit" value="Submit">
437 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
441 [% ELSIF query_type == 'delete_confirm' %]
443 <div class="dialog alert">
444 <h3>Are you sure you wish to delete this request?</h3>
445 <form action="/cgi-bin/koha/ill/ill-requests.pl" method="post">
446 <input type="hidden" name="method" value="delete" />
447 <input type="hidden" name="confirmed" value="1" />
448 <input type="hidden" name="illrequest_id" value="[% request.id | html %]" />
449 <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
451 <a class="btn btn-default deny" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]"><i class="fa fa-fw fa-remove"></i>No, do not delete</a>
454 [% ELSIF query_type == 'illview' %]
455 [% req_status = request.status %]
458 [% IF error == 'migrate_target' %]
460 The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
465 <h1>Manage ILL request</h1>
466 <div id="request-toolbar" class="btn-toolbar">
467 <a title="Edit request" id="ill-toolbar-btn-edit-action" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=edit_action&illrequest_id=[% request.illrequest_id | html %]">
468 <span class="fa fa-pencil"></span>
471 [% FOREACH action IN request.available_actions %]
472 [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %]
473 [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %]
474 [% needs_all = action.needs_all.size ? action.needs_all : [] %]
475 [% has_prefs_count = 0 %]
476 [% has_perms_count = 0 %]
477 [% has_all_count = 0 %]
478 [% FOREACH pref IN needs_prefs %]
479 [% IF Koha.Preference(pref) %]
480 [% has_prefs_count = has_prefs_count + 1 %]
483 [% FOREACH perm IN needs_perms %]
484 [% perm_name = 'CAN_' _ perm %]
485 [% IF ($perm_name) %]
486 [% has_perms_count = has_perms_count + 1 %]
489 [% FOREACH func IN needs_all %]
490 [% IF func(request) %]
491 [% has_all_count = has_all_count + 1 %]
494 [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %]
495 [% IF action.method == 'migrate' %]
496 [% IF backends.size > 2 %]
497 <div class="dropdown btn-group">
498 <button class="btn btn-default dropdown-toggle" type="button" id="ill-migrate-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
499 <i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] <span class="caret"></span>
501 <ul class="dropdown-menu" aria-labelledby="ill-migrate-dropdown">
502 [% FOREACH backend IN backends %]
503 [% IF backend != request.backend %]
504 <li><a href="/cgi-bin/koha/ill/ill-requests.pl?method=[% action.method | uri %]&illrequest_id=[% request.illrequest_id | uri %]&backend=[% backend | uri %]">[% backend | html %]</a></li>
509 [% ELSIF backends.size == 2 %]
510 [% FOREACH backend IN backends %]
511 [% IF backend != request.backend %]
512 <a title="[% action.ui_method_name | html %]" id="ill-toolbar-btn-[% action.id | lower | html %]" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=[% action.method | uri %]&illrequest_id=[% request.illrequest_id | uri %]&backend=[% backend | uri %]">
513 <span class="fa [% action.ui_method_icon | html %]"></span>
514 [% action.ui_method_name | html %]
519 [% ELSIF action.method != 0 %]
520 <a title="[% action.ui_method_name | html %]" id="ill-toolbar-btn-[% action.id | lower | html %]" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=[% action.method | uri %]&illrequest_id=[% request.illrequest_id | uri %]">
521 <span class="fa [% action.ui_method_icon | html %]"></span>
522 [% action.ui_method_name | html %]
526 <a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-default pull-right" href="#">
527 <span class="fa fa-eye"></span>
528 Display supplier metadata
530 <a title="ILL request log" id="ill-request-display-log" class="btn btn-default pull-right" href="#">
531 <span class="fa fa-calendar"></span>
535 <div class="ill-view-panel panel panel-default">
536 <div class="panel-heading">
537 <h3>Request details</h3>
539 <div class="panel-body">
540 <h4>Details from library</h4>
544 <span class="label orderid">Order ID:</span>
545 [% IF request.orderid %][% request.orderid | html %][% ELSE %]<span>N/A</span>[% END %]
547 <li class="borrowernumber">
548 <span class="label borrowernumber">Patron:</span>
549 [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
550 <a href="[% borrowerlink | url %]" title="View borrower details">
551 [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
555 <li class="biblio_id">
556 <span class="label biblio_id">Bibliographic record ID:</span>
557 [% IF request.biblio_id %]
558 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id | uri %]">[% request.biblio_id | html %]</a>
563 <li class="branchcode">
564 <span class="label branchcode">Library:</span>
565 [% Branches.GetName(request.branchcode) | html %]
568 <span class="label status">Status:</span>
569 [% IF request.statusalias %]
570 [% request.statusalias.lib | html %]
572 [% request.capabilities.$req_status.name | html%]
573 [% IF request.requested_partners.length > 0 %]
574 ([% request.requested_partners | html %])
579 <span class="label updated">Last updated:</span>
580 [% request.updated | $KohaDates with_hours => 1 %]
583 <span class="label medium">Request type:</span>
584 [% type = request.get_type %]
585 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
588 <span class="label cost">Cost:</span>
589 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
591 <li class="price_paid">
592 <span class="label price_paid">Price paid:</span>
593 [% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]<span>N/A</span>[% END %]
596 <span class="label req_id">Request number:</span>
597 [% request.id_prefix _ request.illrequest_id | html %]
599 <li class="notesstaff">
600 <span class="label notes_staff">Staff notes:</span>
601 <p>[% request.notesstaff | html %]</p>
603 <li class="notesopac">
604 <span class="label notes_opac">Notes:</span>
605 <p>[% request.notesopac | html %]</p>
610 <h4>Details from supplier ([% request.backend | html %])</h4>
612 [% FOREACH meta IN request.metadata %]
613 <li class="requestmeta-[% meta.key.replace('\s','_') | html %]">
614 <span class="label">[% meta.key | html %]:</span>
615 [% meta.value | html %]
623 <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
624 <div class="modal-dialog">
625 <div class="modal-content">
626 <div class="modal-header">
627 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
628 <h3 id="dataPreviewLabel"> Supplier metadata</h3>
630 <div class="modal-body">
631 <div id="requestattributes">
632 [% FOREACH attr IN request.illrequestattributes %]
633 <div class="requestattr-[% attr.type | html %]">
634 <span class="label">[% attr.type | html %]:</span>
635 [% attr.value | html %]
640 <div class="modal-footer">
641 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
647 <div id="requestLog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
648 <div class="modal-dialog">
649 <div class="modal-content">
650 <div class="modal-header">
651 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
652 <h3 id="requestLogLabel"> Request log</h3>
654 <div class="modal-body">
655 [% IF request.logs.size > 0 %]
656 [% FOREACH log IN request.logs %]
657 [% tpl = log.template %]
658 [% INCLUDE $tpl log=log %]
661 There are no recorded logs for this request
664 <div class="modal-footer">
665 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
671 <div class="ill-view-panel panel panel-default">
672 <div class="panel-heading">
673 <h3>[% request.illcomments.count | html %] comments</h3>
675 <div class="panel-body">
676 [% IF request.illcomments.count && request.illcomments.count > 0 %]
677 [% FOREACH comment IN request.illcomments %]
678 <div class="rows comment_[% comment.patron.categorycode | html %]">
680 <a href="[% borrowerlink | url %]" title="View borrower details">
681 [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %]</a>
682 [% comment.timestamp | $KohaDates with_hours => 1 %]</h5>
683 <p>[% comment.comment | html %]</p>
688 <h3><a id="toggle_addcomment" href="#">Add comment</a></h3>
689 <div id="addcomment" class="content_hidden">
690 <form class="validated" method="post" action="/cgi-bin/koha/ill/ill-requests.pl">
691 <input type="hidden" value="save_comment" name="method">
692 <input type="hidden" value="[% csrf_token | html %]" name="csrf_token">
693 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
694 <fieldset class="rows">
697 <label class="required" for="comment">Comment: </label>
698 <textarea class="required" required="required" cols="80" rows="10" id="comment" name="comment"></textarea>
699 <span class="required">Required</span>
703 <fieldset class="action">
704 <input type="submit" value="Submit">
712 [% ELSIF query_type == 'illlist' %]
714 <h1>View ILL requests</h1>
716 <h3>Details for all requests</h3>
717 [% INCLUDE 'ill-list-table.inc' %]
719 </div> <!-- /#results -->
720 [% ELSIF query_type == 'availability' %]
721 <!-- availability -->
722 <h1>Availability</h1>
724 <h3>Displaying availability results</h3>
725 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
726 [% FOREACH key IN whole.keys %]
727 [% value = whole.$key %]
728 [% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %]
729 <input type="hidden" name="[% key | html %]" value="[% value | html %]">
732 [% custom_keys = whole.custom_key.split('\0') %]
733 [% custom_values = whole.custom_value.split('\0') %]
735 [% FOREACH custom_key IN custom_keys %]
736 <input type="hidden" name="custom_key" value="[% custom_key | html %]">
737 <input type="hidden" name="custom_value" value="[% custom_values.$i | html %]">
740 <input type="hidden" name="method" value="create">
741 <input type="hidden" name="stage" value="form">
742 <input type="hidden" name="checked_availability" value="1">
743 <div id="continue-request-row" class="alert">
744 If you can't find what you are looking for, you can
745 <button class="button" type="submit">continue creating your request</button> or
746 <a href="/cgi-bin/koha/ill/ill-requests.pl">cancel your request</a>
749 [% FOR service IN services %]
750 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
751 [% INCLUDE 'ill-availability-table.inc' service=service %]
755 <!-- Custom Backend Action -->
756 [% PROCESS $whole.template %]
760 </div> <!-- /#interlibraryloans -->
762 </div> <!-- /.col-sm-10 -->
763 </div> <!-- /.row -->
766 [% MACRO jsinclude BLOCK %]
767 [% INCLUDE 'datatables.inc' %]
768 [% INCLUDE 'columns_settings.inc' %]
769 [% INCLUDE 'calendar.inc' %]
770 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
771 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
773 var prefilters = '[% prefilters | $raw %]';
774 // Set column settings
775 var columns_settings = [% ColumnsSettings.GetColumns( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) %];
776 $("#ill_checkout_duedate_input").datetimepicker({
779 }).on("change", function(e, value) {
780 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
782 [% IF services_json.length > 0 %]
783 var services = [% services_json | $raw %];
787 [% IF metadata.length > 0 %]
788 var metadata = "[% metadata | $raw %]";
792 $('#ill_checkout_inhouse_select').on('change', function() {
793 if ($(this).val().length > 0) {
794 $('.ill_checkout_due_date').hide();
796 $('.ill_checkout_due_date').show();
800 [% INCLUDE 'ill-list-table-strings.inc' %]
801 [% Asset.js("js/ill-list-table.js") | $raw %]
802 [% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %]
803 [% Asset.js("js/ill-availability.js") | $raw %]
805 [% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %]
807 $(document).ready(function() {
812 [% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %]
813 [% Asset.js("js/ill-availability-partner.js") | $raw %]
818 [% PROCESS backend_jsinclude %]
822 [% INCLUDE 'intranet-bottom.inc' %]