3 [% PROCESS 'i18n.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
11 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } #dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
15 <body id="acq_z3950_search" class="acq">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'acquisitions-search.inc' %]
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
22 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
28 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
31 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
35 <a href="#" aria-current="page">
36 Order from external source
41 <a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Order from external source</a>
44 <a href="#" aria-current="page">
52 <div class="main container-fluid">
54 <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
56 <div class="col-sm-6">
57 <h2>Order from external source</h2>
58 <input type="hidden" name="op" id="op" value="do_search" />
59 <fieldset class="rows">
61 <li><label for="isbn">ISBN: </label> <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
62 <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li>
63 <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle" name="title" value="[% title | html %]" class="focus" /></li>
64 <li><label for="author">Author: </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li>
65 <li><label for="publicationyear">Publication year: </label> <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /></li>
66 <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
67 <li><label for="srchany">Keyword (any): </label> <input type="text" id="srchany" name="srchany" value="" /></li>
68 <li><label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
69 <li><label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
70 <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
71 <li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li>
72 <li><label for="frameworkcode" >Select MARC framework:</label>
73 <select id="frameworkcode" name="frameworkcode" >
74 <option value="">Default</option>
75 [% FOREACH framework IN frameworks %]
76 <option value="[% framework.frameworkcode | html %]" >[% framework.frameworktext | html %]</option>
80 <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li>
83 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
84 <input type="hidden" name="basketno" value="[% basketno | html %]" />
85 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
86 </div> <!-- /.col-sm-6 -->
87 <div class="col-sm-6">
88 <h2>Search targets</h2>
89 <div id="z3950_search_targets_acq">
90 <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>
91 [% FOREACH serverloo IN serverloop %]
93 [% IF ( serverloo.checked ) %]
94 <input type="checkbox" name="id" id="z3950_[% serverloo.id | html %]" value="[% serverloo.id | html %]" checked="checked" />
96 <input type="checkbox" name="id" id="z3950_[% serverloo.id | html %]" value="[% serverloo.id | html %]" />
98 <label for="z3950_[% serverloo.id | html %]">[% serverloo.servername | html %] [[% serverloo.host | html %]]</label>
102 </div> <!-- /#z3950_search-targets_acq -->
103 </div> <!-- /.col-sm-6 -->
104 </div> <!-- /.row -->
107 <div class="col-md-12">
108 <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>
116 <div class="col-md-12">
117 <h2>Search results</h2>
120 [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %]
121 [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %]
122 [% IF ( publicationyear ) %]<em>Publication year: </em><span class=term>[% publicationyear | html %]</span> [% END %]
123 [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %]
124 [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %]
125 [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %]
126 [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject | html %]</span> [% END %]
127 [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber | html %]</span> [% END %]
128 [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey | html %]</span> [%END %]
131 [% IF ( breeding_loop ) %]
132 <table id="resultst">
141 [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
142 <th>Additional fields</th>
146 <tbody>[% FOREACH breeding_loo IN breeding_loop %]
147 [% IF ( breeding_loo.breedingid ) %]
150 <td>[% breeding_loo.server | html %]</td>
151 <td>[% breeding_loo.title | html %]</td>
152 <td>[% breeding_loo.author | html %]</td>
153 <td>[% breeding_loo.date | html %]</td>
154 <td>[% breeding_loo.edition | html %]</td>
155 <td>[% breeding_loo.isbn | html %]</td>
156 <td>[% breeding_loo.lccn | html %]</td>
157 [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
160 [% FOREACH addnumberfield IN breeding_loo.addnumberfields %]
161 [% FOREACH string IN breeding_loo.$addnumberfield %]
162 <dt>[% addnumberfield | html %]:</dt>
163 <dd>[% string | html %]</dd>
170 <div class="btn-group dropup">
171 <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>
172 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="z3950preview[% breeding_loo.breedingid | html %]">
173 <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC</a></li>
174 <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card</a></li>
175 <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"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a></li>
185 <div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
186 <div class="modal-dialog">
187 <div class="modal-content">
188 <div class="modal-header">
189 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
190 <h3 id="dataPreviewLabel">MARC preview</h3>
192 <div class="modal-body">
193 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
195 <div class="modal-footer">
196 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
202 <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
203 <input type="hidden" name="op" id="op" value="do_search" />
204 <input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" />
205 <input type="hidden" id="searchtitle" name="title" value="[% title | html %]" />
206 <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
207 <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
208 <input type="hidden" id="author" name="author" value="[% author | html %]" />
209 <input type="hidden" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" />
210 <input type="hidden" id="subject" name="subject" value="[% subject | html %]" />
211 <input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" />
212 <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" />
213 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
214 <input type="hidden" name="controlnumber" value="[% controlnumber | html %]" />
215 <input type="hidden" name="basketno" value="[% basketno | html %]" />
216 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
218 [% FOREACH server IN servers %]
219 <input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" />
222 [% IF ( show_prevbutton ) %]
223 <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" />
225 Page [% current_page | html %] / [% total_pages | html %]
226 [% IF ( show_nextbutton ) %]
227 <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
229 <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" />
233 [% IF ( emptyserverlist ) %]
234 <div class="dialog alert">You didn't select any external target.</div>
237 <div class="dialog alert">
239 [% FOREACH errcon IN errconn %]
240 <li>Connection failed to [% errcon.server | html %]</li>
246 <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
248 </div> <!-- /.col-md-12 -->
249 </div> <!-- /.row -->
253 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending | html %] servers to search</h3>[% END %]
255 [% MACRO jsinclude BLOCK %]
256 [% Asset.js("js/acquisitions-menu.js") | $raw %]
257 [% INCLUDE 'datatables.inc' %]
258 [% INCLUDE 'z3950_search.inc' %]
259 [% Asset.js("js/z3950_search.js") | $raw %]
260 [% INCLUDE 'z3950_search.inc' %]
262 $(document).ready(function(){
263 var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
265 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
266 { "aTargets": [ 1 ], "sType": "nsb-nse" },
268 "aaSorting": [[ 1, "asc" ]],
278 [% INCLUDE 'intranet-bottom.inc' %]