3 [% PROCESS 'i18n.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( opsearch ) %]Order from external source[% ELSE %]Search results › Acquisitions › Order from external source[% END %] › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
13 background-color : #FFFFCC;
17 background-color : transparent !important;
33 @media (max-width: 767px) {
42 <body id="acq_z3950_search" class="acq">
43 [% WRAPPER 'header.inc' %]
44 [% INCLUDE 'acquisitions-search.inc' %]
47 [% WRAPPER 'sub-header.inc' %]
48 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
51 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
54 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
57 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
60 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
64 <a href="#" aria-current="page">
65 Order from external source
70 <a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Order from external source</a>
73 <a href="#" aria-current="page">
82 <div class="main container-fluid">
84 <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
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">
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>
97 <label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="[% subject | html %]" />
100 <label for="srchany">Keyword (any): </label> <input type="text" id="srchany" name="srchany" value="[% srchany | html %]" />
103 <label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="[% lccall | html %]" />
106 <label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" />
109 <label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="[% dewey | html %]" />
112 <label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="[% stdid | html %]" />
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>
123 <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li>
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">
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-remove"></i> Clear all</a></span></span>
134 [% FOREACH serverloo IN serverloop %]
136 [% IF ( serverloo.checked ) %]
137 <input type="checkbox" name="id" id="z3950_[% serverloo.id | html %]" value="[% serverloo.id | html %]" checked="checked" />
139 <input type="checkbox" name="id" id="z3950_[% serverloo.id | html %]" value="[% serverloo.id | html %]" />
141 <label for="z3950_[% serverloo.id | html %]">[% serverloo.servername | html %] [[% serverloo.host | html %]]</label>
145 </div> <!-- /#z3950_search-targets_acq -->
146 </div> <!-- /.col-sm-6 -->
147 </div> <!-- /.row -->
150 <div class="col-md-12">
151 <fieldset class="action"><input type="submit" class="submit" value="Search" /> <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Cancel</a></fieldset>
159 <div class="col-md-12">
160 <h2>Search results</h2>
163 [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %]
164 [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %]
165 [% IF ( publicationyear ) %]<em>Publication year: </em><span class=term>[% publicationyear | html %]</span> [% END %]
166 [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %]
167 [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %]
168 [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %]
169 [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject | html %]</span> [% END %]
170 [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber | html %]</span> [% END %]
171 [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey | html %]</span> [%END %]
174 [% IF ( breeding_loop ) %]
175 <table id="resultst">
184 [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
185 <th>Additional fields</th>
189 <tbody>[% FOREACH breeding_loo IN breeding_loop %]
190 [% IF ( breeding_loo.breedingid ) %]
193 <td>[% breeding_loo.server | html %]</td>
194 <td>[% breeding_loo.title | html %]</td>
195 <td>[% breeding_loo.author | html %]</td>
196 <td>[% breeding_loo.date | html %]</td>
197 <td>[% breeding_loo.edition | html %]</td>
198 <td>[% breeding_loo.isbn | html %]</td>
199 <td>[% breeding_loo.lccn | html %]</td>
200 [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
203 [% FOREACH addnumberfield IN breeding_loo.addnumberfields %]
204 [% FOREACH string IN breeding_loo.$addnumberfield %]
205 <dt>[% addnumberfield | html %]:</dt>
206 <dd>[% string | html %]</dd>
213 <div class="btn-group dropup">
214 <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>
215 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="z3950preview[% breeding_loo.breedingid | html %]">
216 <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 fa-eye"></i> MARC</a></li>
217 <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData" data-action="show_card"><i class="fa fa-eye"></i> Card</a></li>
218 <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]" class="chosen" title="Order" data-action="order"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a></li>
228 <div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
229 <div class="modal-dialog">
230 <div class="modal-content">
231 <div class="modal-header">
232 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
233 <h3 id="dataPreviewLabel">MARC preview</h3>
235 <div class="modal-body">
236 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
238 <div class="modal-footer">
239 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
245 <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
246 <input type="hidden" name="op" id="op" value="do_search" />
247 <input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" />
248 <input type="hidden" id="searchtitle" name="title" value="[% title | html %]" />
249 <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
250 <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
251 <input type="hidden" id="author" name="author" value="[% author | html %]" />
252 <input type="hidden" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" />
253 <input type="hidden" id="subject" name="subject" value="[% subject | html %]" />
254 <input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" />
255 <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" />
256 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
257 <input type="hidden" name="controlnumber" value="[% controlnumber | html %]" />
258 <input type="hidden" name="basketno" value="[% basketno | html %]" />
259 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
261 [% FOREACH server IN servers %]
262 <input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" />
265 [% IF ( show_prevbutton ) %]
266 <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" />
268 Page [% current_page | html %] / [% total_pages | html %]
269 [% IF ( show_nextbutton ) %]
270 <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
272 <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" value="Go" />
276 [% IF ( emptyserverlist ) %]
277 <div class="dialog alert">You didn't select any external target.</div>
280 <div class="dialog alert">
282 [% FOREACH errcon IN errconn %]
283 <li>Connection failed to [% errcon.server | html %]</li>
289 <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
291 </div> <!-- /.col-md-12 -->
292 </div> <!-- /.row -->
296 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending | html %] servers to search</h3>[% END %]
298 [% MACRO jsinclude BLOCK %]
299 [% Asset.js("js/acquisitions-menu.js") | $raw %]
300 [% INCLUDE 'datatables.inc' %]
301 [% INCLUDE 'z3950_search.inc' %]
302 [% Asset.js("js/z3950_search.js") | $raw %]
304 $(document).ready(function(){
305 var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
307 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
308 { "aTargets": [ 1 ], "sType": "nsb-nse" },
310 "aaSorting": [[ 1, "asc" ]],
320 [% INCLUDE 'intranet-bottom.inc' %]