2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title>
4 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <style type="text/css">
7 .linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
8 .linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
9 .linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
10 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } #dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
14 <body id="acq_z3950_search" class="acq">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'acquisitions-search.inc' %]
18 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a> › [% IF ( opsearch ) %]Order from external source[% ELSE %]<a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Order from external source</a> › Search results[% END %]</div>
20 <div id="doc3" class="yui-t7">
23 <h2>Order from external source</h2>
24 <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
25 <input type="hidden" name="op" id="op" value="do_search" />
27 <div class="yui-u first">
28 <fieldset class="rows">
30 <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle" name="title" value="[% title |html %]" class="focus" /></li>
31 <li><label for="isbn">ISBN: </label> <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
32 <li><label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
33 <li><label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
34 <li><label for="author">Author: </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li>
35 <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li>
36 <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
37 <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
38 <li><label for="frameworkcode" >Select MARC framework:</label>
39 <select id="frameworkcode" name="frameworkcode" >
40 <option value="">Default</option>
41 [% FOREACH framework IN frameworks %]
42 <option value="[% framework.frameworkcode %]" >[% framework.frameworktext %]</option>
46 <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li>
49 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
50 <input type="hidden" name="basketno" value="[% basketno | html %]" />
51 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
53 <div class="yui-u second">
54 <h2>Search targets</h2>
55 <div id="z3950_search_targets_acq">
56 <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>
57 [% FOREACH serverloo IN serverloop %]
59 [% IF ( serverloo.checked ) %]
60 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" checked="checked" />
62 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" />
64 <label for="z3950_[% serverloo.id %]">[% serverloo.servername %] [[% serverloo.host %]]</label>
72 <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>
77 <h2>Search results</h2>
80 [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %]
81 [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %]
82 [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %]
83 [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %]
84 [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %]
85 [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject | html %]</span> [% END %]
86 [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber | html %]</span> [% END %]
87 [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey | html %]</span> [%END %]
90 [% IF ( breeding_loop ) %]
101 <tbody>[% FOREACH breeding_loo IN breeding_loop %]
102 [% IF ( breeding_loo.breedingid ) %]
105 <td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Order</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td>
106 <td>[% breeding_loo.title |html %]</td>
107 <td>[% breeding_loo.author %]</td>
108 <td>[% breeding_loo.isbn %]</td>
109 <td>[% breeding_loo.lccn %]</td>
110 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="Card" class="previewData">Card</a></td>
111 <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">Order</a></td>
119 <div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
120 <div class="modal-dialog">
121 <div class="modal-content">
122 <div class="modal-header">
123 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
124 <h3 id="dataPreviewLabel">MARC preview</h3>
126 <div class="modal-body">
127 <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
129 <div class="modal-footer">
130 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
136 <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
137 <input type="hidden" name="op" id="op" value="do_search" />
138 <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
139 <input type="hidden" id="searchtitle" name="title" value="[% title |html %]" />
140 <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
141 <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
142 <input type="hidden" id="author" name="author" value="[% author | html %]" />
143 <input type="hidden" id="subject" name="subject" value="[% subject | html %]" />
144 <input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" />
145 <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" />
146 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
147 <input type="hidden" name="controlnumber" value="[% controlnumber | html %]" />
148 <input type="hidden" name="basketno" value="[% basketno | html %]" />
149 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
151 [% FOREACH server IN servers %]
152 <input type="hidden" name="id" id="z3950_[% server.id %]" value="[% server.id %]" />
155 [% IF ( show_prevbutton ) %]
156 <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" />
158 Page [% current_page %] / [% total_pages %]
159 [% IF ( show_nextbutton ) %]
160 <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" />
162 <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
166 [% IF ( emptyserverlist ) %]
167 <div class="dialog alert">You didn't select any external target.</div>
170 <div class="dialog alert">
172 [% FOREACH errcon IN errconn %]
173 <li>Connection failed to [% errcon.server %]</li>
179 <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
187 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending %] servers to search</h3>[% END %]
189 [% MACRO jsinclude BLOCK %]
190 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
191 [% INCLUDE 'datatables.inc' %]
192 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
193 <script type="text/javascript">
194 $(document).ready(function(){
195 var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
197 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
198 { "aTargets": [ 1 ], "sType": "nsb-nse" },
200 "aaSorting": [[ 1, "asc" ]],
203 /* Inline edit/delete links */
204 $("td").click(function(event){
205 var $tgt = $(event.target);
206 var row = $(this).parent();
207 $(".linktools").hide();
208 $("tr").removeClass("selected");
209 row.addClass("selected");
210 if($tgt.is("a")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")){
211 //Don't show inline links for cells containing links of their own.
213 var position = $(this).offset();
214 var top = position.top+5;
215 var left = position.left+5;
216 $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
221 [% INCLUDE 'z3950_search.inc' %]
222 <script type="text/javascript" src="[% interface %]/[% theme %]/js/z3950_search_[% KOHA_VERSION %].js"></script>
225 [% INCLUDE 'intranet-bottom.inc' %]