Bug 33908: Improve translation of title tags: Acquisitions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / z3950_search.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% PROCESS 'i18n.inc' %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7     [% IF ( opsearch ) %]
8         [% t("Order from external source") | html %]
9     [% ELSE %]
10         [% t("Search results") | html %] &rsaquo;
11         [% t("Order from external source") | html %]
12         [% t("Acquisitions") | html %] &rsaquo;
13     [% END %] &rsaquo;
14     [% t("Koha") | html %]
15 [% END %]</title>
16
17 [% INCLUDE 'doc-head-close.inc' %]
18 [% USE Koha %]
19
20 <style>
21 tr.selected {
22     background-color : #FFFFCC;
23 }
24
25 tr.selected td {
26     background-color : transparent !important;
27 }
28
29 #dataPreview {
30     width : 90%;
31     top: 5%;
32 }
33
34 #dataPreview pre {
35     overflow: unset;
36 }
37
38 .modal-body {
39     max-height: 380px;
40 }
41
42 @media (max-width: 767px) {
43     #dataPreview {
44         margin: 0;
45         width : auto;
46     }
47 }
48 </style>
49 </head>
50
51 <body id="acq_z3950_search" class="acq">
52 [% WRAPPER 'header.inc' %]
53     [% INCLUDE 'acquisitions-search.inc' %]
54 [% END %]
55
56 [% WRAPPER 'sub-header.inc' %]
57     [% WRAPPER breadcrumbs %]
58         [% WRAPPER breadcrumb_item %]
59             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
60         [% END %]
61         [% WRAPPER breadcrumb_item %]
62             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
63         [% END %]
64         [% WRAPPER breadcrumb_item %]
65             <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
66         [% END %]
67         [% IF ( opsearch ) %]
68             [% WRAPPER breadcrumb_item bc_active= 1 %]
69                 <span>Order from external source</span>
70             [% END %]
71         [% ELSE %]
72             [% WRAPPER breadcrumb_item %]
73                 <a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order from external source</a>
74             [% END %]
75             [% WRAPPER breadcrumb_item bc_active= 1 %]
76                 <span>Search results</span>
77             [% END %]
78         [% END # /IF opsearch %]
79     [% END #/ WRAPPER breadcrumbs %]
80 [% END #/ WRAPPER sub-header.inc %]
81
82 <div class="main container-fluid">
83       [% IF ( opsearch ) %]
84     <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
85     <div class="row">
86     <div class="col-sm-6">
87     <h1>Order from external source</h1>
88     <input type="hidden" name="op" id="op" value="do_search" />
89             <fieldset class="rows">
90          <ol>
91              <li><label for="isbn">ISBN: </label> <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
92              <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li>
93              <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle"  name="title" value="[% title | html %]" class="focus" /></li>
94              <li><label for="author">Author: </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li>
95              <li><label for="publicationyear">Publication year: </label> <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /></li>
96             <li>
97                 <label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="[% subject | html %]" />
98             </li>
99             <li>
100                 <label for="srchany">Keyword (any): </label> <input type="text" id="srchany" name="srchany" value="[% srchany | html %]" />
101             </li>
102             <li>
103                 <label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="[% lccall | html %]" />
104             </li>
105             <li>
106                 <label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" />
107             </li>
108             <li>
109                 <label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="[% dewey | html %]" />
110             </li>
111             <li>
112                 <label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="[% stdid | html %]" />
113             </li>
114             <li>
115              <li><label for="frameworkcode" >Select MARC framework:</label>
116              <select id="frameworkcode" name="frameworkcode" >
117              <option value="">Default</option>
118                  [% FOREACH framework IN frameworks %]
119                     <option value="[% framework.frameworkcode | html %]" >[% framework.frameworktext | html %]</option>
120                  [% END %]
121               </select>
122               </li>
123               <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash-can"></i> Clear search form</a></li>
124          </ol>
125     </fieldset>
126     <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
127     <input type="hidden" name="basketno" value="[% basketno | html %]" />
128     <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
129     </div> <!-- /.col-sm-6 -->
130 <div class="col-sm-6">
131 <h2>Search targets</h2>
132     <div id="z3950_search_targets_acq" class="page-section">
133         <span class="z3950checks"><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-times"></i> Clear all</a></span></span>
134     [% FOREACH serverloo IN serverloop %]
135         <p>
136             [% IF ( serverloo.checked ) %]
137                 <input type="checkbox" name="id" id="z3950_[% serverloo.id | html %]" value="[% serverloo.id | html %]" checked="checked" />
138             [% ELSE %]
139                 <input type="checkbox" name="id" id="z3950_[% serverloo.id | html %]" value="[% serverloo.id | html %]" />
140             [% END %]
141             <label for="z3950_[% serverloo.id | html %]">[% serverloo.servername | html %] [[% serverloo.host | html %]]</label>
142
143         </p>
144     [% END %]
145     </div> <!-- /#z3950_search-targets_acq -->
146   </div> <!-- /.col-sm-6 -->
147 </div> <!-- /.row -->
148
149 <div class="row">
150     <div class="col-md-12">
151         <fieldset class="action">
152             <input type="submit" id="submit_z3950_search" class="btn btn-primary" value="Search" />
153             <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Cancel</a>
154         </fieldset>
155     </div>
156 </div>
157 </form>
158
159
160 [% ELSE %]
161     <div class="row">
162     <div class="col-md-12">
163     <h2>Search results</h2>
164
165     <p>You searched for:
166         [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %]
167         [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %]
168         [% IF ( publicationyear ) %]<em>Publication year: </em><span class=term>[% publicationyear | html %]</span> [% END %]
169         [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %]
170         [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %]
171         [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %]
172         [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject | html %]</span> [% END %]
173         [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber | html %]</span> [% END %]
174         [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey | html %]</span> [%END %]
175     </p>
176
177     [% IF ( breeding_loop ) %]
178     <table id="resultst">
179     <thead><tr>
180         <th>Server</th>
181         <th>Title</th>
182         <th>Author</th>
183         <th>Year</th>
184         <th>Edition</th>
185         <th>ISBN</th>
186         <th>LCCN</th>
187         [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
188             <th>Additional fields</th>
189         [% END %]
190         <th>Actions</th>
191     </tr></thead>
192     <tbody>[% FOREACH breeding_loo IN breeding_loop %]
193         [% IF ( breeding_loo.breedingid ) %]
194
195         <tr>
196             <td>[% breeding_loo.server | html %]</td>
197             <td>[% breeding_loo.title | html %]</td>
198             <td>[% breeding_loo.author | html %]</td>
199             <td>[% breeding_loo.date | html %]</td>
200             <td>[% breeding_loo.edition | html %]</td>
201             <td>[% breeding_loo.isbn | html %]</td>
202             <td>[% breeding_loo.lccn | html %]</td>
203             [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
204             <td>
205                 <dl>
206                   [% FOREACH addnumberfield IN breeding_loo.addnumberfields %]
207                     [% FOREACH string IN breeding_loo.$addnumberfield %]
208                         <dt>[% addnumberfield | html %]:</dt>
209                         <dd>[% string | html %]</dd>
210                     [% END %]
211                   [% END %]
212                </dl>
213             </td>
214             [% END %]
215             <td class="actions">
216                 <div class="btn-group dropup">
217                     <a class="btn btn-default btn-xs z3950actions" href="#">MARC</a><button data-toggle="dropdown" class="btn-xs dropdown-toggle"><span class="caret"></span></button>
218                     <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="z3950preview[% breeding_loo.breedingid | html %]">
219                         <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData" data-action="show_marc"><i class="fa-solid fa-eye"></i> MARC</a></li>
220                         <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData" data-action="show_card"><i class="fa-solid fa-eye"></i> Card</a></li>
221                         <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&amp;breedingid=[% breeding_loo.breedingid | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]" class="chosen" title="Order" data-action="order"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a></li>
222                     </ul>
223                 </div>
224             </td>
225         </tr>
226         [% END %]
227     [% END %]</tbody>
228 </table>
229
230
231     <div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
232         <div class="modal-dialog">
233         <div class="modal-content">
234         <div class="modal-header">
235             <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
236             <h3 id="dataPreviewLabel">MARC preview</h3>
237         </div>
238         <div class="modal-body">
239             <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
240         </div>
241         <div class="modal-footer">
242             <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
243         </div>
244         </div>
245         </div>
246     </div>
247
248     <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
249         <input type="hidden" name="op" id="op" value="do_search" />
250         <input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" />
251         <input type="hidden" id="searchtitle"  name="title" value="[% title | html %]" />
252         <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
253         <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
254         <input type="hidden" id="author" name="author" value="[% author | html %]" />
255         <input type="hidden" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" />
256         <input type="hidden" id="subject" name="subject" value="[% subject | html %]" />
257         <input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" />
258         <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" />
259         <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
260         <input type="hidden" name="controlnumber" value="[% controlnumber | html %]" />
261         <input type="hidden" name="basketno" value="[% basketno | html %]" />
262         <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
263
264         [% FOREACH server IN servers %]
265         <input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" />
266         [% END %]
267
268         [% IF ( show_prevbutton ) %]
269             <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" />
270         [% END %]
271         Page [% current_page | html %] / [% total_pages | html %]
272         [% IF ( show_nextbutton ) %]
273             <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
274         [% END %]
275         <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" type="text" /> <input type="submit" name="changepage_goto" class="btn btn-primary" value="Go" />
276     </form>
277
278     [% ELSE %]
279         [% IF ( emptyserverlist ) %]
280             <div class="dialog alert">You didn't select any external target.</div>
281         [% ELSE %]
282             [% IF ( errconn ) %]
283                 <div class="dialog alert">
284                     <ul>
285                     [% FOREACH errcon IN errconn %]
286                         <li>Connection failed to [% errcon.server | html %]</li>
287                     [% END %]
288                     </ul>
289                 </div>
290             [% END %]
291         [% END %]
292         <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
293     [% END %]
294     </div> <!-- /.col-md-12 -->
295     </div> <!-- /.row -->
296
297 [% END %]
298
299 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending | html %] servers to search</h3>[% END %]
300
301 [% MACRO jsinclude BLOCK %]
302     [% Asset.js("js/acquisitions-menu.js") | $raw %]
303     [% INCLUDE 'datatables.inc' %]
304     [% INCLUDE 'z3950_search.inc' %]
305     [% Asset.js("js/z3950_search.js") | $raw %]
306     <script>
307         $(document).ready(function(){
308             var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
309                 "aoColumnDefs": [
310                     { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
311                     { "aTargets": [ 1 ], "sType": "nsb-nse" },
312                 ],
313                 "aaSorting": [[ 1, "asc" ]],
314                 "bPaginate": false,
315                 "searching": false,
316                 "bInfo":false
317             }));
318             InitLastAction();
319         });
320     </script>
321 [% END %]
322
323 [% INCLUDE 'intranet-bottom.inc' %]