6 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
9 [% PROCESS 'i18n.inc' %]
10 [% SET footerjs = 1 %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>[% FILTER collapse %]
13 [% t("ILL requests") | html %] ›
14 [% t("Koha") | html %]
16 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="illrequests" class="ill">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'cat-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 [% WRAPPER breadcrumbs %]
26 [% IF query_type == 'create' %]
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
30 [% WRAPPER breadcrumb_item bc_active= 1 %]
31 <span>New request</span>
33 [% ELSIF query_type == 'illview' %]
34 [% WRAPPER breadcrumb_item %]
35 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
37 [% WRAPPER breadcrumb_item bc_active= 1 %]
38 <span>Manage request [% request.id_prefix _ request.illrequest_id | html %]</span>
40 [% ELSIF query_type == 'typedisclaimer' %]
41 [% WRAPPER breadcrumb_item %]
42 <a href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
44 [% WRAPPER breadcrumb_item bc_active= 1 %]
45 <span>Request type disclaimer</span>
48 [% WRAPPER breadcrumb_item bc_active= 1 %]
49 <span>ILL requests</span>
52 [% END #/ WRAPPER breadcrumbs %]
53 [% END #/ WRAPPER sub-header.inc %]
55 <div class="main container-fluid">
58 [% IF query_type == 'illlist' %]
59 <div class="col-sm-2">
61 <form method="get" id="illfilter_form">
62 <fieldset class="brief">
66 <label for="illfilter_keyword">Keyword:</label>
67 <input type="text" name="illfilter_keyword" id="illfilter_keyword" />
70 <label for="illfilter_backend">Backend:</label>
71 <select name="illfilter_backend" id="illfilter_backend">
72 <option value="">All backends</option>
76 <label for="illfilter_status">Status:</label>
77 <select name="illfilter_status" id="illfilter_status">
81 <label for="illfilter_dateplaced_start">Date placed between:</label>
82 <input type="text" name="illfilter_dateplaced_start" id="illfilter_dateplaced_start" class="flatpickr" data-date_to="illfilter_dateplaced_end"/>
85 <label for="illfilter_dateplaced_end">and:</label>
86 <input type="text" name="illfilter_dateplaced_end" id="illfilter_dateplaced_end" class="flatpickr" />
89 <label for="illfilter_datemodified_start">Updated between:</label>
90 <input type="text" name="illfilter_datemodified_start" id="illfilter_datemodified_start" class="flatpickr" data-date_to="illfilter_datemodified_end" />
93 <label for="illfilter_datemodified_end">and:</label>
94 <input type="text" name="illfilter_datemodified_end" id="illfilter_datemodified_end" class="flatpickr" />
97 <label for="illfilter_branchname">Library:</label>
98 <select name="illfilter_branchname" id="illfilter_branchname">
99 <option value="">All libraries</option>
100 [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %]
104 <label for="illfilter_patron">Patron:</label>
105 <input type="text" name="illfilter_patron" id="illfilter_patron" />
108 <fieldset class="action">
109 <input type="submit" class="btn btn-primary" value="Search" />
110 <input type="button" value="Clear" id="clear_search" />
113 </form> <!-- /#illfilter_form -->
115 </div> <!-- /.col-sm-2 -->
116 <div class="col-sm-10">
119 <div class="col-sm-10 col-sm-offset-2">
122 <div id="interlibraryloans">
123 [% IF !backends_available || !has_branch %]
124 <div class="dialog message">ILL module configuration problem. Take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo_panel">about page</a></div>
126 [% INCLUDE 'ill-toolbar.inc' %]
129 <h1>Error performing operation</h1>
130 <!-- Dispatch on Status -->
131 <p>We encountered an error:</p>
133 <pre>[% whole.message | html %] ([% whole.status | html %])</pre>
137 [% IF whole.success %]
138 <p>[% whole.success | html %]</p>
141 [% IF query_type == 'create' %]
142 <h1>New ILL request</h1>
143 [% PROCESS $whole.template %]
145 [% ELSIF query_type == 'confirm' %]
146 <h1>Confirm ILL request</h1>
147 [% PROCESS $whole.template %]
149 [% ELSIF query_type == 'cancel' and !whole.error %]
150 <h1>Cancel a confirmed request</h1>
151 [% PROCESS $whole.template %]
153 [% ELSIF query_type == 'check_out' and !whole.error %]
154 [% IF !whole.stage || whole.stage == 'form' %]
155 <h1 id="ill-issue-title">Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]</h1>
156 [% IF !request.biblio_id || request.biblio_id.length == 0 %]
157 <div class="alert">This item cannot be checked out as it has no bibliographic record associated with it</div>
159 [% IF whole.value.errors.itemcount %]
160 <div class="alert">The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.</div>
162 [% IF whole.value.errors.item_creation %]
163 <div class="alert">An unknown error occurred while trying to add an item</div>
165 [% IF whole.value.errors.item_check_out %]
166 <div class="alert">An unknown error occurred while trying to check out the item</div>
168 [% IF whole.value.check_out_errors %]
169 [% IF whole.value.check_out_errors.error.STATS %]
175 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>
179 [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]
180 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
181 <fieldset class="rows">
182 <legend>Check out details</legend>
183 [% items = whole.value.biblio.items.unblessed %]
184 [% IF items.size == 1 %]
185 <p>The bibliographic record for this request already has an item attached to it, you are about to check it out</p>
187 <p>A bibliographic record for this request exists, but no item. You are about to create an item and check it out</p>
190 <li class="ill_checkout_inhouse">
191 <label for="inhouse" class="ill_checkout_inhouse_label">Statistical patron:</label>
192 <select id="ill_checkout_inhouse_select" name="inhouse" class="ill_checkout_inhouse_select">
193 <option value=""></option>
194 [% FOREACH stat IN whole.value.statistical %]
195 [% IF stat.borrowernumber == params.inhouse %]
196 <option value="[% stat.cardnumber | html %]" selected>[% INCLUDE 'patron-title.inc' patron = stat %]</option>
198 <option value="[% stat.cardnumber | html %]">[% INCLUDE 'patron-title.inc' patron = stat %]</option>
202 [% IF whole.value.errors.inhouse %]
203 <span class="required">You must choose a valid patron</span>
205 <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>
207 <li class="ill_checkout_item_type">
208 <label for="item_type" class="ill_checkout_item_type_label required">Item type:</label>
209 [% IF items.size != 1 %]
210 <select id="ill_checkout_item_type_select" name="item_type" required>
211 [% FOREACH type IN whole.value.itemtypes %]
212 [% IF type.itemtype == params.item_type %]
213 <option value="[% type.itemtype | html %]" selected>
215 <option value="[% type.itemtype | html %]">
217 [% type.description | html %]
222 [% FOREACH type IN whole.value.itemtypes %]
223 [% IF type.itemtype == items.0.itype %]
224 [% type.description | html %]
228 [% IF whole.value.errors.item_type %]
229 <span class="required">You must choose an item type</span>
232 [% IF items.size == 1 %]
234 <label for="barcode" class="ill_checkout_barcode_label">Item barcode:</label>
235 [% items.0.barcode | html %]
238 <li class="ill_checkout_branchcode">
239 <label for="branchcode" class="ill_checkout_branchcode_label required">Library:</label>
240 [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %]
241 [% IF items.size != 1 %]
242 <select name="branchcode" id="ill_checkout_branchcode_select" required>
243 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
246 [% FOREACH branch IN whole.value.libraries.unblessed %]
247 [% IF branch.branchcode == branchcode %]
248 [% branch.branchname | html %]
252 [% IF whole.value.errors.branchcode %]
253 <span class="required">You must choose a library</span>
256 <li class="ill_checkout_due_date">
257 <label for="duedate" class="ill_checkout_duedate_label">Due date:</label>
258 <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' %]
259 <div class="hint">If you do not specify a due date, it will be set according to circulation rules</p>
263 <fieldset class="action">
264 <input type="hidden" value="check_out" name="method">
265 <input type="hidden" value="form" name="stage">
266 [% IF items.size == 1 %]
267 <input name="branchcode" type="hidden" value="[% branchcode | html %]">
268 <input name="item_type" type="hidden" value="[% items.0.itype | html %]">
270 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
271 <input type="submit" class="btn btn-primary" value="Submit" />
272 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
276 [% IF whole.value.check_out_errors.error.STATS %]
277 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
279 [% ELSIF whole.stage == 'done_check_out' %]
280 <h1>Item checked out</h1>
281 <fieldset class="rows">
282 <legend>Check out details</legend>
285 <label>Checked out to:</label>
286 [% INCLUDE 'patron-title.inc' patron = whole.value.patron %]
289 <label>Due date:</label>
290 [% whole.value.check_out.date_due | $KohaDates as_due_date => 1 %]
294 <fieldset class="action">
295 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Return to request</a>
299 [% ELSIF query_type == 'generic_confirm' %]
300 <h1>Place request with partner libraries</h1>
302 [% IF error == 'no_target_email' %]
304 No target email addresses found. Either select at least
305 one partner or check your ILL partner library records.
307 [% ELSIF error == 'no_library_email' %]
309 Your library has no usable email address. Please set it.
311 [% ELSIF error == 'unkown_error' %]
313 Unknown error processing your request. Contact your administrator.
317 <!-- Start of GENERIC_EMAIL case -->
318 [% IF whole.value.partners %]
319 [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=" _ request.illrequest_id %]
320 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
321 <fieldset class="rows">
322 <legend>Interlibrary loan request details</legend>
325 <label for="partner_filter">Filter partner libraries:</label>
326 <input type="text" id="partner_filter" />
329 <label for="partners" class="required">Select partner libraries:</label>
330 <select size="5" multiple="true" id="partners" name="partners" required="required">
331 [% FOREACH partner IN whole.value.partners %]
332 [% IF partner.email && partner.email.length > 0 %]
333 <option data-partner-id="[% partner.id | html %]" value=[% partner.borrowernumber | html %]>
334 [% partner.branchcode _ " - " _ partner.surname %]
339 [% IF Koha.Preference('ILLCheckAvailability') %]
340 <div id="generic_confirm_search_count">Partners available for searching: <span id="generic_confirm_enabled">none</span></div>
341 <div id="generic_confirm_search">
342 <button type="button">Search selected partners</button>
347 <label for="subject" class="required">Subject line:</label>
348 <input type="text" name="subject" id="subject" type="text" value="[% whole.value.draft.subject | html %]" required="required" />
351 <label for="body" class="required">Email text:</label>
352 <textarea name="body" id="body" rows="20" cols="80" required="required">[% whole.value.draft.body | html %]</textarea>
355 <input type="hidden" value="generic_confirm" name="method">
356 <input type="hidden" value="draft" name="stage">
357 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
359 <fieldset class="action">
360 <input type="submit" class="btn btn-default" value="Send email"/>
361 <span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span>
364 [% IF Koha.Preference('ILLCheckAvailability') %]
365 <div id="partnerSearch" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="partnerSearchLabel" aria-hidden="true">
366 <div class="modal-dialog">
367 <div class="modal-content">
368 <div class="modal-header">
369 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
370 <h3 id="partnerSearchLabel"> Search partners</h3>
372 <div class="modal-body">
373 [% FOR service IN services %]
374 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
375 [% INCLUDE 'ill-availability-table.inc' service=service %]
377 <span id="service_id_restrict" data-service_id_restrict_plugin="ILL availability - z39.50" data-service_id_restrict_ids=""></span>
379 <div class="modal-footer">
380 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
388 <fieldset class="rows">
389 <legend>Interlibrary loan request details</legend>
390 <p>No partners have been defined yet. Please create appropriate patron records (by default IL category).</p>
391 <p>Be sure to provide email addresses for these patrons.</p>
392 <p><span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span></p>
395 <!-- generic_confirm ends here -->
397 [% ELSIF query_type == 'edit_action' %]
398 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
399 <fieldset class="rows">
400 <legend>Request details</legend>
402 [% type = request.get_type %]
403 <li class="borrowernumber">
404 <label for="borrowernumber">Patron ID:</label>
405 <input name="borrowernumber" id="borrowernumber" type="text" value="[% request.borrowernumber | html %]">
407 <li class="biblio_id">
408 <label for="biblio_id" class="biblio_id">Bibliographic record ID:</label>
409 <input name="biblio_id" id="biblio_id" type="text" value="[% request.biblio_id | html %]">
411 <li class="branchcode">
412 <label for="library" class="branchcode">Library:</label>
413 <select name="branchcode" id="library">
414 [% PROCESS options_for_libraries libraries => Branches.all( selected => request.branchcode ) %]
418 <label class="status">Status:</label>
419 [% stat = request.status %]
420 [% current_alias = request.status_alias %]
421 <select id="status_alias" name="status_alias">
422 [% IF !current_alias %]
423 <option value="" selected>
427 [% request.capabilities.$stat.name | html %]
429 [% FOREACH alias IN AuthorisedValues.Get('ILL_STATUS_ALIAS') %]
430 [% IF alias.authorised_value == current_alias %]
431 <option value="[% alias.authorised_value | html %]" selected>
433 <option value="[% alias.authorised_value | html %]">
435 [% alias.lib | html %]
441 <label class="updated">Last updated:</label>
442 [% request.updated | $KohaDates with_hours => 1 %]
445 <label class="medium">Request type:</label>
446 [% IF type %][% type | html %][% ELSE %]<span>N/A</span>[% END %]
449 <label class="cost">Cost:</label>
450 [% IF request.cost %][% request.cost | $Price %][% ELSE %]<span>N/A</span>[% END %]
452 <li class="price_paid">
453 <label class="price_paid">Price paid:</label>
454 <input name="price_paid" id="price_paid" type="text" value="[% request.price_paid | html %]">
457 <label class="req_id">Request ID:</label>
458 [% request.id_prefix _ request.illrequest_id | html %]
460 <li class="notesstaff">
461 <label for="notesstaff" class="notesstaff">Staff notes:</label>
462 <textarea name="notesstaff" id="notesstaff" rows="5">[% request.notesstaff | html %]</textarea>
464 <li class="notesopac">
465 <label for="notesopac" class="notesopac">OPAC notes:</label>
466 <textarea name="notesopac" id="notesopac" rows="5">[% request.notesopac | html %]</textarea>
470 <fieldset class="action">
471 <input type="hidden" value="edit_action" name="method">
472 <input type="hidden" value="form" name="stage">
473 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
474 <input type="submit" class="btn btn-primary" value="Submit" />
475 <a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% request.id | html %]">Cancel</a>
479 [% ELSIF query_type == 'delete_confirm' %]
481 <div class="dialog alert">
482 <h3>Are you sure you wish to delete this request?</h3>
483 <form action="/cgi-bin/koha/ill/ill-requests.pl" method="post">
484 <input type="hidden" name="method" value="delete" />
485 <input type="hidden" name="confirmed" value="1" />
486 <input type="hidden" name="illrequest_id" value="[% request.id | html %]" />
487 <button type="submit" class="btn btn-default approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
489 <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>
492 [% ELSIF query_type == 'illview' %]
493 [% IF whole.template.length > 0 %]
494 [% PROCESS $whole.template %]
496 [% req_status = request.status %]
499 [% IF error == 'migrate_target' %]
501 The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
506 [% IF tran_success %]
507 [% succ_methods = [] %]
508 [% IF tran_success.match('email') %]
509 [% succ_methods.push('email') %]
511 [% IF tran_success.match('sms') %]
512 [% succ_methods.push('SMS') %]
515 The requested notice was queued for delivery by [% succ_methods.join(', ') | html %]
519 [% fail_methods = [] %]
520 [% IF tran_fail.match('email') %]
521 [% fail_methods.push('email') %]
523 [% IF tran_fail.match('sms') %]
524 [% fail_methods.push('SMS') %]
527 The requested notice was NOT queued for delivery by [% fail_methods.join(', ') | html %]
531 <h1>Manage ILL request</h1>
532 <div id="request-toolbar" class="btn-toolbar">
533 <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 %]">
534 <i class="fa-solid fa-pencil" aria-hidden="true"></i>
537 [% FOREACH action IN request.available_actions %]
538 [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %]
539 [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %]
540 [% needs_all = action.needs_all.size ? action.needs_all : [] %]
541 [% has_prefs_count = 0 %]
542 [% has_perms_count = 0 %]
543 [% has_all_count = 0 %]
544 [% FOREACH pref IN needs_prefs %]
545 [% IF Koha.Preference(pref) %]
546 [% has_prefs_count = has_prefs_count + 1 %]
549 [% FOREACH perm IN needs_perms %]
550 [% perm_name = 'CAN_' _ perm %]
551 [% IF ($perm_name) %]
552 [% has_perms_count = has_perms_count + 1 %]
555 [% FOREACH func IN needs_all %]
556 [% IF func(request) %]
557 [% has_all_count = has_all_count + 1 %]
560 [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %]
561 [% IF action.method == 'migrate' %]
562 [% IF backends.size > 2 %]
563 <div class="dropdown btn-group">
564 <button class="btn btn-default dropdown-toggle" type="button" id="ill-migrate-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
565 <i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] <span class="caret"></span>
567 <ul class="dropdown-menu" aria-labelledby="ill-migrate-dropdown">
568 [% FOREACH backend IN backends %]
569 [% IF backend != request.backend %]
570 <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>
575 [% ELSIF backends.size == 2 %]
576 [% FOREACH backend IN backends %]
577 [% IF backend != request.backend %]
578 <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 %]">
579 <span class="fa [% action.ui_method_icon | html %]"></span>
580 [% action.ui_method_name | html %]
585 [% ELSIF action.method != 0 %]
586 <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 %]">
587 <span class="fa [% action.ui_method_icon | html %]"></span>
588 [% action.ui_method_name | html %]
592 <div class="dropdown btn-group">
593 <button class="btn btn-default dropdown-toggle" type="button" id="ill-notice-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
594 <i class="fa-solid fa-envelope"></i> Send notice to patron <span class="caret"></span>
596 <ul class="dropdown-menu" aria-labelledby="ill-notice-dropdown">
597 [% FOREACH notice IN notices %]
598 <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>
602 <a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-default pull-right" href="#">
603 <span class="fa-solid fa-eye"></span>
604 Display supplier metadata
606 <a title="ILL request log" id="ill-request-display-log" class="btn btn-default pull-right" href="#">
607 <span class="fa-solid fa-calendar-days"></span>
611 <div class="page-section">
612 <h3>Request details</h3>
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.replace('_',' ') | html %]:</span>
688 [% meta.value | html %]
695 <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
696 <div class="modal-dialog">
697 <div class="modal-content">
698 <div class="modal-header">
699 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
700 <h3 id="dataPreviewLabel"> Supplier metadata</h3>
702 <div class="modal-body">
703 <div id="requestattributes">
704 [% FOREACH attr IN request.illrequestattributes %]
705 <div class="requestattr-[% attr.type | html %]">
706 <span class="label">[% attr.type | html %]:</span>
707 [% attr.value | html %]
712 <div class="modal-footer">
713 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
719 <div id="requestLog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
720 <div class="modal-dialog">
721 <div class="modal-content">
722 <div class="modal-header">
723 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
724 <h3 id="requestLogLabel"> Request log</h3>
726 <div class="modal-body">
727 [% IF request.logs.size > 0 %]
728 [% FOREACH log IN request.logs %]
729 [% tpl = log.template %]
730 [% INCLUDE $tpl log=log %]
733 <span>There are no recorded logs for this request</span>
736 <div class="modal-footer">
737 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
743 <div class="page-section">
744 <h3>[% request.illcomments.count | html %] comments</h3>
745 [% IF request.illcomments.count && request.illcomments.count > 0 %]
746 [% FOREACH comment IN request.illcomments %]
747 <div class="rows comment_[% comment.patron.categorycode | html %]">
749 <a href="[% borrowerlink | url %]" title="View borrower details">
750 [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %]</a>
751 [% comment.timestamp | $KohaDates with_hours => 1 %]</h5>
752 <p>[% comment.comment | html %]</p>
757 <h3><a id="toggle_addcomment" href="#">Add comment</a></h3>
758 <div id="addcomment" class="content_hidden">
759 <form class="validated" method="post" action="/cgi-bin/koha/ill/ill-requests.pl">
760 <input type="hidden" value="save_comment" name="method">
761 <input type="hidden" value="[% csrf_token | html %]" name="csrf_token">
762 <input type="hidden" value="[% request.illrequest_id | html %]" name="illrequest_id">
763 <fieldset class="rows">
766 <label class="required" for="comment">Comment: </label>
767 <textarea class="required" required="required" cols="80" rows="10" id="comment" name="comment"></textarea>
768 <span class="required">Required</span>
772 <fieldset class="action">
773 <input type="submit" class="btn btn-primary" value="Submit" />
780 [% ELSIF query_type == 'illlist' %]
782 <h1>View ILL requests</h1>
783 <div id="results" class="page-section">
784 <h2>Details for all requests</h2>
785 [% INCLUDE 'ill-list-table.inc' %]
786 </div> <!-- /#results -->
787 [% ELSIF query_type == 'availability' %]
788 <!-- availability -->
789 <h1>Availability</h1>
790 <div id="results" class="page-section">
791 <h3>Displaying availability results</h3>
792 <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl">
793 [% FOREACH key IN whole.keys %]
794 [% value = whole.$key %]
795 [% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %]
796 <input type="hidden" name="[% key | html %]" value="[% value | html %]">
799 [% custom_keys = whole.custom_key.split('\0') %]
800 [% custom_values = whole.custom_value.split('\0') %]
802 [% FOREACH custom_key IN custom_keys %]
803 <input type="hidden" name="custom_key" value="[% custom_key | html %]">
804 <input type="hidden" name="custom_value" value="[% custom_values.$i | html %]">
807 <input type="hidden" name="method" value="create">
808 <input type="hidden" name="stage" value="form">
809 <input type="hidden" name="checked_availability" value="1">
810 <div id="continue-request-row" class="alert">
811 If you can't find what you are looking for, you can
812 <button class="button" type="submit">continue creating your request</button> or
813 <a href="/cgi-bin/koha/ill/ill-requests.pl">cancel your request</a>
816 [% FOR service IN services %]
817 <h4 class="ill_availability_sourcename">[% service.name | html %]</h4>
818 [% INCLUDE 'ill-availability-table.inc' service=service %]
821 [% ELSIF query_type == 'typedisclaimer' %]
822 <!-- typedisclaimer -->
823 <h1>Request type disclaimer</h1>
824 <div id="results" class="page-section">
825 <form method="post" id="typedisclaimer-form">
826 <fieldset class="rows">
827 [% disclaimer.text | $raw %]
828 [% SET disc_av_category_code = AuthorisedValues.GetAuthValueDropbox(disclaimer.av_cat) %]
829 [% IF disc_av_category_code.count %]
831 <select name="type_disclaimer_value">
832 [% FOR av_option IN disc_av_category_code %]
833 <option value="[% av_option.lib_opac | html %]">[% av_option.lib_opac | html %]</option>
838 <fieldset class="action">
839 [% FOREACH key IN whole.keys %]
840 [% value = whole.$key %]
841 [% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %]
842 <input type="hidden" name="[% key | html %]" value="[% value | html %]">
845 [% custom_keys = whole.custom_key.split('\0') %]
846 [% custom_values = whole.custom_value.split('\0') %]
848 [% FOREACH custom_key IN custom_keys %]
849 <input type="hidden" name="custom_key" value="[% custom_key | html %]">
850 <input type="hidden" name="custom_value" value="[% custom_values.$i | html %]">
853 <input type="hidden" name="method" value="create" />
854 <input type="hidden" name="stage" value="form">
855 <input type="hidden" name="type_disclaimer_submitted" value="1">
856 <input type="submit" value="Submit" />
857 <a class="cancel" href="ill-requests.pl">Cancel</a>
862 <!-- Custom Backend Action -->
863 [% PROCESS $whole.template %]
867 </div> <!-- /#interlibraryloans -->
869 </div> <!-- /.col-sm-10 -->
870 </div> <!-- /.row -->
873 [% MACRO jsinclude BLOCK %]
874 [% INCLUDE 'datatables.inc' %]
875 [% INCLUDE 'js-biblio-format.inc' %]
876 [% INCLUDE 'js-patron-format.inc' %]
877 [% INCLUDE 'columns_settings.inc' %]
878 [% INCLUDE 'calendar.inc' %]
879 [% INCLUDE 'select2.inc' %]
881 var prefilters = '[% prefilters | $raw %]';
882 // Set column settings
883 var table_settings = [% TablesSettings.GetTableSettings( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) | $raw %];
885 [% IF services_json.length > 0 %]
886 var services = [% services_json | $raw %];
890 [% IF metadata.length > 0 %]
891 var metadata = "[% metadata | $raw %]";
895 $('#ill_checkout_inhouse_select').on('change', function() {
896 if ($(this).val().length > 0) {
897 $('.ill_checkout_due_date').hide();
899 $('.ill_checkout_due_date').show();
903 [% INCLUDE 'ill-list-table-strings.inc' %]
904 [% Asset.js("js/ill-list-table.js") | $raw %]
905 [% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %]
906 [% Asset.js("js/ill-availability.js") | $raw %]
908 [% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %]
910 $(document).ready(function() {
915 [% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %]
916 [% Asset.js("js/ill-availability-partner.js") | $raw %]
922 [% PROCESS backend_jsinclude %]
926 [% INCLUDE 'intranet-bottom.inc' %]