Lines 175-180
function verify_images() {
Link Here
|
175 |
[% IF ( LocalCoverImages && ! localimages.0 ) %] |
175 |
[% IF ( LocalCoverImages && ! localimages.0 ) %] |
176 |
showNoImageMessage(); |
176 |
showNoImageMessage(); |
177 |
[% END %] |
177 |
[% END %] |
|
|
178 |
$("body").on("click",".previewMARC", function(e){ |
179 |
e.preventDefault(); |
180 |
var page = $(this).attr("href"); |
181 |
$("#marcPreview .modal-body").load(page + " table"); |
182 |
$('#marcPreview').modal({show:true}); |
183 |
}); |
184 |
$("#marcPreview").on("hidden", function(){ |
185 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
186 |
}); |
178 |
}); |
187 |
}); |
179 |
|
188 |
|
180 |
[% IF ( AmazonCoverImages ) %]$(window).load(function() { |
189 |
[% IF ( AmazonCoverImages ) %]$(window).load(function() { |
Lines 363-369
function verify_images() {
Link Here
|
363 |
[% END %] |
372 |
[% END %] |
364 |
</span> |
373 |
</span> |
365 |
[% END %] |
374 |
[% END %] |
366 |
<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 %]" title="MARC" rel="gb_page_center[600,500]">Show</a></span> |
375 |
<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 %]&viewas=html" title="MARC" class="previewMARC">Show</a></span> |
367 |
[% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %] |
376 |
[% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %] |
368 |
|
377 |
|
369 |
[% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg"> |
378 |
[% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg"> |
Lines 1009-1015
function verify_images() {
Link Here
|
1009 |
</form> |
1018 |
</form> |
1010 |
</div> |
1019 |
</div> |
1011 |
|
1020 |
|
1012 |
|
1021 |
<div id="marcPreview" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> |
|
|
1022 |
<div class="modal-header"> |
1023 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
1024 |
<h3 id="marcPreviewLabel">MARC preview</h3> |
1025 |
</div> |
1026 |
<div class="modal-body"> |
1027 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div> |
1028 |
</div> |
1029 |
<div class="modal-footer"> |
1030 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
1031 |
</div> |
1032 |
</div> |
1013 |
|
1033 |
|
1014 |
</div> |
1034 |
</div> |
1015 |
</div> |
1035 |
</div> |