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