1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title>
3 [% INCLUDE 'greybox.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
9 <script type="text/javascript">
11 $(document).ready(function(){
13 var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
15 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
16 { "aTargets": [ 1 ], "sType": "nsb-nse" },
18 "aaSorting": [[ 1, "asc" ]],
22 $("#CheckAll").click(function(){
23 $(".checkboxed").checkCheckboxes();
26 $("#CheckNone").click(function(){
27 $(".checkboxed").unCheckCheckboxes();
31 $("#closemenu").click(function(e){
32 $(".linktools").hide();
33 $("tr").removeClass("selected");
35 $("#resetZ3950Search").click(function() {
36 $("form[name='f']").find("input[type=text]").val("");
39 /* Inline edit/delete links */
40 $("td").click(function(event){
41 var $tgt = $(event.target);
42 $(".linktools").hide();
43 $("tr").removeClass("selected");
44 if($tgt.is("a")||$tgt.is(":nth-child(5)")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")){
47 var position = $(this).offset();
48 var top = position.top+5;
49 var left = position.left+5;
50 $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
52 var row = $(this).parent();
53 row.addClass("selected");
57 [% IF ( total_pages ) %]
58 function validate_goto_page(){
59 var page = $('#goto_page').val();
61 alert(_("The page entered is not a number."));
64 else if(page < 1 || page > [% total_pages %] ) {
65 alert(_("The page should be a number between 1 and %s.").format([% total_pages %]));
76 <style type="text/css">
77 .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;}
78 .linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
79 .linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
80 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; }
83 <body id="acq_z3950_search" class="acq">
84 [% INCLUDE 'header.inc' %]
85 [% INCLUDE 'acquisitions-search.inc' %]
87 <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 %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › [% IF ( opsearch ) %]Order from external source[% ELSE %]<a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order from external source</a> › Search results[% END %]</div>
89 <div id="doc3" class="yui-t7">
92 <h2>Order from external source <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="clearsearch"><a id="resetZ3950Search" href="#">Clear Search Form</a></span></span></h2>
93 <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
94 <input type="hidden" name="op" id="op" value="do_search" />
96 <div class="yui-u first">
97 <fieldset class="rows">
99 <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle" name="title" value="[% title |html %]" class="focus" /></li>
100 <li><label for="isbn">ISBN: </label> <input type="text" id="isbn" name="isbn" value="[% isbn %]" /></li>
101 <li><label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
102 <li><label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
103 <li><label for="author">Author: </label> <input type="text" id="author" name="author" value="[% author %]" /></li>
104 <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn %]" /></li>
105 <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
106 <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
107 <li><label for="frameworkcode" >Select MARC framework:</label>
108 <select id="frameworkcode" name="frameworkcode" >
109 <option value="">Default</option>
110 [% FOREACH frameworkcodeloo IN frameworkcodeloop %]
111 [% IF ( frameworkcodeloo.active ) %]
112 <option value="[% frameworkcodeloo.value %]" selected="selected" >[% frameworkcodeloo.frameworktext %]</option>
114 <option value="[% frameworkcodeloo.value %]" >[% frameworkcodeloo.frameworktext %]</option>
121 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
122 <input type="hidden" name="basketno" value="[% basketno %]" />
123 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
125 <div class="yui-u second">
126 <h2>Search targets <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="checkall"><a id="CheckAll" href="#">Select all</a></span><span class="clearall"><a id="CheckNone" href="#">Clear all</a></span></span></h2>
127 <div id="z3950_search_targets_acq">
128 [% FOREACH serverloo IN serverloop %]
130 [% IF ( serverloo.checked ) %]
131 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" checked="checked" />
133 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" />
135 <label for="z3950_[% serverloo.id %]">[% serverloo.servername %] [[% serverloo.host %]]</label>
143 <fieldset class="action"><input type="submit" class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Cancel</a></fieldset>
148 <h2>Search results</h2>
151 [% IF ( title ) %]<em>Title: </em><span class=term>[% title %]</span> [% END %]
152 [% IF ( author ) %]<em>Author: </em><span class=term>[% author %]</span> [% END %]
153 [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn %]</span> [% END %]
154 [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn %]</span> [% END %]
155 [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall %]</span> [% END %]
156 [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject %]</span> [% END %]
157 [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber %]</span> [% END %]
158 [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey %]</span> [%END %]
161 [% IF ( breeding_loop ) %]
162 <table id="resultst">
172 <tbody>[% FOREACH breeding_loo IN breeding_loop %]
173 [% IF ( breeding_loo.breedingid ) %]
175 [% IF ( breeding_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
176 <td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td>
177 <td>[% breeding_loo.title |html %]</td>
178 <td>[% breeding_loo.author %]</td>
179 <td>[% breeding_loo.isbn %]</td>
180 <td>[% breeding_loo.lccn %]</td>
181 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="Card" rel="gb_page_center[600,500]">Card</a></td>
182 <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a></td>
189 <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
190 <input type="hidden" name="op" id="op" value="do_search" />
191 <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
192 <input type="hidden" id="searchtitle" name="title" value="[% title |html %]" />
193 <input type="hidden" id="isbn" name="isbn" value="[% isbn %]" />
194 <input type="hidden" id="lccall" name="lccall" value="[% lccall %]" />
195 <input type="hidden" id="author" name="author" value="[% author %]" />
196 <input type="hidden" id="subject" name="subject" value="[% subject %]" />
197 <input type="hidden" id="dewey" name="dewey" value="[% dewey %]" />
198 <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
199 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
200 <input type="hidden" name="controlnumber" value="[% controlnumber %]" />
201 <input type="hidden" name="basketno" value="[% basketno %]" />
202 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
204 [% FOREACH server IN servers %]
205 <input type="hidden" name="id" id="z3950_[% server.id %]" value="[% server.id %]" />
208 [% IF ( show_prevbutton ) %]
209 <input type="button" name="changepage_prev" value="Previous Page" onclick="$('#current_page').val([% current_page %]-1);$('#page_form').submit();" />
211 Page [% current_page %] / [% total_pages %]
212 [% IF ( show_nextbutton ) %]
213 <input type="button" name="changepage_next" value="Next Page" onclick="$('#current_page').val([% current_page %]+1);$('#page_form').submit();" />
215 <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" onclick="return validate_goto_page();" value="Go" />
219 [% IF ( emptyserverlist ) %]
220 <div class="dialog alert">You didn't select any external target.</div>
223 <div class="dialog alert">
225 [% FOREACH errcon IN errconn %]
226 <li>Connection failed to [% errcon.server %]</li>
232 <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
240 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending %] servers to search</h3>[% END %]