add order line through z3950 search
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / z3950_search.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Z39.50 Search Results</title>
3 <!-- TMPL_INCLUDE NAME="greybox.inc" -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.pack.js"></script>
6 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
7 <script type="text/javascript">
8 //<![CDATA[
9 $.tablesorter.addParser({
10     id: 'articles', 
11     is: function(s) {return false;  }, 
12     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
13     type: 'text' 
14 });
15
16         $(document).ready(function(){
17     $("#CheckAll").click(function(){
18         $(".checkboxed").checkCheckboxes();
19         return false;
20     });
21     $("#CheckNone").click(function(){
22         $(".checkboxed").unCheckCheckboxes();
23         return false;
24     });
25         $("#resultst").tablesorter({
26                 sortList: [[1,0]],
27                 headers: { 0: {sorter:false}, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }}
28         }); 
29 });
30 //]]>
31 </script>
32    <style type="text/css">
33    #custom-doc { width:54.92em;*width:53.55em;min-width:720px; margin:auto; text-align:left; }
34    </style>
35 </head>
36 <body>
37 <!-- TMPL_INCLUDE NAME="header.inc" -->
38 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
39
40 <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; order from z3950 search</div>
41 <div id="custom-doc" class="yui-t7">
42       <div id="bd">
43           <!-- TMPL_IF name="opsearch" -->
44 <h2>Z39.50 Search Points</h2>
45     <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
46     <input type="hidden" name="op" id="op" value="do_search" />
47         <div class="yui-g">
48     <div class="yui-u first">
49             <fieldset class="rows"> 
50                  <ol><li><label for="title">Title: </label> <input type="text" id="title"  name="title" value="<!-- TMPL_VAR NAME="title" -->" /></li>
51                  <li><label for="isbn">ISBN/ISSN: </label> <input type="text" id="isbn" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" /></li>
52                  <li><label for="lccall">LC Call Number: </label> <input type="text" id="lccall" name="lccall" value="" /></li></ol>
53                 </fieldset>
54             </div>
55     <div class="yui-u">
56         <fieldset class="rows">          <ol><li><label for="author">Author: </label> <input type="text" id="author" name="author" value="<!-- TMPL_VAR NAME="author" -->" /><!--  <label for="Keyword">Keyword</label> <input type="text" name="keyword" value="" /> --></li>
57                  <li> <label for="subject">Subject Heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
58                  <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li></ol></fieldset>
59              <fieldset class="rows" >
60                  <ol>
61                      <li>
62                          <label for="frameworkcode" >Select used MARC framework:</label>
63                          <select id="frameworkcode" name="frameworkcode" >
64                              <option value="">Default</option>
65                          <!-- TMPL_LOOP name="frameworkcodeloop" -->
66                              <!-- TMPL_IF name="active" -->
67                                  <option value="<!-- TMPL_VAR name="value" -->" selected="selected" ><!-- TMPL_VAR name="frameworktext"--></option>
68                              <!-- TMPL_ELSE -->
69                                  <option value="<!-- TMPL_VAR name="value" -->" ><!-- TMPL_VAR name="frameworktext"--></option>
70                              <!-- /TMPL_IF -->
71                          <!-- /TMPL_LOOP -->
72                          </select>
73                      </li>
74                  </ol>
75              </fieldset>
76     <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
77     <input type="hidden" name="basketno" value="<!-- TMPL_VAR name="basketno" -->" />
78     <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
79             </div>
80 </div>
81 <div class="yui-g">
82 <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>
83
84     <!-- TMPL_LOOP name="serverloop" -->
85         <p> 
86             <!-- TMPL_IF name="checked" -->
87                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" checked="checked" />
88             <!-- TMPL_ELSE -->
89                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" />
90             <!-- /TMPL_IF -->
91             <label for="z3950_<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --> [<!-- TMPL_VAR NAME="host" -->]</label>  
92
93         </p>
94     <!-- /TMPL_LOOP -->
95     <fieldset class="action"><input type="submit"  class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset>
96     </form>
97
98
99 <!-- TMPL_ELSE -->
100     <h2>Results</h2>
101     <!-- TMPL_IF name="breeding_loop" -->
102     <table id="resultst">
103 <thead>    <tr>
104         <th>Server</th>
105         <th>Title</th>
106         <th>Author</th>
107         <th>ISBN</th>
108         <th>LCCN</th>
109         <th colspan="2">Preview</th>
110                 <th>&nbsp;</th>
111     </tr></thead>
112     <tbody><!-- TMPL_LOOP name="breeding_loop" -->
113         <!-- TMPL_IF NAME="breedingid" -->
114                 
115         <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
116             <td><!-- TMPL_VAR name="server" --></td>
117             <td><!-- TMPL_VAR NAME="title" --></td>
118             <td><!-- TMPL_VAR NAME="author" --></td>
119             <td><!-- TMPL_VAR NAME="isbn" --></td>
120             <td><!-- TMPL_VAR NAME="lccn" --></td>
121             <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">MARC</a></td><td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
122                         <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->&breedingid=<!-- TMPL_VAR NAME="breedingid" -->&booksellerid=<!-- TMPL_VAR name="booksellerid" -->&basketno=<!-- TMPL_VAR name="basketno" -->">Order</a></td> 
123
124         </tr>
125         <!-- /TMPL_IF -->
126     <!-- /TMPL_LOOP --></tbody>
127 </table>
128     <!-- TMPL_ELSE -->
129         <p>Nothing found. <a href="javascript: history.back()">Try another search</a>.</p>
130     <!-- /TMPL_IF -->
131
132
133 <!-- /TMPL_IF -->
134
135         </div>
136 </div>
137 <!-- TMPL_IF name="numberpending" --><h3 align="center">Still <!-- TMPL_VAR NAME="numberpending" --> servers to search</h3><!-- /TMPL_IF -->
138
139 </body>
140 </html>
141