7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>ILL requests › Koha</title>
13 [% INCLUDE 'doc-head-close.inc' %]
16 <body id="illrequests" class="ill">
17 [% WRAPPER 'header.inc' %]
18 [% INCLUDE 'cat-search.inc' %]
21 [% WRAPPER 'sub-header.inc' %]
22 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
25 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
28 [% IF query_type == 'create' %]
30 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
33 <a href="#" aria-current="page">
37 [% ELSIF query_type == 'illview' %]
39 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
42 <a href="#" aria-current="page">
43 Manage request [% request.id_prefix _ request.illrequest_id | html %]
48 <a href="#" aria-current="page">
57 <div class="main container-fluid">
60 [% IF query_type == 'illlist' %]
61 <div class="col-sm-2">
63 <form method="get" id="illfilter_form">
64 <fieldset class="brief">
68 <label for="illfilter_keyword">Keyword:</label>
69 <input type="text" name="illfilter_keyword" id="illfilter_keyword" />
72 <label for="illfilter_status">Status:</label>
73 <select name="illfilter_status" id="illfilter_status">
74 <option value=""></option>
78 <label for="illfilter_dateplaced_start">Date placed between:</label>
79 <input type="text" name="illfilter_dateplaced_start" id="illfilter_dateplaced_start" class="flatpickr" data-date_to="illfilter_dateplaced_end"/>
82 <label for="illfilter_dateplaced_end">and:</label>
83 <input type="text" name="illfilter_dateplaced_end" id="illfilter_dateplaced_end" class="flatpickr" />
86 <label for="illfilter_datemodified_start">Updated between:</label>
87 <input type="text" name="illfilter_datemodified_start" id="illfilter_datemodified_start" class="flatpickr" data-date_to="illfilter_datemodified_end" />
90 <label for="illfilter_datemodified_end">and:</label>
91 <input type="text" name="illfilter_datemodified_end" id="illfilter_datemodified_end" class="flatpickr" />
94 <label for="illfilter_branchname">Library:</label>
95 <select name="illfilter_branchname" id="illfilter_branchname">
96 <option value=""></option>
100 <label for="illfilter_patron">Patron:</label>
101 <input type="text" name="illfilter_patron" id="illfilter_patron" />
104 <fieldset class="action">
105 <input type="submit" value="Search" />
106 <input type="button" value="Clear" id="clear_search" />
109 </form> <!-- /#illfilter_form -->
111 </div> <!-- /.col-sm-2 -->
112 <div class="col-sm-10">
115 <div class="col-sm-10 col-sm-offset-2">
118 <div id="interlibraryloans">
119 [% IF !backends_available || !has_branch %]
120 <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>
122 [% INCLUDE 'ill-toolbar.inc' %]
125 <h1>Error performing operation</h1>
126 <!-- Dispatch on Status -->
127 <p>We encountered an error:</p>
129 <pre>[% whole.message | html %] ([% whole.status | html %])</pre>
133 [% IF whole.success %]
134 <p>[% whole.success | html %]</p>
137 [% IF query_type == 'create' %]
138 <h1>New ILL request</h1>
139 [% PROCESS $whole.template %]
141 [% ELSIF query_type == 'confirm' %]
142 <h1>Confirm ILL request</h1>
143 [% PROCESS $whole.template %]
145 [% ELSIF query_type == 'cancel' and !whole.error %]
146 <h1>Cancel a confirmed request</h1>
147 [% PROCESS $whole.template %]
149 [% ELSIF query_type == 'check_out' and !whole.error %]
150 [% IF !whole.stage || whole.stage == 'form' %]
151 <h1 id="ill-issue-title">Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]</h1>
152 [% IF !request.biblio_id || request.biblio_id.length == 0 %]
153 <div class="alert">This item cannot be issued as it has no biblio record associated with it</div>
155 [% IF whole.value.errors.itemcount %]
156 <div class="alert">The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.</div>
158 [% IF whole.value.errors.item_creation %]
159 <div class="alert">An unknown error occurred while trying to add an item</div>
161 [% IF whole.value.errors.item_check_out %]
162 <div class="alert">An unknown error occurred while trying to check out the item</div>
164 [% IF whole.value.check_out_errors %]
165 [% IF whole.value.check_out_errors.error.STATS %]
171 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>
175 [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]
176 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
177 <fieldset class="rows">
178 <legend>Check out details</legend>
179 [% items = whole.value.biblio.items.unblessed %]
180 [% IF items.size == 1 %]
181 <p>The bibliographic record for this request already has an item attached to it, you are about to check it out</p>
183 <p>A bibliographic record for this request exists, but no item. You are about to create an item and check it out</p>
186 <li class="ill_checkout_inhouse">
187 <label for="inhouse" class="ill_checkout_inhouse_label">Statistical patron:</label>
188 <select id="ill_checkout_inhouse_select" name="inhouse" class="ill_checkout_inhouse_select">
189 <option value=""></option>
190 [% FOREACH stat IN whole.value.statistical %]
191 [% IF stat.borrowernumber == params.inhouse %]
192 <option value="[% stat.cardnumber | html %]" selected>[% INCLUDE 'patron-title.inc' patron = stat %]</option>
194 <option value="[% stat.cardnumber | html %]">[% INCLUDE 'patron-title.inc' patron = stat %]</option>
198 [% IF whole.value.errors.inhouse %]
199 <span class="required">You must choose a valid patron</span>
201 <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>
203 <li class="ill_checkout_item_type">
204 <label for="item_type" class="ill_checkout_item_type_label required">Item type:</label>
205 [% IF items.size != 1 %]
206 <select id="ill_checkout_item_type_select" name="item_type" required>
207 [% FOREACH type IN whole.value.itemtypes %]
208 [% IF type.itemtype == params.item_type %]
209 <option value="[% type.itemtype | html %]" selected>
211 <option value="[% type.itemtype | html %]">
213 [% type.description | html %]
218 [% FOREACH type IN whole.value.itemtypes %]
219 [% IF type.itemtype == items.0.itype %]
220 [% type.description | html %]
224 [% IF whole.value.errors.item_type %]
225 <span class="required">You must choose an item type</span>
228 [% IF items.size == 1 %]
230 <label for="barcode" class="ill_checkout_barcode_label">Item barcode:</label>
231 [% items.0.barcode | html %]
234 <li class="ill_checkout_branchcode">
235 <label for="branchcode" class="ill_checkout_branchcode_label required">Library:</label>
236 [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %]
237 [% IF items.size != 1 %]
238 <select name="branchcode" id="ill_checkout_branchcode_select" required>
239 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
242 [% FOREACH branch IN whole.value.libraries.unblessed %]
243 [% IF branch.branchcode == branchcode %]
244 [% branch.branchname | html %]
248 [% IF whole.value.errors.branchcode %]
249 <span class="required">You must choose a branch</span>
252 <li class="ill_checkout_due_date">
253 <label for="duedate" class="ill_checkout_duedate_label">Due date:</label>
254 <input name="duedate" id="ill_checkout_duedate_input" type="text" value="[% params.duedate | html %]" class="flatpickr" data-flatpickr-enable-time="true" /> [% INCLUDE 'date-format.inc' %]
255 <div class="hint">If you do not specify a due date, it will be set according to circulation rules</p>
259 <fieldset class="action">
260 <input type="hidden" value="check_out" name="method">
261 <input type="hidden" value="form" name="stage">
262 [% IF items.size == 1 %]
263 <input name="branchcode" type="hidden" value="[% branchcode | html %]">
264 <input name="item_type" type="hidden" value="[% items.0.itype | html %]">
266 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
267 <input type="submit" value="Submit">
268 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
272 [% IF whole.value.check_out_errors.error.STATS %]
273 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
275 [% ELSIF whole.stage == 'done_check_out' %]
276 <h1>Item checked out</h1>
277 <fieldset class="rows">
278 <legend>Check out details</legend>
281 <label>Checked out to:</label>
282 [% INCLUDE 'patron-title.inc' patron = whole.value.patron %]
285 <label>Due date:</label>
286 [% whole.value.check_out.date_due | $KohaDates with_hours => 1 %]
290 <fieldset class="action">
291 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
295 [% ELSIF query_type == 'generic_confirm' %]
296 <h1>Place request with partner libraries</h1>
298 [% IF error == 'no_target_email' %]
300 No target email addresses found. Either select at least
301 one partner or check your ILL partner library records.
303 [% ELSIF error == 'no_library_email' %]
305 Your library has no usable email address. Please set it.
307 [% ELSIF error == 'unkown_error' %]
309 Unknown error processing your request. Contact your administrator.
313 <!-- Start of GENERIC_EMAIL case -->
314 [% IF whole.value.partners %]
315 [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=" _ request.illrequest_id %]
316 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
317 <fieldset class="rows">
318 <legend>Interlibrary loan request details</legend>
321 <label for="partner_filter">Filter partner libraries:</label>
322 <input type="text" id="partner_filter" />
325 <label for="partners" class="required">Select partner libraries:</label>
326 <select size="5" multiple="true" id="partners" name="partners" required="required">
327 [% FOREACH partner IN whole.value.partners %]
328 [% IF partner.email && partner.email.length > 0 %]
329 <option data-partner-id="[% partner.id | html %]" value=[% partner.borrowernumber | html %]>
330 [% partner.branchcode _ " - " _ partner.surname %]
335 [% IF Koha.Preference('ILLCheckAvailability') %]
336 <div id="generic_confirm_search_count">Partners available for searching: <span id="generic_confirm_enabled">none</span></div>
337 <div id="generic_confirm_search">
338 <button type="button">Search selected partners</button>
343 <label for="subject" class="required">Subject line:</label>
344 <input type="text" name="subject" id="subject" type="text" value="[% whole.value.draft.subject | html %]" required="required" />
347 <label for="body" class="required">Email text:</label>
348 <textarea name="body" id="body" rows="20" cols="80" required="required">[% whole.value.draft.body | html %]</textarea>
351 <input type="hidden" value="generic_confirm" name="method">
352 <input type="hidden" value="draft" name="stage">
353 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
355 <fieldset class="action">
356 <input type="submit" class="btn btn-default" value="Send email"/>
357 <span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span>
360 [% IF Koha.Preference('ILLCheckAvailability') %]
361 <div id="partnerSearch" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="partnerSearchLabel" aria-hidden="true">
362 <div class="modal-dialog">
363 <div class="modal-content">
364 <div class="modal-header">
365 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
366 <h3 id="partnerSearchLabel"> Search partners</h3>
368 <div class="modal-body">
369 [% FOR service IN services %]
370 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
371 [% INCLUDE 'ill-availability-table.inc' service=service %]
373 <span id="service_id_restrict" data-service_id_restrict_plugin="ILL availability - z39.50" data-service_id_restrict_ids=""></span>
375 <div class="modal-footer">
376 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
384 <fieldset class="rows">
385 <legend>Interlibrary loan request details</legend>
386 <p>No partners have been defined yet. Please create appropriate patron records (by default ILLLIBS category).</p>
387 <p>Be sure to provide email addresses for these patrons.</p>
388 <p><span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span></p>
391 <!-- generic_confirm ends here -->
393 [% ELSIF query_type == 'edit_action' %]
394 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
395 <fieldset class="rows">
396 <legend>Request details</legend>
398 [% type = request.get_type %]
399 <li class="borrowernumber">
400 <label for="borrowernumber">Patron ID:</label>
401 [% request.borrowernumber | html %]
403 <li class="biblio_id">
404 <label for="biblio_id" class="biblio_id">Bibliographic record ID:</label>
405 <input name="biblio_id" id="biblio_id" type="text" value="[% request.biblio_id | html %]">
407 <li class="branchcode">
408 <label for="library" class="branchcode">Library:</label>
409 <select name="branchcode" id="library">
410 [% PROCESS options_for_libraries libraries => Branches.all( selected => request.branchcode ) %]
414 <label class="status">Status:</label>
415 [% stat = request.status %]
416 [% current_alias = request.status_alias %]
417 <select id="status_alias" name="status_alias">
418 [% IF !current_alias %]
419 <option value="" selected>
423 [% request.capabilities.$stat.name | html %]
425 [% FOREACH alias IN AuthorisedValues.Get('ILLSTATUS') %]
426 [% IF alias.authorised_value == current_alias %]
427 <option value="[% alias.authorised_value | html %]" selected>
429 <option value="[% alias.authorised_value | html %]">
431 [% alias.lib | html %]
437 <label class="updated">Last updated:</label>
438 [% request.updated | $KohaDates with_hours => 1 %]
441 <label class="medium">Request type:</label>
442 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
445 <label class="cost">Cost:</label>
446 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
448 <li class="price_paid">
449 <label class="price_paid">Price paid:</label>
450 <input name="price_paid" id="price_paid" type="text" value="[% request.price_paid | html %]">
453 <label class="req_id">Request number:</label>
454 [% request.id_prefix _ request.illrequest_id | html %]
456 <li class="notesstaff">
457 <label for="notesstaff" class="notesstaff">Staff notes:</label>
458 <textarea name="notesstaff" id="notesstaff" rows="5">[% request.notesstaff | html %]</textarea>
460 <li class="notesopac">
461 <label for="notesopac" class="notesopac">OPAC notes:</label>
462 <textarea name="notesopac" id="notesopac" rows="5">[% request.notesopac | html %]</textarea>
466 <fieldset class="action">
467 <input type="hidden" value="edit_action" name="method">
468 <input type="hidden" value="form" name="stage">
469 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
470 <input type="hidden" value="[% request.borrowernumber | html %]" name="borrowernumber">
471 <input type="submit" value="Submit">
472 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
476 [% ELSIF query_type == 'delete_confirm' %]
478 <div class="dialog alert">
479 <h3>Are you sure you wish to delete this request?</h3>
480 <form action="/cgi-bin/koha/ill/ill-requests.pl" method="post">
481 <input type="hidden" name="method" value="delete" />
482 <input type="hidden" name="confirmed" value="1" />
483 <input type="hidden" name="illrequest_id" value="[% request.id | html %]" />
484 <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
486 <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>
489 [% ELSIF query_type == 'illview' %]
490 [% IF whole.template.length > 0 %]
491 [% PROCESS $whole.template %]
493 [% req_status = request.status %]
496 [% IF error == 'migrate_target' %]
498 The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
503 [% IF tran_success %]
504 [% succ_methods = [] %]
505 [% IF tran_success.match('email') %]
506 [% succ_methods.push('email') %]
508 [% IF tran_success.match('sms') %]
509 [% succ_methods.push('SMS') %]
512 The requested notice was queued for delivery by [% succ_methods.join(', ') | html %]
516 [% fail_methods = [] %]
517 [% IF tran_fail.match('email') %]
518 [% fail_methods.push('email') %]
520 [% IF tran_fail.match('sms') %]
521 [% fail_methods.push('SMS') %]
524 The requested notice was NOT queued for delivery by [% fail_methods.join(', ') | html %]
528 <h1>Manage ILL request</h1>
529 <div id="request-toolbar" class="btn-toolbar">
530 <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 %]">
531 <span class="fa fa-pencil"></span>
534 [% FOREACH action IN request.available_actions %]
535 [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %]
536 [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %]
537 [% needs_all = action.needs_all.size ? action.needs_all : [] %]
538 [% has_prefs_count = 0 %]
539 [% has_perms_count = 0 %]
540 [% has_all_count = 0 %]
541 [% FOREACH pref IN needs_prefs %]
542 [% IF Koha.Preference(pref) %]
543 [% has_prefs_count = has_prefs_count + 1 %]
546 [% FOREACH perm IN needs_perms %]
547 [% perm_name = 'CAN_' _ perm %]
548 [% IF ($perm_name) %]
549 [% has_perms_count = has_perms_count + 1 %]
552 [% FOREACH func IN needs_all %]
553 [% IF func(request) %]
554 [% has_all_count = has_all_count + 1 %]
557 [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %]
558 [% IF action.method == 'migrate' %]
559 [% IF backends.size > 2 %]
560 <div class="dropdown btn-group">
561 <button class="btn btn-default dropdown-toggle" type="button" id="ill-migrate-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
562 <i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] <span class="caret"></span>
564 <ul class="dropdown-menu" aria-labelledby="ill-migrate-dropdown">
565 [% FOREACH backend IN backends %]
566 [% IF backend != request.backend %]
567 <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>
572 [% ELSIF backends.size == 2 %]
573 [% FOREACH backend IN backends %]
574 [% IF backend != request.backend %]
575 <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 %]">
576 <span class="fa [% action.ui_method_icon | html %]"></span>
577 [% action.ui_method_name | html %]
582 [% ELSIF action.method != 0 %]
583 <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 %]">
584 <span class="fa [% action.ui_method_icon | html %]"></span>
585 [% action.ui_method_name | html %]
589 <div class="dropdown btn-group">
590 <button class="btn btn-default dropdown-toggle" type="button" id="ill-notice-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
591 <i class="fa fa-envelope"></i> Send notice to patron <span class="caret"></span>
593 <ul class="dropdown-menu" aria-labelledby="ill-notice-dropdown">
594 [% FOREACH notice IN notices %]
595 <li><a href="/cgi-bin/koha/ill/ill-requests.pl?method=send_notice&illrequest_id=[% request.illrequest_id | uri %]&notice_code=[% notice.code | uri %]">[% notice.name | html %]</a></li>
599 <a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-default pull-right" href="#">
600 <span class="fa fa-eye"></span>
601 Display supplier metadata
603 <a title="ILL request log" id="ill-request-display-log" class="btn btn-default pull-right" href="#">
604 <span class="fa fa-calendar"></span>
608 <div class="ill-view-panel panel panel-default">
609 <div class="panel-heading">
610 <h3>Request details</h3>
612 <div class="panel-body">
613 <h4>Details from library</h4>
617 <span class="label orderid">Order ID:</span>
618 [% IF request.orderid %][% request.orderid | html %][% ELSE %]<span>N/A</span>[% END %]
620 <li class="borrowernumber">
621 <span class="label borrowernumber">Patron:</span>
622 [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
623 <a href="[% borrowerlink | url %]" title="View borrower details">
624 [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
628 <li class="biblio_id">
629 <span class="label biblio_id">Bibliographic record ID:</span>
630 [% IF request.biblio_id %]
631 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id | uri %]">[% request.biblio_id | html %]</a>
636 <li class="branchcode">
637 <span class="label branchcode">Library:</span>
638 [% Branches.GetName(request.branchcode) | html %]
641 <span class="label status">Status:</span>
642 [% IF request.statusalias %]
643 [% request.statusalias.lib | html %]
645 [% request.capabilities.$req_status.name | html%]
646 [% IF request.requested_partners.length > 0 %]
647 ([% request.requested_partners | html %])
652 <span class="label updated">Last updated:</span>
653 [% request.updated | $KohaDates with_hours => 1 %]
656 <span class="label medium">Request type:</span>
657 [% type = request.get_type %]
658 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
661 <span class="label cost">Cost:</span>
662 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
664 <li class="price_paid">
665 <span class="label price_paid">Price paid:</span>
666 [% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]<span>N/A</span>[% END %]
669 <span class="label req_id">Request number:</span>
670 [% request.id_prefix _ request.illrequest_id | html %]
672 <li class="notesstaff">
673 <span class="label notes_staff">Staff notes:</span>
674 <p>[% request.notesstaff | html %]</p>
676 <li class="notesopac">
677 <span class="label notes_opac">Notes:</span>
678 <p>[% request.notesopac | html %]</p>
683 <h4>Details from supplier ([% request.backend | html %])</h4>
685 [% FOREACH meta IN request.metadata %]
686 <li class="requestmeta-[% meta.key.replace('\s','_') | html %]">
687 <span class="label">[% meta.key | html %]:</span>
688 [% meta.value | html %]
696 <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
697 <div class="modal-dialog">
698 <div class="modal-content">
699 <div class="modal-header">
700 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
701 <h3 id="dataPreviewLabel"> Supplier metadata</h3>
703 <div class="modal-body">
704 <div id="requestattributes">
705 [% FOREACH attr IN request.illrequestattributes %]
706 <div class="requestattr-[% attr.type | html %]">
707 <span class="label">[% attr.type | html %]:</span>
708 [% attr.value | html %]
713 <div class="modal-footer">
714 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
720 <div id="requestLog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
721 <div class="modal-dialog">
722 <div class="modal-content">
723 <div class="modal-header">
724 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
725 <h3 id="requestLogLabel"> Request log</h3>
727 <div class="modal-body">
728 [% IF request.logs.size > 0 %]
729 [% FOREACH log IN request.logs %]
730 [% tpl = log.template %]
731 [% INCLUDE $tpl log=log %]
734 <span>There are no recorded logs for this request</span>
737 <div class="modal-footer">
738 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
744 <div class="ill-view-panel panel panel-default">
745 <div class="panel-heading">
746 <h3>[% request.illcomments.count | html %] comments</h3>
748 <div class="panel-body">
749 [% IF request.illcomments.count && request.illcomments.count > 0 %]
750 [% FOREACH comment IN request.illcomments %]
751 <div class="rows comment_[% comment.patron.categorycode | html %]">
753 <a href="[% borrowerlink | url %]" title="View borrower details">
754 [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %]</a>
755 [% comment.timestamp | $KohaDates with_hours => 1 %]</h5>
756 <p>[% comment.comment | html %]</p>
761 <h3><a id="toggle_addcomment" href="#">Add comment</a></h3>
762 <div id="addcomment" class="content_hidden">
763 <form class="validated" method="post" action="/cgi-bin/koha/ill/ill-requests.pl">
764 <input type="hidden" value="save_comment" name="method">
765 <input type="hidden" value="[% csrf_token | html %]" name="csrf_token">
766 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
767 <fieldset class="rows">
770 <label class="required" for="comment">Comment: </label>
771 <textarea class="required" required="required" cols="80" rows="10" id="comment" name="comment"></textarea>
772 <span class="required">Required</span>
776 <fieldset class="action">
777 <input type="submit" value="Submit">
785 [% ELSIF query_type == 'illlist' %]
787 <h1>View ILL requests</h1>
789 <h3>Details for all requests</h3>
790 [% INCLUDE 'ill-list-table.inc' %]
792 </div> <!-- /#results -->
793 [% ELSIF query_type == 'availability' %]
794 <!-- availability -->
795 <h1>Availability</h1>
797 <h3>Displaying availability results</h3>
798 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
799 [% FOREACH key IN whole.keys %]
800 [% value = whole.$key %]
801 [% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %]
802 <input type="hidden" name="[% key | html %]" value="[% value | html %]">
805 [% custom_keys = whole.custom_key.split('\0') %]
806 [% custom_values = whole.custom_value.split('\0') %]
808 [% FOREACH custom_key IN custom_keys %]
809 <input type="hidden" name="custom_key" value="[% custom_key | html %]">
810 <input type="hidden" name="custom_value" value="[% custom_values.$i | html %]">
813 <input type="hidden" name="method" value="create">
814 <input type="hidden" name="stage" value="form">
815 <input type="hidden" name="checked_availability" value="1">
816 <div id="continue-request-row" class="alert">
817 If you can't find what you are looking for, you can
818 <button class="button" type="submit">continue creating your request</button> or
819 <a href="/cgi-bin/koha/ill/ill-requests.pl">cancel your request</a>
822 [% FOR service IN services %]
823 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
824 [% INCLUDE 'ill-availability-table.inc' service=service %]
828 <!-- Custom Backend Action -->
829 [% PROCESS $whole.template %]
833 </div> <!-- /#interlibraryloans -->
835 </div> <!-- /.col-sm-10 -->
836 </div> <!-- /.row -->
839 [% MACRO jsinclude BLOCK %]
840 [% INCLUDE 'datatables.inc' %]
841 [% INCLUDE 'columns_settings.inc' %]
842 [% INCLUDE 'calendar.inc' %]
843 [% INCLUDE 'select2.inc' %]
845 var prefilters = '[% prefilters | $raw %]';
846 // Set column settings
847 var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
849 [% IF services_json.length > 0 %]
850 var services = [% services_json | $raw %];
854 [% IF metadata.length > 0 %]
855 var metadata = "[% metadata | $raw %]";
859 $('#ill_checkout_inhouse_select').on('change', function() {
860 if ($(this).val().length > 0) {
861 $('.ill_checkout_due_date').hide();
863 $('.ill_checkout_due_date').show();
867 [% INCLUDE 'ill-list-table-strings.inc' %]
868 [% Asset.js("js/ill-list-table.js") | $raw %]
869 [% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %]
870 [% Asset.js("js/ill-availability.js") | $raw %]
872 [% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %]
874 $(document).ready(function() {
879 [% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %]
880 [% Asset.js("js/ill-availability-partner.js") | $raw %]
885 [% PROCESS backend_jsinclude %]
889 [% INCLUDE 'intranet-bottom.inc' %]