4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › Search existing records</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="acq_neworderbiblio" class="acq">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'acquisitions-search.inc' %]
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% name | html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketno | html %]</a> › Search existing records</div>
15 <div class="main container-fluid">
17 <div class="col-sm-10 col-sm-push-2">
20 <h1>Search existing records</h1>
24 <b>[% total | html %] results found </b>
25 <div class="pages">[% pagination_bar | $raw %]</div>
27 <h3> No results found</h3>
29 No results match your search for <span style="font-weight: bold;">“[% query | html %]”</span> in [% LibraryName | html %]
33 [% IF ( query_error ) %]
34 <div class="dialog alert"><p><strong>Error:</strong> [% query_error | html %]</p></div>
38 <div class="searchresults">
49 [% FOREACH biblio IN resultsloop %]
52 <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' %]</a></span>
53 [% IF ( biblio.author ) %] by <span class="author">[% biblio.author | html %]</span>,[% END %]</p>
54 <p>[% IF ( biblio.isbn ) %] [% biblio.isbn | html %][% END %]
55 [% IF ( biblio.pages ) %] - [% biblio.pages | html %][% END %]
56 [% IF ( biblio.notes ) %] : [% biblio.notes | html %][% END %]
57 [% IF ( biblio.size ) %] ; [% biblio.size | html %][% END %]
61 [% biblio.publishercode | html %]
62 [% IF ( biblio.place ) %] ; [% biblio.place | html %][% END %]
65 [% biblio.copyrightdate | html %]
68 <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber | uri %]&viewas=html" class="previewMARC btn btn-default btn-xs"><i class="fa fa-eye"></i> View MARC</a>
69 <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="Order this one" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
75 <div id="marcPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
76 <div class="modal-dialog modal-wide">
77 <div class="modal-content">
78 <div class="modal-header">
79 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
80 <h3 id="marcPreviewLabel">MARC preview</h3>
82 <div class="modal-body">
83 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
85 <div class="modal-footer">
86 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
94 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
97 </div> <!-- /.col-sm-10.col-sm-push-2 -->
99 <div class="col-sm-2 col-sm-pull-10">
101 [% INCLUDE 'acquisitions-menu.inc' %]
103 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
104 </div> <!-- /.row -->
106 [% MACRO jsinclude BLOCK %]
107 [% Asset.js("js/acquisitions-menu.js") | $raw %]
108 [% INCLUDE 'datatables.inc' %]
110 $(document).ready(function() {
111 var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
118 $(".previewMARC").on("click", function(e){
120 var ltitle = $(this).text();
121 var page = $(this).attr("href");
122 $("#marcPreviewLabel").text(ltitle);
123 $("#marcPreview .modal-body").load(page + " table");
124 $('#marcPreview').modal({show:true});
126 $("#marcPreview").on("hidden.bs.modal", function(){
127 $("#marcPreviewLabel").html("");
128 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
134 [% INCLUDE 'intranet-bottom.inc' %]