|
Lines 97-103
Link Here
|
| 97 |
[% END %] |
97 |
[% END %] |
| 98 |
</span> |
98 |
</span> |
| 99 |
[% END %] |
99 |
[% END %] |
| 100 |
<span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html" title="MARC" class="previewMARC">Show</a></span> |
100 |
|
|
|
101 |
<span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html " title="MARC" class="previewMARC">Show</a></span> |
| 102 |
|
| 103 |
[% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] |
| 104 |
<span id="catalogue_detail_elastic_record" class="results_summary"><span class="label">Elasticsearch Record :</span> <a href="/cgi-bin/koha/catalogue/showelastic.pl?id=[% biblionumber | uri %]" title="ELASTIC" class="previewElastic">Show</a></span> |
| 105 |
[% END %] |
| 101 |
|
106 |
|
| 102 |
[% IF ( holdcount ) %] |
107 |
[% IF ( holdcount ) %] |
| 103 |
<span class="results_summary"> |
108 |
<span class="results_summary"> |
|
Lines 736-741
Link Here
|
| 736 |
</div> |
741 |
</div> |
| 737 |
</div> |
742 |
</div> |
| 738 |
|
743 |
|
|
|
744 |
<div id="elasticPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="elasticPreviewLabel" aria-hidden="true"> |
| 745 |
<div class="modal-dialog modal-lg"> |
| 746 |
<div class="modal-content"> |
| 747 |
<div class="modal-header"> |
| 748 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 749 |
<h3 id="elasticPreviewLabel">Elastic record</h3> |
| 750 |
</div> |
| 751 |
<div class="modal-body"> |
| 752 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
| 753 |
</div> |
| 754 |
<div class="modal-footer"> |
| 755 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
| 756 |
</div> |
| 757 |
</div> |
| 758 |
</div> |
| 759 |
</div> |
| 760 |
|
| 739 |
</main> |
761 |
</main> |
| 740 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
762 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 741 |
|
763 |
|
|
Lines 919-928
Link Here
|
| 919 |
var page = $(this).attr("href"); |
941 |
var page = $(this).attr("href"); |
| 920 |
$("#marcPreview .modal-body").load(page + " table"); |
942 |
$("#marcPreview .modal-body").load(page + " table"); |
| 921 |
$('#marcPreview').modal({show:true}); |
943 |
$('#marcPreview').modal({show:true}); |
|
|
944 |
|
| 922 |
}); |
945 |
}); |
| 923 |
$("#marcPreview").on("hidden.bs.modal", function(){ |
946 |
|
| 924 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
947 |
[% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] |
|
|
948 |
$("body").on("click",".previewElastic", function(event){ |
| 949 |
event.preventDefault(); |
| 950 |
let pageElastic = $(this).attr("href"); |
| 951 |
$("#elasticPreview .modal-body").load(pageElastic); |
| 952 |
$('#elasticPreview').modal({show:true}); |
| 925 |
}); |
953 |
}); |
|
|
954 |
[% END %] |
| 955 |
|
| 926 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
956 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
| 927 |
novSelect.loadContentForQuery({ |
957 |
novSelect.loadContentForQuery({ |
| 928 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
958 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
|
Lines 943-948
Link Here
|
| 943 |
[% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() { |
973 |
[% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() { |
| 944 |
verify_images(); |
974 |
verify_images(); |
| 945 |
});[% END %] |
975 |
});[% END %] |
|
|
976 |
|
| 946 |
</script> |
977 |
</script> |
| 947 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
978 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
| 948 |
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> |
979 |
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> |
|
Lines 989-993
Link Here
|
| 989 |
[% END %] |
1020 |
[% END %] |
| 990 |
}); |
1021 |
}); |
| 991 |
</script> |
1022 |
</script> |
|
|
1023 |
|
| 992 |
[% END %] |
1024 |
[% END %] |
| 993 |
[% INCLUDE 'intranet-bottom.inc' %] |
1025 |
[% INCLUDE 'intranet-bottom.inc' %] |