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-578
Link Here
|
562 |
</div> |
566 |
</div> |
563 |
[% END %] |
567 |
[% END %] |
564 |
</div> |
568 |
</div> |
565 |
<div class="rows"> |
569 |
</div> |
566 |
<h3><a id="toggle_requestattributes" href="#">Toggle full supplier metadata</a></h3> |
570 |
</div> |
567 |
<div id="requestattributes" class="content_hidden"> |
571 |
|
568 |
[% FOREACH attr IN request.illrequestattributes %] |
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 %] |
569 |
<div class="requestattr-[% attr.type %]"> |
582 |
<div class="requestattr-[% attr.type %]"> |
570 |
<span class="label">[% attr.type %]:</span> |
583 |
<span class="label">[% attr.type %]:</span> |
571 |
[% attr.value %] |
584 |
[% attr.value %] |
572 |
</div> |
585 |
</div> |
573 |
[% END %] |
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> |
574 |
</div> |
591 |
</div> |
575 |
|
|
|
576 |
</div> |
592 |
</div> |
577 |
</div> |
593 |
</div> |
578 |
</div> |
594 |
</div> |
579 |
- |
|
|