Bug 19918: Close span tag in opac-registration-confirmation.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / z3950_search.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source &rsaquo; Search results[% END %]</title>
3 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6
7 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
8 <script type="text/javascript">
9 //<![CDATA[
10     $(document).ready(function(){
11
12     var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
13         "aoColumnDefs": [
14             { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
15             { "aTargets": [ 1 ], "sType": "nsb-nse" },
16         ],
17         "aaSorting": [[ 1, "asc" ]],
18         "bPaginate": false
19     } ) );
20         /* Inline edit/delete links */
21         $("td").click(function(event){
22             var $tgt = $(event.target);
23             var row = $(this).parent();
24             $(".linktools").hide();
25             $("tr").removeClass("selected");
26             row.addClass("selected");
27             if($tgt.is("a")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")){
28                 //Don't show inline links for cells containing links of their own.
29             } else {
30                 var position = $(this).offset();
31                 var top = position.top+5;
32                 var left = position.left+5;
33                 $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
34             }
35         });
36
37 });
38
39 //]]>
40 </script>
41 [% INCLUDE 'z3950_search.inc' %]
42 <script type="text/javascript" src="[% interface %]/[% theme %]/js/z3950_search.js"></script>
43 <style type="text/css">
44 .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;}
45 .linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
46 .linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
47 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } #dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
48 </style>
49 </head>
50 <body id="acq_z3950_search" class="acq">
51 [% INCLUDE 'header.inc' %]
52 [% INCLUDE 'acquisitions-search.inc' %]
53
54 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a> &rsaquo; [% IF ( opsearch ) %]Order from external source[% ELSE %]<a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order from external source</a> &rsaquo; Search results[% END %]</div>
55
56 <div id="doc3" class="yui-t7">
57       <div id="bd">
58           [% IF ( opsearch ) %]
59 <h2>Order from external source</h2>
60     <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
61     <input type="hidden" name="op" id="op" value="do_search" />
62         <div class="yui-g">
63     <div class="yui-u first">
64             <fieldset class="rows">
65          <ol>
66              <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle"  name="title" value="[% title |html %]" class="focus" /></li>
67              <li><label for="isbn">ISBN: </label> <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></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="author">Author: </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li>
71              <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li>
72              <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
73              <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
74              <li><label for="frameworkcode" >Select MARC framework:</label>
75              <select id="frameworkcode" name="frameworkcode" >
76              <option value="">Default</option>
77                  [% FOREACH framework IN frameworks %]
78                     <option value="[% framework.frameworkcode %]" >[% framework.frameworktext %]</option>
79                  [% END %]
80               </select>
81               </li>
82               <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li>
83          </ol>
84     </fieldset>
85     <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
86     <input type="hidden" name="basketno" value="[% basketno | html %]" />
87     <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
88             </div>
89 <div class="yui-u second">
90 <h2>Search targets</h2>
91     <div id="z3950_search_targets_acq">
92         <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>
93     [% FOREACH serverloo IN serverloop %]
94         <p>
95             [% IF ( serverloo.checked ) %]
96                 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" checked="checked" />
97             [% ELSE %]
98                 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" />
99             [% END %]
100             <label for="z3950_[% serverloo.id %]">[% serverloo.servername %] [[% serverloo.host %]]</label>
101
102         </p>
103     [% END %]
104     </div>
105   </div>
106 </div>
107
108     <fieldset class="action"><input type="submit"  class="submit" value="Search" /> <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Cancel</a></fieldset>
109 </form>
110
111
112 [% ELSE %]
113     <h2>Search results</h2>
114
115     <p>You searched for:
116         [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %]
117         [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %]
118         [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %]
119         [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %]
120         [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %]
121         [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject | html %]</span> [% END %]
122         [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber | html %]</span> [% END %]
123         [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey | html %]</span> [%END %]
124     </p>
125
126     [% IF ( breeding_loop ) %]
127     <table id="resultst">
128 <thead>    <tr>
129         <th>Server</th>
130         <th>Title</th>
131         <th>Author</th>
132         <th>ISBN</th>
133         <th>LCCN</th>
134         <th>Preview</th>
135                 <th>&nbsp;</th>
136     </tr></thead>
137     <tbody>[% FOREACH breeding_loo IN breeding_loop %]
138         [% IF ( breeding_loo.breedingid ) %]
139
140         <tr>
141             <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&amp;importid=[% breeding_loo.breedingid %]" class="previewData">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri  %]&amp;breedingid=[% breeding_loo.breedingid %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td>
142             <td>[% breeding_loo.title |html %]</td>
143             <td>[% breeding_loo.author %]</td>
144             <td>[% breeding_loo.isbn %]</td>
145             <td>[% breeding_loo.lccn %]</td>
146             <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&amp;importid=[% breeding_loo.breedingid %]" title="Card" class="previewData">Card</a></td>
147             <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&amp;breedingid=[% breeding_loo.breedingid %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order</a></td>
148
149         </tr>
150         [% END %]
151     [% END %]</tbody>
152 </table>
153
154
155     <div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
156         <div class="modal-dialog">
157         <div class="modal-content">
158         <div class="modal-header">
159             <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
160             <h3 id="dataPreviewLabel">MARC preview</h3>
161         </div>
162         <div class="modal-body">
163             <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
164         </div>
165         <div class="modal-footer">
166             <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
167         </div>
168         </div>
169         </div>
170     </div>
171
172     <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
173         <input type="hidden" name="op" id="op" value="do_search" />
174         <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
175         <input type="hidden" id="searchtitle"  name="title" value="[% title |html %]" />
176         <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
177         <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
178         <input type="hidden" id="author" name="author" value="[% author | html %]" />
179         <input type="hidden" id="subject" name="subject" value="[% subject | html %]" />
180         <input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" />
181         <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" />
182         <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
183         <input type="hidden" name="controlnumber" value="[% controlnumber | html %]" />
184         <input type="hidden" name="basketno" value="[% basketno | html %]" />
185         <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
186
187         [% FOREACH server IN servers %]
188         <input type="hidden" name="id" id="z3950_[% server.id %]" value="[% server.id %]" />
189         [% END %]
190
191         [% IF ( show_prevbutton ) %]
192             <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" />
193         [% END %]
194         Page [% current_page %] / [% total_pages %]
195         [% IF ( show_nextbutton ) %]
196             <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" />
197         [% END %]
198         <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
199     </form>
200
201     [% ELSE %]
202         [% IF ( emptyserverlist ) %]
203             <div class="dialog alert">You didn't select any external target.</div>
204         [% ELSE %]
205             [% IF ( errconn ) %]
206                 <div class="dialog alert">
207                     <ul>
208                     [% FOREACH errcon IN errconn %]
209                         <li>Connection failed to [% errcon.server %]</li>
210                     [% END %]
211                     </ul>
212                 </div>
213             [% END %]
214         [% END %]
215         <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
216     [% END %]
217
218
219 [% END %]
220
221         </div>
222 </div>
223 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending %] servers to search</h3>[% END %]
224
225 </body>
226 </html>
227