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 935-940
Note that permanent location is a code, and location may be an authval.
Link Here
|
935 |
</div> |
939 |
</div> |
936 |
</div> |
940 |
</div> |
937 |
|
941 |
|
|
|
942 |
<div id="elasticPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="elasticPreviewLabel" aria-hidden="true"> |
943 |
<div class="modal-dialog modal-lg"> |
944 |
<div class="modal-content"> |
945 |
<div class="modal-header"> |
946 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
947 |
<h3 id="elasticPreviewLabel">Elastic record</h3> |
948 |
</div> |
949 |
<div class="modal-body"> |
950 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
951 |
</div> |
952 |
<div class="modal-footer"> |
953 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
954 |
</div> |
955 |
</div> |
956 |
</div> |
957 |
</div> |
958 |
|
938 |
</main> |
959 |
</main> |
939 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
960 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
940 |
|
961 |
|
Lines 1171-1180
Note that permanent location is a code, and location may be an authval.
Link Here
|
1171 |
var page = $(this).attr("href"); |
1192 |
var page = $(this).attr("href"); |
1172 |
$("#marcPreview .modal-body").load(page + " table"); |
1193 |
$("#marcPreview .modal-body").load(page + " table"); |
1173 |
$('#marcPreview').modal({show:true}); |
1194 |
$('#marcPreview').modal({show:true}); |
|
|
1195 |
|
1174 |
}); |
1196 |
}); |
1175 |
$("#marcPreview").on("hidden.bs.modal", function(){ |
1197 |
|
1176 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
1198 |
[% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] |
|
|
1199 |
$("body").on("click",".previewElastic", function(e){ |
1200 |
e.preventDefault(); |
1201 |
var pageElastic = $(this).attr("href"); |
1202 |
$("#elasticPreview .modal-body").load(pageElastic); |
1203 |
$('#elasticPreview').modal({show:true}); |
1177 |
}); |
1204 |
}); |
|
|
1205 |
[% END %] |
1206 |
|
1178 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
1207 |
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] |
1179 |
novSelect.loadContentForQuery({ |
1208 |
novSelect.loadContentForQuery({ |
1180 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
1209 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
Lines 1260-1264
Note that permanent location is a code, and location may be an authval.
Link Here
|
1260 |
[% END %] |
1289 |
[% END %] |
1261 |
}); |
1290 |
}); |
1262 |
</script> |
1291 |
</script> |
|
|
1292 |
|
1263 |
[% END %] |
1293 |
[% END %] |
1264 |
[% INCLUDE 'intranet-bottom.inc' %] |
1294 |
[% INCLUDE 'intranet-bottom.inc' %] |