Lines 193-204
Link Here
|
193 |
} |
193 |
} |
194 |
}; |
194 |
}; |
195 |
|
195 |
|
196 |
// Toggle request attributes in Illview |
|
|
197 |
$('#toggle_requestattributes').on('click', function(e) { |
198 |
e.preventDefault(); |
199 |
$('#requestattributes').toggleClass('content_hidden'); |
200 |
}); |
201 |
|
202 |
// Filter partner list |
196 |
// Filter partner list |
203 |
$('#partner_filter').keyup(function() { |
197 |
$('#partner_filter').keyup(function() { |
204 |
var needle = $('#partner_filter').val(); |
198 |
var needle = $('#partner_filter').val(); |
Lines 216-221
Link Here
|
216 |
}); |
210 |
}); |
217 |
}); |
211 |
}); |
218 |
|
212 |
|
|
|
213 |
// Display the modal containing request supplier metadata |
214 |
$('#ill-request-display-metadata').on('click', function(e) { |
215 |
e.preventDefault(); |
216 |
$('#dataPreview').modal({show:true}); |
217 |
}); |
218 |
|
219 |
// Get our data from the API and process it prior to passing |
219 |
// Get our data from the API and process it prior to passing |
220 |
// it to datatables |
220 |
// it to datatables |
221 |
var ajax = $.ajax( |
221 |
var ajax = $.ajax( |
Lines 496-501
Link Here
|
496 |
</a> |
496 |
</a> |
497 |
[% END %] |
497 |
[% END %] |
498 |
[% END %] |
498 |
[% END %] |
|
|
499 |
<a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-sm btn-default pull-right" href="#"> |
500 |
<span class="fa fa-eye"></span> |
501 |
Display supplier metadata |
502 |
</a> |
499 |
</div> |
503 |
</div> |
500 |
<div id="ill-view-panel" class="panel panel-default"> |
504 |
<div id="ill-view-panel" class="panel panel-default"> |
501 |
<div class="panel-heading"> |
505 |
<div class="panel-heading"> |
Lines 562-582
Link Here
|
562 |
</div> |
566 |
</div> |
563 |
[% END %] |
567 |
[% END %] |
564 |
</div> |
568 |
</div> |
565 |
<div class="rows"> |
|
|
566 |
<h3><a id="toggle_requestattributes" href="#">Toggle full supplier metadata</a></h3> |
567 |
<div id="requestattributes" class="content_hidden"> |
568 |
[% FOREACH attr IN request.illrequestattributes %] |
569 |
<div class="requestattr-[% attr.type %]"> |
570 |
<span class="label">[% attr.type %]:</span> |
571 |
[% attr.value %] |
572 |
</div> |
573 |
[% END %] |
574 |
</div> |
575 |
|
576 |
</div> |
577 |
</div> |
569 |
</div> |
578 |
</div> |
570 |
</div> |
579 |
|
571 |
|
|
|
572 |
<div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
573 |
<div class="modal-dialog"> |
574 |
<div class="modal-content"> |
575 |
<div class="modal-header"> |
576 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
577 |
<h3 id="dataPreviewLabel"> Supplier metadata</h3> |
578 |
</div> |
579 |
<div class="modal-body"> |
580 |
<div id="requestattributes"> |
581 |
[% FOREACH attr IN request.illrequestattributes %] |
582 |
<div class="requestattr-[% attr.type %]"> |
583 |
<span class="label">[% attr.type %]:</span> |
584 |
[% attr.value %] |
585 |
</div> |
586 |
[% END %] |
587 |
</div> |
588 |
</div> |
589 |
<div class="modal-footer"> |
590 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
591 |
</div> |
592 |
</div> |
593 |
</div> |
594 |
</div> |
595 |
|
580 |
[% ELSIF query_type == 'illlist' %] |
596 |
[% ELSIF query_type == 'illlist' %] |
581 |
<!-- illlist --> |
597 |
<!-- illlist --> |
582 |
<h1>View ILL requests</h1> |
598 |
<h1>View ILL requests</h1> |
583 |
- |
|
|