Lines 144-155
Link Here
|
144 |
<label for="partners" class="required">Select partner libraries:</label> |
144 |
<label for="partners" class="required">Select partner libraries:</label> |
145 |
<select size="5" multiple="true" id="partners" name="partners" required="required"> |
145 |
<select size="5" multiple="true" id="partners" name="partners" required="required"> |
146 |
[% FOREACH partner IN whole.value.partners %] |
146 |
[% FOREACH partner IN whole.value.partners %] |
147 |
<option value=[% partner.email | html %]> |
147 |
<option data-partner-id="[% partner.id | html %]" value=[% partner.email | html %]> |
148 |
[% partner.branchcode _ " - " _ partner.surname %] |
148 |
[% partner.branchcode _ " - " _ partner.surname %] |
149 |
</option> |
149 |
</option> |
150 |
[% END %] |
150 |
[% END %] |
151 |
</select> |
151 |
</select> |
152 |
|
152 |
[% IF Koha.Preference('ILLCheckAvailability') %] |
|
|
153 |
<button type="button" id="generic_confirm_search">Search selected partners</button> |
154 |
[% END %] |
153 |
</li> |
155 |
</li> |
154 |
<li> |
156 |
<li> |
155 |
<label for="subject" class="required">Subject line:</label> |
157 |
<label for="subject" class="required">Subject line:</label> |
Lines 169-174
Link Here
|
169 |
<span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span> |
171 |
<span><a href="[% ill_url | url %]" title="Return to request details">Cancel</a></span> |
170 |
</fieldset> |
172 |
</fieldset> |
171 |
</form> |
173 |
</form> |
|
|
174 |
[% IF Koha.Preference('ILLCheckAvailability') %] |
175 |
<div id="partnerSearch" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="partnerSearchLabel" aria-hidden="true"> |
176 |
<div class="modal-dialog"> |
177 |
<div class="modal-content"> |
178 |
<div class="modal-header"> |
179 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
180 |
<h3 id="partnerSearchLabel"> Search partners</h3> |
181 |
</div> |
182 |
<div class="modal-body"> |
183 |
[% FOR service IN services %] |
184 |
<h4 class="ill_availability_sourcename">[% service.plugin %]</h4> |
185 |
[% INCLUDE 'ill-availability-table.inc' service=service %] |
186 |
[% END %] |
187 |
<span id="service_id_restrict" data-service_id_restrict_plugin="ILL availability - z39.50" data-service_id_restrict_ids=""></span> |
188 |
</div> |
189 |
<div class="modal-footer"> |
190 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
191 |
</div> |
192 |
</div> |
193 |
</div> |
194 |
</div> |
195 |
[% END %] |
196 |
|
172 |
[% ELSE %] |
197 |
[% ELSE %] |
173 |
<fieldset class="rows"> |
198 |
<fieldset class="rows"> |
174 |
<legend>Interlibrary loan request details</legend> |
199 |
<legend>Interlibrary loan request details</legend> |
Lines 518-523
Link Here
|
518 |
[% INCLUDE 'ill-list-table.inc' %] |
543 |
[% INCLUDE 'ill-list-table.inc' %] |
519 |
|
544 |
|
520 |
</div> <!-- /#results --> |
545 |
</div> <!-- /#results --> |
|
|
546 |
[% ELSIF query_type == 'availability' %] |
547 |
<!-- availability --> |
548 |
<h1>Availability</h1> |
549 |
<div id="results"> |
550 |
<h3>Displaying availability results</h3> |
551 |
<form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl"> |
552 |
[% FOREACH key IN whole.keys %] |
553 |
[% value = whole.$key %] |
554 |
[% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
555 |
<input type="hidden" name="[% key | html %]" value="[% value | html %]"> |
556 |
[% END %] |
557 |
[% END %] |
558 |
[% custom_keys = whole.custom_key.split('\0') %] |
559 |
[% custom_values = whole.custom_value.split('\0') %] |
560 |
[% i = 0 %] |
561 |
[% FOREACH custom_key IN custom_keys %] |
562 |
<input type="hidden" name="custom_key" value="[% custom_key %]"> |
563 |
<input type="hidden" name="custom_value" value="[% custom_values.$i %]"> |
564 |
[% i = i + 1 %] |
565 |
[% END %] |
566 |
<input type="hidden" name="method" value="create"> |
567 |
<input type="hidden" name="stage" value="form"> |
568 |
<input type="hidden" name="checked_availability" value="1"> |
569 |
<div id="continue-request-row" class="alert"> |
570 |
If you can't find what you are looking for, you can |
571 |
<button class="button" type="submit">continue creating your request</button> or |
572 |
<a href="/cgi-bin/koha/ill/ill-requests.pl">cancel your request</a> |
573 |
</div> |
574 |
</form> |
575 |
[% FOR service IN services %] |
576 |
<h4 class="ill_availability_sourcename">[% service.plugin %]</h4> |
577 |
[% INCLUDE 'ill-availability-table.inc' service=service %] |
578 |
[% END %] |
579 |
</div> |
521 |
[% ELSE %] |
580 |
[% ELSE %] |
522 |
<!-- Custom Backend Action --> |
581 |
<!-- Custom Backend Action --> |
523 |
[% PROCESS $whole.template %] |
582 |
[% PROCESS $whole.template %] |
Lines 539-549
Link Here
|
539 |
var prefilters = '[% prefilters | $raw %]'; |
598 |
var prefilters = '[% prefilters | $raw %]'; |
540 |
// Set column settings |
599 |
// Set column settings |
541 |
var columns_settings = [% ColumnsSettings.GetColumns( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) %]; |
600 |
var columns_settings = [% ColumnsSettings.GetColumns( 'illrequests', 'ill-requests', 'ill-requests', 'json' ) %]; |
|
|
601 |
[% IF services_json.length > 0 %] |
602 |
var services = [% services_json | $raw %]; |
603 |
[% ELSE %] |
604 |
var services = []; |
605 |
[% END %] |
606 |
[% IF metadata.length > 0 %] |
607 |
var metadata = "[% metadata | $raw %]"; |
608 |
[% END %] |
542 |
</script> |
609 |
</script> |
543 |
[% IF query_type == 'illlist' %] |
610 |
[% IF query_type == 'illlist' %] |
544 |
[% INCLUDE 'ill-list-table-strings.inc' %] |
611 |
[% INCLUDE 'ill-list-table-strings.inc' %] |
545 |
[% Asset.js("js/ill-list-table.js") | $raw %] |
612 |
[% Asset.js("js/ill-list-table.js") | $raw %] |
546 |
[% END %] |
613 |
[% END %] |
|
|
614 |
[% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %] |
615 |
[% Asset.js("js/ill-availability.js") | $raw %] |
616 |
[% END %] |
617 |
[% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %] |
618 |
<script> |
619 |
$(document).ready(function() { |
620 |
window.doSearch(); |
621 |
}); |
622 |
</script> |
623 |
[% END %] |
624 |
[% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %] |
625 |
[% Asset.js("js/ill-availability-partner.js") | $raw %] |
626 |
[% END %] |
547 |
[% END %] |
627 |
[% END %] |
548 |
|
628 |
|
549 |
[% TRY %] |
629 |
[% TRY %] |