Lines 115-120
Link Here
|
115 |
[% END %] |
115 |
[% END %] |
116 |
<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> |
116 |
<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> |
117 |
|
117 |
|
|
|
118 |
[% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] |
119 |
<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> |
120 |
[% END %] |
121 |
|
118 |
[% IF ( holdcount ) %] |
122 |
[% IF ( holdcount ) %] |
119 |
<span class="results_summary"> |
123 |
<span class="results_summary"> |
120 |
<span class="label">Holds:</span> |
124 |
<span class="label">Holds:</span> |
Lines 933-938
Note that permanent location is a code, and location may be an authval.
Link Here
|
933 |
</div> |
937 |
</div> |
934 |
</div> |
938 |
</div> |
935 |
|
939 |
|
|
|
940 |
<div id="elasticPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="elasticPreviewLabel" aria-hidden="true"> |
941 |
<div class="modal-dialog modal-lg"> |
942 |
<div class="modal-content"> |
943 |
<div class="modal-header"> |
944 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
945 |
<h3 id="elasticPreviewLabel">Elastic record</h3> |
946 |
</div> |
947 |
<div class="modal-body"> |
948 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
949 |
</div> |
950 |
<div class="modal-footer"> |
951 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
952 |
</div> |
953 |
</div> |
954 |
</div> |
955 |
</div> |
956 |
|
936 |
</main> |
957 |
</main> |
937 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
958 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
938 |
|
959 |
|
Lines 1169-1178
Note that permanent location is a code, and location may be an authval.
Link Here
|
1169 |
var page = $(this).attr("href"); |
1190 |
var page = $(this).attr("href"); |
1170 |
$("#marcPreview .modal-body").load(page + " table"); |
1191 |
$("#marcPreview .modal-body").load(page + " table"); |
1171 |
$('#marcPreview').modal({show:true}); |
1192 |
$('#marcPreview').modal({show:true}); |
|
|
1193 |
|
1172 |
}); |
1194 |
}); |
1173 |
$("#marcPreview").on("hidden.bs.modal", function(){ |
1195 |
|
1174 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
1196 |
[% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] |
|
|
1197 |
$("body").on("click",".previewElastic", function(e){ |
1198 |
e.preventDefault(); |
1199 |
var pageElastic = $(this).attr("href"); |
1200 |
$("#elasticPreview .modal-body").load(pageElastic); |
1201 |
$('#elasticPreview').modal({show:true}); |
1175 |
}); |
1202 |
}); |
|
|
1203 |
[% END %] |
1204 |
|
1176 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
1205 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
1177 |
novSelect.loadContentForQuery({ |
1206 |
novSelect.loadContentForQuery({ |
1178 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
1207 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
Lines 1265-1269
Note that permanent location is a code, and location may be an authval.
Link Here
|
1265 |
[% END %] |
1294 |
[% END %] |
1266 |
}); |
1295 |
}); |
1267 |
</script> |
1296 |
</script> |
|
|
1297 |
|
1268 |
[% END %] |
1298 |
[% END %] |
1269 |
[% INCLUDE 'intranet-bottom.inc' %] |
1299 |
[% INCLUDE 'intranet-bottom.inc' %] |