Lines 541-546
Link Here
|
541 |
| <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a> |
541 |
| <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a> |
542 |
</span> |
542 |
</span> |
543 |
[% END %] |
543 |
[% END %] |
|
|
544 |
|
545 |
<span class="marc-preview"> |
546 |
| <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% SEARCH_RESULT.biblionumber | uri %]" class="previewData">MARC preview</a> |
547 |
</span> |
548 |
|
549 |
<span class="card-preview"> |
550 |
| <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&&id=[% SEARCH_RESULT.biblionumber | uri %]" class="previewData">Card preview</a> |
551 |
</span> |
544 |
</p> <!-- /.holds --> |
552 |
</p> <!-- /.holds --> |
545 |
</td> |
553 |
</td> |
546 |
|
554 |
|
Lines 683-688
Link Here
|
683 |
</form> |
691 |
</form> |
684 |
|
692 |
|
685 |
</main> |
693 |
</main> |
|
|
694 |
|
695 |
<div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
696 |
<div class="modal-dialog"> |
697 |
<div class="modal-content"> |
698 |
<div class="modal-header"> |
699 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
700 |
<h3 id="dataPreviewLabel">Preview</h3> |
701 |
</div> |
702 |
<div class="modal-body"> |
703 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
704 |
</div> |
705 |
<div class="modal-footer"> |
706 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
707 |
</div> |
708 |
</div> <!-- /.modal-content --> |
709 |
</div> <!-- /.modal-dialog --> |
710 |
</div> <!-- /#dataPreview --> |
711 |
|
686 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
712 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
687 |
|
713 |
|
688 |
<div class="col-sm-2 col-sm-pull-10"> |
714 |
<div class="col-sm-2 col-sm-pull-10"> |
Lines 738-743
Link Here
|
738 |
first_biblionumber: "[% SEARCH_RESULTS.first.biblionumber | html %]", |
764 |
first_biblionumber: "[% SEARCH_RESULTS.first.biblionumber | html %]", |
739 |
last_biblionumber: "[% SEARCH_RESULTS.last.biblionumber | html %]", |
765 |
last_biblionumber: "[% SEARCH_RESULTS.last.biblionumber | html %]", |
740 |
} |
766 |
} |
|
|
767 |
$(document).ready(function(){ |
768 |
$(".previewData").on("click", function(e){ |
769 |
e.preventDefault(); |
770 |
var ltitle = $(this).text(); |
771 |
var page = $(this).attr("href"); |
772 |
$("#dataPreviewLabel").text(ltitle); |
773 |
$("#dataPreview .modal-body").load(page + " div"); |
774 |
$('#dataPreview').modal({show:true}); |
775 |
}); |
776 |
$("#dataPreview").on("hidden.bs.modal", function(){ |
777 |
$("#dataPreviewLabel").html(""); |
778 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
779 |
}); |
780 |
}); |
741 |
</script> |
781 |
</script> |
742 |
[% Asset.js("js/pages/results.js") | $raw %] |
782 |
[% Asset.js("js/pages/results.js") | $raw %] |
743 |
[% END %] |
783 |
[% END %] |
744 |
- |
|
|