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