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 [% WRAPPER breadcrumbs %]
23 [% IF query_type == 'create' %]
24 [% WRAPPER breadcrumb_item %]
25 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
27 [% WRAPPER breadcrumb_item bc_active= 1 %]
28 <span>New request</span>
30 [% ELSIF query_type == 'illview' %]
31 [% WRAPPER breadcrumb_item %]
32 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
34 [% WRAPPER breadcrumb_item bc_active= 1 %]
35 <span>Manage request [% request.id_prefix _ request.illrequest_id | html %]</span>
38 [% WRAPPER breadcrumb_item bc_active= 1 %]
39 <span>ILL requests</span>
42 [% END #/ WRAPPER breadcrumbs %]
43 [% END #/ WRAPPER sub-header.inc %]
45 <div class="main container-fluid">
48 [% IF query_type == 'illlist' %]
49 <div class="col-sm-2">
51 <form method="get" id="illfilter_form">
52 <fieldset class="brief">
56 <label for="illfilter_keyword">Keyword:</label>
57 <input type="text" name="illfilter_keyword" id="illfilter_keyword" />
60 <label for="illfilter_backend">Backend:</label>
61 <select name="illfilter_backend" id="illfilter_backend">
62 <option value="">All backends</option>
66 <label for="illfilter_status">Status:</label>
67 <select name="illfilter_status" id="illfilter_status">
71 <label for="illfilter_dateplaced_start">Date placed between:</label>
72 <input type="text" name="illfilter_dateplaced_start" id="illfilter_dateplaced_start" class="flatpickr" data-date_to="illfilter_dateplaced_end"/>
75 <label for="illfilter_dateplaced_end">and:</label>
76 <input type="text" name="illfilter_dateplaced_end" id="illfilter_dateplaced_end" class="flatpickr" />
79 <label for="illfilter_datemodified_start">Updated between:</label>
80 <input type="text" name="illfilter_datemodified_start" id="illfilter_datemodified_start" class="flatpickr" data-date_to="illfilter_datemodified_end" />
83 <label for="illfilter_datemodified_end">and:</label>
84 <input type="text" name="illfilter_datemodified_end" id="illfilter_datemodified_end" class="flatpickr" />
87 <label for="illfilter_branchname">Library:</label>
88 <select name="illfilter_branchname" id="illfilter_branchname">
89 <option value="">All libraries</option>
90 [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %]
94 <label for="illfilter_patron">Patron:</label>
95 <input type="text" name="illfilter_patron" id="illfilter_patron" />
98 <fieldset class="action">
99 <input type="submit" class="btn btn-primary" value="Search" />
100 <input type="button" value="Clear" id="clear_search" />
103 </form> <!-- /#illfilter_form -->
105 </div> <!-- /.col-sm-2 -->
106 <div class="col-sm-10">
109 <div class="col-sm-10 col-sm-offset-2">
112 <div id="interlibraryloans">
113 [% IF !backends_available || !has_branch %]
114 <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>
116 [% INCLUDE 'ill-toolbar.inc' %]
119 <h1>Error performing operation</h1>
120 <!-- Dispatch on Status -->
121 <p>We encountered an error:</p>
123 <pre>[% whole.message | html %] ([% whole.status | html %])</pre>
127 [% IF whole.success %]
128 <p>[% whole.success | html %]</p>
131 [% IF query_type == 'create' %]
132 <h1>New ILL request</h1>
133 [% PROCESS $whole.template %]
135 [% ELSIF query_type == 'confirm' %]
136 <h1>Confirm ILL request</h1>
137 [% PROCESS $whole.template %]
139 [% ELSIF query_type == 'cancel' and !whole.error %]
140 <h1>Cancel a confirmed request</h1>
141 [% PROCESS $whole.template %]
143 [% ELSIF query_type == 'check_out' and !whole.error %]
144 [% IF !whole.stage || whole.stage == 'form' %]
145 <h1 id="ill-issue-title">Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]</h1>
146 [% IF !request.biblio_id || request.biblio_id.length == 0 %]
147 <div class="alert">This item cannot be checked out as it has no bibliographic record associated with it</div>
149 [% IF whole.value.errors.itemcount %]
150 <div class="alert">The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.</div>
152 [% IF whole.value.errors.item_creation %]
153 <div class="alert">An unknown error occurred while trying to add an item</div>
155 [% IF whole.value.errors.item_check_out %]
156 <div class="alert">An unknown error occurred while trying to check out the item</div>
158 [% IF whole.value.check_out_errors %]
159 [% IF whole.value.check_out_errors.error.STATS %]
165 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>
169 [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]
170 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
171 <fieldset class="rows">
172 <legend>Check out details</legend>
173 [% items = whole.value.biblio.items.unblessed %]
174 [% IF items.size == 1 %]
175 <p>The bibliographic record for this request already has an item attached to it, you are about to check it out</p>
177 <p>A bibliographic record for this request exists, but no item. You are about to create an item and check it out</p>
180 <li class="ill_checkout_inhouse">
181 <label for="inhouse" class="ill_checkout_inhouse_label">Statistical patron:</label>
182 <select id="ill_checkout_inhouse_select" name="inhouse" class="ill_checkout_inhouse_select">
183 <option value=""></option>
184 [% FOREACH stat IN whole.value.statistical %]
185 [% IF stat.borrowernumber == params.inhouse %]
186 <option value="[% stat.cardnumber | html %]" selected>[% INCLUDE 'patron-title.inc' patron = stat %]</option>
188 <option value="[% stat.cardnumber | html %]">[% INCLUDE 'patron-title.inc' patron = stat %]</option>
192 [% IF whole.value.errors.inhouse %]
193 <span class="required">You must choose a valid patron</span>
195 <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>
197 <li class="ill_checkout_item_type">
198 <label for="item_type" class="ill_checkout_item_type_label required">Item type:</label>
199 [% IF items.size != 1 %]
200 <select id="ill_checkout_item_type_select" name="item_type" required>
201 [% FOREACH type IN whole.value.itemtypes %]
202 [% IF type.itemtype == params.item_type %]
203 <option value="[% type.itemtype | html %]" selected>
205 <option value="[% type.itemtype | html %]">
207 [% type.description | html %]
212 [% FOREACH type IN whole.value.itemtypes %]
213 [% IF type.itemtype == items.0.itype %]
214 [% type.description | html %]
218 [% IF whole.value.errors.item_type %]
219 <span class="required">You must choose an item type</span>
222 [% IF items.size == 1 %]
224 <label for="barcode" class="ill_checkout_barcode_label">Item barcode:</label>
225 [% items.0.barcode | html %]
228 <li class="ill_checkout_branchcode">
229 <label for="branchcode" class="ill_checkout_branchcode_label required">Library:</label>
230 [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %]
231 [% IF items.size != 1 %]
232 <select name="branchcode" id="ill_checkout_branchcode_select" required>
233 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
236 [% FOREACH branch IN whole.value.libraries.unblessed %]
237 [% IF branch.branchcode == branchcode %]
238 [% branch.branchname | html %]
242 [% IF whole.value.errors.branchcode %]
243 <span class="required">You must choose a library</span>
246 <li class="ill_checkout_due_date">
247 <label for="duedate" class="ill_checkout_duedate_label">Due date:</label>
248 <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' %]
249 <div class="hint">If you do not specify a due date, it will be set according to circulation rules</p>
253 <fieldset class="action">
254 <input type="hidden" value="check_out" name="method">
255 <input type="hidden" value="form" name="stage">
256 [% IF items.size == 1 %]
257 <input name="branchcode" type="hidden" value="[% branchcode | html %]">
258 <input name="item_type" type="hidden" value="[% items.0.itype | html %]">
260 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
261 <input type="submit" class="btn btn-primary" value="Submit" />
262 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
266 [% IF whole.value.check_out_errors.error.STATS %]
267 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
269 [% ELSIF whole.stage == 'done_check_out' %]
270 <h1>Item checked out</h1>
271 <fieldset class="rows">
272 <legend>Check out details</legend>
275 <label>Checked out to:</label>
276 [% INCLUDE 'patron-title.inc' patron = whole.value.patron %]
279 <label>Due date:</label>
280 [% whole.value.check_out.date_due | $KohaDates as_due_date => 1 %]
284 <fieldset class="action">
285 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
289 [% ELSIF query_type == 'generic_confirm' %]
290 <h1>Place request with partner libraries</h1>
292 [% IF error == 'no_target_email' %]
294 No target email addresses found. Either select at least
295 one partner or check your ILL partner library records.
297 [% ELSIF error == 'no_library_email' %]
299 Your library has no usable email address. Please set it.
301 [% ELSIF error == 'unkown_error' %]
303 Unknown error processing your request. Contact your administrator.
307 <!-- Start of GENERIC_EMAIL case -->
308 [% IF whole.value.partners %]
309 [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=" _ request.illrequest_id %]
310 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
311 <fieldset class="rows">
312 <legend>Interlibrary loan request details</legend>
315 <label for="partner_filter">Filter partner libraries:</label>
316 <input type="text" id="partner_filter" />
319 <label for="partners" class="required">Select partner libraries:</label>
320 <select size="5" multiple="true" id="partners" name="partners" required="required">
321 [% FOREACH partner IN whole.value.partners %]
322 [% IF partner.email && partner.email.length > 0 %]
323 <option data-partner-id="[% partner.id | html %]" value=[% partner.borrowernumber | html %]>
324 [% partner.branchcode _ " - " _ partner.surname %]
329 [% IF Koha.Preference('ILLCheckAvailability') %]
330 <div id="generic_confirm_search_count">Partners available for searching: <span id="generic_confirm_enabled">none</span></div>
331 <div id="generic_confirm_search">
332 <button type="button">Search selected partners</button>
337 <label for="subject" class="required">Subject line:</label>
338 <input type="text" name="subject" id="subject" type="text" value="[% whole.value.draft.subject | html %]" required="required" />
341 <label for="body" class="required">Email text:</label>
342 <textarea name="body" id="body" rows="20" cols="80" required="required">[% whole.value.draft.body | html %]</textarea>
345 <input type="hidden" value="generic_confirm" name="method">
346 <input type="hidden" value="draft" name="stage">
347 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
349 <fieldset class="action">
350 <input type="submit" class="btn btn-default" value="Send email"/>
351 <span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span>
354 [% IF Koha.Preference('ILLCheckAvailability') %]
355 <div id="partnerSearch" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="partnerSearchLabel" aria-hidden="true">
356 <div class="modal-dialog">
357 <div class="modal-content">
358 <div class="modal-header">
359 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
360 <h3 id="partnerSearchLabel"> Search partners</h3>
362 <div class="modal-body">
363 [% FOR service IN services %]
364 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
365 [% INCLUDE 'ill-availability-table.inc' service=service %]
367 <span id="service_id_restrict" data-service_id_restrict_plugin="ILL availability - z39.50" data-service_id_restrict_ids=""></span>
369 <div class="modal-footer">
370 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
378 <fieldset class="rows">
379 <legend>Interlibrary loan request details</legend>
380 <p>No partners have been defined yet. Please create appropriate patron records (by default IL category).</p>
381 <p>Be sure to provide email addresses for these patrons.</p>
382 <p><span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span></p>
385 <!-- generic_confirm ends here -->
387 [% ELSIF query_type == 'edit_action' %]
388 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
389 <fieldset class="rows">
390 <legend>Request details</legend>
392 [% type = request.get_type %]
393 <li class="borrowernumber">
394 <label for="borrowernumber">Patron ID:</label>
395 <input name="borrowernumber" id="borrowernumber" type="text" value="[% request.borrowernumber | html %]">
397 <li class="biblio_id">
398 <label for="biblio_id" class="biblio_id">Bibliographic record ID:</label>
399 <input name="biblio_id" id="biblio_id" type="text" value="[% request.biblio_id | html %]">
401 <li class="branchcode">
402 <label for="library" class="branchcode">Library:</label>
403 <select name="branchcode" id="library">
404 [% PROCESS options_for_libraries libraries => Branches.all( selected => request.branchcode ) %]
408 <label class="status">Status:</label>
409 [% stat = request.status %]
410 [% current_alias = request.status_alias %]
411 <select id="status_alias" name="status_alias">
412 [% IF !current_alias %]
413 <option value="" selected>
417 [% request.capabilities.$stat.name | html %]
419 [% FOREACH alias IN AuthorisedValues.Get('ILL_STATUS_ALIAS') %]
420 [% IF alias.authorised_value == current_alias %]
421 <option value="[% alias.authorised_value | html %]" selected>
423 <option value="[% alias.authorised_value | html %]">
425 [% alias.lib | html %]
431 <label class="updated">Last updated:</label>
432 [% request.updated | $KohaDates with_hours => 1 %]
435 <label class="medium">Request type:</label>
436 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
439 <label class="cost">Cost:</label>
440 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
442 <li class="price_paid">
443 <label class="price_paid">Price paid:</label>
444 <input name="price_paid" id="price_paid" type="text" value="[% request.price_paid | html %]">
447 <label class="req_id">Request ID:</label>
448 [% request.id_prefix _ request.illrequest_id | html %]
450 <li class="notesstaff">
451 <label for="notesstaff" class="notesstaff">Staff notes:</label>
452 <textarea name="notesstaff" id="notesstaff" rows="5">[% request.notesstaff | html %]</textarea>
454 <li class="notesopac">
455 <label for="notesopac" class="notesopac">OPAC notes:</label>
456 <textarea name="notesopac" id="notesopac" rows="5">[% request.notesopac | html %]</textarea>
460 <fieldset class="action">
461 <input type="hidden" value="edit_action" name="method">
462 <input type="hidden" value="form" name="stage">
463 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
464 <input type="submit" class="btn btn-primary" value="Submit" />
465 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
469 [% ELSIF query_type == 'delete_confirm' %]
471 <div class="dialog alert">
472 <h3>Are you sure you wish to delete this request?</h3>
473 <form action="/cgi-bin/koha/ill/ill-requests.pl" method="post">
474 <input type="hidden" name="method" value="delete" />
475 <input type="hidden" name="confirmed" value="1" />
476 <input type="hidden" name="illrequest_id" value="[% request.id | html %]" />
477 <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
479 <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-times"></i>No, do not delete</a>
482 [% ELSIF query_type == 'illview' %]
483 [% IF whole.template.length > 0 %]
484 [% PROCESS $whole.template %]
486 [% req_status = request.status %]
489 [% IF error == 'migrate_target' %]
491 The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
496 [% IF tran_success %]
497 [% succ_methods = [] %]
498 [% IF tran_success.match('email') %]
499 [% succ_methods.push('email') %]
501 [% IF tran_success.match('sms') %]
502 [% succ_methods.push('SMS') %]
505 The requested notice was queued for delivery by [% succ_methods.join(', ') | html %]
509 [% fail_methods = [] %]
510 [% IF tran_fail.match('email') %]
511 [% fail_methods.push('email') %]
513 [% IF tran_fail.match('sms') %]
514 [% fail_methods.push('SMS') %]
517 The requested notice was NOT queued for delivery by [% fail_methods.join(', ') | html %]
521 <h1>Manage ILL request</h1>
522 <div id="request-toolbar" class="btn-toolbar">
523 <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 %]">
524 <i class="fa-solid fa-pencil" aria-hidden="true"></i>
527 [% FOREACH action IN request.available_actions %]
528 [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %]
529 [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %]
530 [% needs_all = action.needs_all.size ? action.needs_all : [] %]
531 [% has_prefs_count = 0 %]
532 [% has_perms_count = 0 %]
533 [% has_all_count = 0 %]
534 [% FOREACH pref IN needs_prefs %]
535 [% IF Koha.Preference(pref) %]
536 [% has_prefs_count = has_prefs_count + 1 %]
539 [% FOREACH perm IN needs_perms %]
540 [% perm_name = 'CAN_' _ perm %]
541 [% IF ($perm_name) %]
542 [% has_perms_count = has_perms_count + 1 %]
545 [% FOREACH func IN needs_all %]
546 [% IF func(request) %]
547 [% has_all_count = has_all_count + 1 %]
550 [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %]
551 [% IF action.method == 'migrate' %]
552 [% IF backends.size > 2 %]
553 <div class="dropdown btn-group">
554 <button class="btn btn-default dropdown-toggle" type="button" id="ill-migrate-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
555 <i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] <span class="caret"></span>
557 <ul class="dropdown-menu" aria-labelledby="ill-migrate-dropdown">
558 [% FOREACH backend IN backends %]
559 [% IF backend != request.backend %]
560 <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>
565 [% ELSIF backends.size == 2 %]
566 [% FOREACH backend IN backends %]
567 [% IF backend != request.backend %]
568 <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 %]">
569 <span class="fa [% action.ui_method_icon | html %]"></span>
570 [% action.ui_method_name | html %]
575 [% ELSIF action.method != 0 %]
576 <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 %]">
577 <span class="fa [% action.ui_method_icon | html %]"></span>
578 [% action.ui_method_name | html %]
582 <div class="dropdown btn-group">
583 <button class="btn btn-default dropdown-toggle" type="button" id="ill-notice-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
584 <i class="fa-solid fa-envelope"></i> Send notice to patron <span class="caret"></span>
586 <ul class="dropdown-menu" aria-labelledby="ill-notice-dropdown">
587 [% FOREACH notice IN notices %]
588 <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>
592 <a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-default pull-right" href="#">
593 <span class="fa-solid fa-eye"></span>
594 Display supplier metadata
596 <a title="ILL request log" id="ill-request-display-log" class="btn btn-default pull-right" href="#">
597 <span class="fa-solid fa-calendar-days"></span>
601 <div class="page-section">
602 <h3>Request details</h3>
603 <h4>Details from library</h4>
607 <span class="label orderid">Order ID:</span>
608 [% IF request.orderid %][% request.orderid | html %][% ELSE %]<span>N/A</span>[% END %]
610 <li class="borrowernumber">
611 <span class="label borrowernumber">Patron:</span>
612 [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
613 <a href="[% borrowerlink | url %]" title="View borrower details">
614 [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
618 <li class="biblio_id">
619 <span class="label biblio_id">Bibliographic record ID:</span>
620 [% IF request.biblio_id %]
621 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id | uri %]">[% request.biblio_id | html %]</a>
626 <li class="branchcode">
627 <span class="label branchcode">Library:</span>
628 [% Branches.GetName(request.branchcode) | html %]
631 <span class="label status">Status:</span>
632 [% IF request.statusalias %]
633 [% request.statusalias.lib | html %]
635 [% request.capabilities.$req_status.name | html%]
636 [% IF request.requested_partners.length > 0 %]
637 ([% request.requested_partners | html %])
642 <span class="label updated">Last updated:</span>
643 [% request.updated | $KohaDates with_hours => 1 %]
646 <span class="label medium">Request type:</span>
647 [% type = request.get_type %]
648 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
651 <span class="label cost">Cost:</span>
652 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
654 <li class="price_paid">
655 <span class="label price_paid">Price paid:</span>
656 [% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]<span>N/A</span>[% END %]
659 <span class="label req_id">Request number:</span>
660 [% request.id_prefix _ request.illrequest_id | html %]
662 <li class="notesstaff">
663 <span class="label notes_staff">Staff notes:</span>
664 <p>[% request.notesstaff | html %]</p>
666 <li class="notesopac">
667 <span class="label notes_opac">Notes:</span>
668 <p>[% request.notesopac | html %]</p>
673 <h4>Details from supplier ([% request.backend | html %])</h4>
675 [% FOREACH meta IN request.metadata %]
676 <li class="requestmeta-[% meta.key.replace('\s','_') | html %]">
677 <span class="label">[% meta.key | html %]:</span>
678 [% meta.value | html %]
685 <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
686 <div class="modal-dialog">
687 <div class="modal-content">
688 <div class="modal-header">
689 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
690 <h3 id="dataPreviewLabel"> Supplier metadata</h3>
692 <div class="modal-body">
693 <div id="requestattributes">
694 [% FOREACH attr IN request.illrequestattributes %]
695 <div class="requestattr-[% attr.type | html %]">
696 <span class="label">[% attr.type | html %]:</span>
697 [% attr.value | html %]
702 <div class="modal-footer">
703 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
709 <div id="requestLog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
710 <div class="modal-dialog">
711 <div class="modal-content">
712 <div class="modal-header">
713 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
714 <h3 id="requestLogLabel"> Request log</h3>
716 <div class="modal-body">
717 [% IF request.logs.size > 0 %]
718 [% FOREACH log IN request.logs %]
719 [% tpl = log.template %]
720 [% INCLUDE $tpl log=log %]
723 <span>There are no recorded logs for this request</span>
726 <div class="modal-footer">
727 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
733 <div class="page-section">
734 <h3>[% request.illcomments.count | html %] comments</h3>
735 [% IF request.illcomments.count && request.illcomments.count > 0 %]
736 [% FOREACH comment IN request.illcomments %]
737 <div class="rows comment_[% comment.patron.categorycode | html %]">
739 <a href="[% borrowerlink | url %]" title="View borrower details">
740 [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %]</a>
741 [% comment.timestamp | $KohaDates with_hours => 1 %]</h5>
742 <p>[% comment.comment | html %]</p>
747 <h3><a id="toggle_addcomment" href="#">Add comment</a></h3>
748 <div id="addcomment" class="content_hidden">
749 <form class="validated" method="post" action="/cgi-bin/koha/ill/ill-requests.pl">
750 <input type="hidden" value="save_comment" name="method">
751 <input type="hidden" value="[% csrf_token | html %]" name="csrf_token">
752 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
753 <fieldset class="rows">
756 <label class="required" for="comment">Comment: </label>
757 <textarea class="required" required="required" cols="80" rows="10" id="comment" name="comment"></textarea>
758 <span class="required">Required</span>
762 <fieldset class="action">
763 <input type="submit" class="btn btn-primary" value="Submit" />
770 [% ELSIF query_type == 'illlist' %]
772 <h1>View ILL requests</h1>
773 <div id="results" class="page-section">
774 <h2>Details for all requests</h2>
775 [% INCLUDE 'ill-list-table.inc' %]
776 </div> <!-- /#results -->
777 [% ELSIF query_type == 'availability' %]
778 <!-- availability -->
779 <h1>Availability</h1>
780 <div id="results" class="page-section">
781 <h3>Displaying availability results</h3>
782 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
783 [% FOREACH key IN whole.keys %]
784 [% value = whole.$key %]
785 [% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %]
786 <input type="hidden" name="[% key | html %]" value="[% value | html %]">
789 [% custom_keys = whole.custom_key.split('\0') %]
790 [% custom_values = whole.custom_value.split('\0') %]
792 [% FOREACH custom_key IN custom_keys %]
793 <input type="hidden" name="custom_key" value="[% custom_key | html %]">
794 <input type="hidden" name="custom_value" value="[% custom_values.$i | html %]">
797 <input type="hidden" name="method" value="create">
798 <input type="hidden" name="stage" value="form">
799 <input type="hidden" name="checked_availability" value="1">
800 <div id="continue-request-row" class="alert">
801 If you can't find what you are looking for, you can
802 <button class="button" type="submit">continue creating your request</button> or
803 <a href="/cgi-bin/koha/ill/ill-requests.pl">cancel your request</a>
806 [% FOR service IN services %]
807 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
808 [% INCLUDE 'ill-availability-table.inc' service=service %]
812 <!-- Custom Backend Action -->
813 [% PROCESS $whole.template %]
817 </div> <!-- /#interlibraryloans -->
819 </div> <!-- /.col-sm-10 -->
820 </div> <!-- /.row -->
823 [% MACRO jsinclude BLOCK %]
824 [% INCLUDE 'datatables.inc' %]
825 [% INCLUDE 'js-biblio-format.inc' %]
826 [% INCLUDE 'js-patron-format.inc' %]
827 [% INCLUDE 'columns_settings.inc' %]
828 [% INCLUDE 'calendar.inc' %]
829 [% INCLUDE 'select2.inc' %]
831 var prefilters = '[% prefilters | $raw %]';
832 // Set column settings
833 var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
835 [% IF services_json.length > 0 %]
836 var services = [% services_json | $raw %];
840 [% IF metadata.length > 0 %]
841 var metadata = "[% metadata | $raw %]";
845 $('#ill_checkout_inhouse_select').on('change', function() {
846 if ($(this).val().length > 0) {
847 $('.ill_checkout_due_date').hide();
849 $('.ill_checkout_due_date').show();
853 [% INCLUDE 'ill-list-table-strings.inc' %]
854 [% Asset.js("js/ill-list-table.js") | $raw %]
855 [% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %]
856 [% Asset.js("js/ill-availability.js") | $raw %]
858 [% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %]
860 $(document).ready(function() {
865 [% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %]
866 [% Asset.js("js/ill-availability-partner.js") | $raw %]
872 [% PROCESS backend_jsinclude %]
876 [% INCLUDE 'intranet-bottom.inc' %]