3796d18363dd38ecc8e2c88884bb3dda08f0f09a
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / neworderbiblio.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Search existing records</title>
3 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 //<![CDATA[
8  $(document).ready(function() {
9     var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
10         'sDom': 't',
11         'bPaginate': false,
12         'bFilter': false,
13         'bInfo': false,
14         'bSort': false,
15     } ) );
16     $(".previewMARC").on("click", function(e){
17         e.preventDefault();
18         var ltitle = $(this).text();
19         var page = $(this).attr("href");
20         $("#marcPreviewLabel").text(ltitle);
21         $("#marcPreview .modal-body").load(page + " table");
22         $('#marcPreview').modal({show:true});
23     });
24     $("#marcPreview").on("hidden", function(){
25         $("#marcPreviewLabel").html("");
26         $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
27     });
28  });
29  //]]>
30 </script>
31 </head>
32 <body id="acq_neworderbiblio" class="acq">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'acquisitions-search.inc' %]
35
36 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Search existing records</div>
37
38 <div id="doc3" class="yui-t2">
39    
40    <div id="bd">
41         <div id="yui-main">
42         <div class="yui-b">
43         
44 <h1>Search existing records</h1>
45
46
47 [% IF ( total ) %]
48 <b>[% total %] results found </b> 
49 <div class="pages">[% pagination_bar %]</div>
50 [% ELSE %]
51 <h3> No results found</h3>
52 <p>
53     No results match your search for <span style="font-weight: bold;">&ldquo;[% query %]&rdquo;</span> in [% LibraryName %]
54 </p>
55 [% END %]
56
57 [% IF ( query_error ) %]
58     <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
59 [% END %]
60
61 [% IF ( total ) %]
62 <div class="searchresults">
63     <table id="resultst">
64     <thead>
65       <tr>
66          <th>Summary</th>
67          <th>Publisher</th>
68          <th>Copyright</th>
69          <th>&nbsp;</th>
70          <th>&nbsp;</th>
71       </tr>
72     </thead>
73     <tbody>
74       [% FOREACH biblio IN resultsloop %]
75         <tr>
76             <td>
77                 <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title | html %]</a></span>
78                 [% IF ( biblio.author ) %]  by <span class="author">[% biblio.author %]</span>,[% END %]</p>
79                 <p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %]
80                 [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %]
81                 [% IF ( biblio.notes ) %] : [% biblio.notes %][% END %]
82                 [% IF ( biblio.size ) %] ; [% biblio.size %][% END %]
83                 </p>
84             </td>
85             <td>
86                 [% biblio.publishercode %]
87                 [% IF ( biblio.place ) %] ; [% biblio.place %][% END %]
88             </td>
89             <td>
90                 [% biblio.copyrightdate %]
91             </td>
92         <td>
93         <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]&amp;viewas=html" class="previewMARC">View MARC</a>
94         </td>
95             <td>
96             <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% biblio.biblionumber %]" title="Order this one">
97                 Order
98             </a>
99             </td>
100         </tr>
101       [% END %]
102     </tbody>
103     </table>
104     <div id="marcPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
105         <div class="modal-dialog">
106         <div class="modal-content">
107         <div class="modal-header">
108             <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
109             <h3 id="marcPreviewLabel">MARC preview</h3>
110         </div>
111         <div class="modal-body">
112             <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
113         </div>
114         <div class="modal-footer">
115             <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
116         </div>
117         </div>
118         </div>
119     </div>
120 </div>
121 [% END %]
122
123 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
124
125 </div>
126 </div>
127 <div class="yui-b">
128 [% INCLUDE 'acquisitions-menu.inc' %]
129 </div>
130 </div>
131 [% INCLUDE 'intranet-bottom.inc' %]