|
Lines 118-254
Link Here
|
| 118 |
<div class="row"> |
118 |
<div class="row"> |
| 119 |
<div class="col-xs-12"> |
119 |
<div class="col-xs-12"> |
| 120 |
<h1>Results</h1> |
120 |
<h1>Results</h1> |
| 121 |
<p> |
121 |
<div class="page-section"> |
| 122 |
You searched for: |
122 |
<p> |
| 123 |
[% IF ( title ) %]<em>Title: </em><span class="term">[% title | html %]</span> [% END %] |
123 |
You searched for: |
| 124 |
[% IF ( author ) %]<em>Author: </em><span class="term">[% author | html %]</span> [% END %] |
124 |
[% IF ( title ) %]<em>Title: </em><span class="term">[% title | html %]</span> [% END %] |
| 125 |
[% IF ( publicationyear ) %]<em>Publication year: </em><span class="term">[% publicationyear | html %]</span> [% END %] |
125 |
[% IF ( author ) %]<em>Author: </em><span class="term">[% author | html %]</span> [% END %] |
| 126 |
[% IF ( isbn ) %]<em>ISBN: </em><span class="term">[% isbn | html %]</span> [% END %] |
126 |
[% IF ( publicationyear ) %]<em>Publication year: </em><span class="term">[% publicationyear | html %]</span> [% END %] |
| 127 |
[% IF ( issn ) %]<em>ISSN: </em><span class="term">[% issn | html %]</span> [% END %] |
127 |
[% IF ( isbn ) %]<em>ISBN: </em><span class="term">[% isbn | html %]</span> [% END %] |
| 128 |
[% IF ( lccall ) %]<em>LC call number: </em><span class="term">[% lccall | html %]</span> [% END %] |
128 |
[% IF ( issn ) %]<em>ISSN: </em><span class="term">[% issn | html %]</span> [% END %] |
| 129 |
[% IF ( subject ) %]<em>Subject heading: </em><span class="term">[% subject | html %]</span> [% END %] |
129 |
[% IF ( lccall ) %]<em>LC call number: </em><span class="term">[% lccall | html %]</span> [% END %] |
| 130 |
[% IF ( controlnumber ) %]<em>Control no: </em><span class="term">[% controlnumber | html %]</span> [% END %] |
130 |
[% IF ( subject ) %]<em>Subject heading: </em><span class="term">[% subject | html %]</span> [% END %] |
| 131 |
[% IF ( dewey ) %]<em>Dewey: </em><span class="term">[% dewey | html %]</span> [%END %] |
131 |
[% IF ( controlnumber ) %]<em>Control no: </em><span class="term">[% controlnumber | html %]</span> [% END %] |
| 132 |
[% IF ( srchany ) %]<em>Raw (any): </em><span class="term">[% srchany | html %]</span> [% END %] |
132 |
[% IF ( dewey ) %]<em>Dewey: </em><span class="term">[% dewey | html %]</span> [%END %] |
| 133 |
[% IF ( stdid ) %]<em>Standard ID: </em><span class="term">[% stdid | html %]</span> [% END %] |
133 |
[% IF ( srchany ) %]<em>Raw (any): </em><span class="term">[% srchany | html %]</span> [% END %] |
| 134 |
</p> |
134 |
[% IF ( stdid ) %]<em>Standard ID: </em><span class="term">[% stdid | html %]</span> [% END %] |
| 135 |
[% IF ( errconn ) %] |
135 |
</p> |
| 136 |
<div class="dialog alert"> |
136 |
[% IF ( errconn ) %] |
| 137 |
<ul> |
137 |
<div class="dialog alert"> |
| 138 |
[% FOREACH errcon IN errconn %] |
138 |
<ul> |
| 139 |
[% IF ( errcon.error == '10000' ) %]<li>Connection failed to [% errcon.server | html %]</li> |
139 |
[% FOREACH errcon IN errconn %] |
| 140 |
[% ELSIF ( errcon.error == '10007' ) %]<li>Connection timeout to [% errcon.server | html %]</li> |
140 |
[% IF ( errcon.error == '10000' ) %]<li>Connection failed to [% errcon.server | html %]</li> |
| 141 |
[% ELSIF errcon.error.match( '^XSLTH' ) %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% PROCESS 'xslt-handler.inc' code=errcon.error %]</li> |
141 |
[% ELSIF ( errcon.error == '10007' ) %]<li>Connection timeout to [% errcon.server | html %]</li> |
| 142 |
[% ELSE %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% errcon.error | html %]</li> |
142 |
[% ELSIF errcon.error.match( '^XSLTH' ) %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% PROCESS 'xslt-handler.inc' code=errcon.error %]</li> |
|
|
143 |
[% ELSE %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% errcon.error | html %]</li> |
| 144 |
[% END %] |
| 143 |
[% END %] |
145 |
[% END %] |
| 144 |
[% END %] |
146 |
</ul> |
| 145 |
</ul> |
147 |
</div> |
| 146 |
</div> |
148 |
[% END %] |
| 147 |
[% END %] |
|
|
| 148 |
|
149 |
|
| 149 |
[% IF ( breeding_loop ) %] |
150 |
[% IF ( breeding_loop ) %] |
| 150 |
<table id="resultst"> |
151 |
<table id="resultst"> |
| 151 |
<thead> |
152 |
<thead> |
| 152 |
<tr> |
153 |
<tr> |
| 153 |
<th>Server</th> |
154 |
<th>Server</th> |
| 154 |
<th>Title</th> |
155 |
<th>Title</th> |
| 155 |
<th>Author</th> |
156 |
<th>Author</th> |
| 156 |
<th>Year</th> |
157 |
<th>Year</th> |
| 157 |
<th>Edition</th> |
158 |
<th>Edition</th> |
| 158 |
<th>ISBN</th> |
159 |
<th>ISBN</th> |
| 159 |
<th>LCCN</th> |
160 |
<th>LCCN</th> |
| 160 |
[% IF Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' %] |
161 |
[% IF Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' %] |
| 161 |
<th>Additional fields</th> |
162 |
<th>Additional fields</th> |
| 162 |
[% END %] |
163 |
[% END %] |
| 163 |
<th class="noExport">Actions</th> |
164 |
<th class="noExport">Actions</th> |
| 164 |
</tr> |
165 |
</tr> |
| 165 |
</thead> |
166 |
</thead> |
| 166 |
<tbody> |
167 |
<tbody> |
| 167 |
[% FOREACH breeding_loo IN breeding_loop %] |
168 |
[% FOREACH breeding_loo IN breeding_loop %] |
| 168 |
[% IF ( breeding_loo.breedingid ) %] |
169 |
[% IF ( breeding_loo.breedingid ) %] |
| 169 |
<tr id="row[% breeding_loo.breedingid | html %]"> |
170 |
<tr id="row[% breeding_loo.breedingid | html %]"> |
| 170 |
<td>[% breeding_loo.server | html %]</td> |
171 |
<td>[% breeding_loo.server | html %]</td> |
| 171 |
<td>[% breeding_loo.title | html %]</td> |
172 |
<td>[% breeding_loo.title | html %]</td> |
| 172 |
<td>[% breeding_loo.author | html %]</td> |
173 |
<td>[% breeding_loo.author | html %]</td> |
| 173 |
<td>[% breeding_loo.date | html %]</td> |
174 |
<td>[% breeding_loo.date | html %]</td> |
| 174 |
<td>[% breeding_loo.edition | html %]</td> |
175 |
<td>[% breeding_loo.edition | html %]</td> |
| 175 |
<td>[% breeding_loo.isbn | html %]</td> |
176 |
<td>[% breeding_loo.isbn | html %]</td> |
| 176 |
<td>[% breeding_loo.lccn | html %]</td> |
177 |
<td>[% breeding_loo.lccn | html %]</td> |
| 177 |
[% IF Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' %] |
178 |
[% IF Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' %] |
| 178 |
<td> |
179 |
<td> |
| 179 |
<dl> |
180 |
<dl> |
| 180 |
[% FOREACH addnumberfield IN breeding_loo.addnumberfields %] |
181 |
[% FOREACH addnumberfield IN breeding_loo.addnumberfields %] |
| 181 |
[% FOREACH string IN breeding_loo.$addnumberfield %] |
182 |
[% FOREACH string IN breeding_loo.$addnumberfield %] |
| 182 |
<dt>[% addnumberfield | html %]:</dt> |
183 |
<dt>[% addnumberfield | html %]:</dt> |
| 183 |
<dd>[% string | html %]</dd> |
184 |
<dd>[% string | html %]</dd> |
| 184 |
[% END %] |
185 |
[% END %] |
| 185 |
[% END %] |
186 |
[% END %] |
| 186 |
</dl> |
187 |
</dl> |
|
|
188 |
</td> |
| 189 |
[% END %] |
| 190 |
<td class="actions"> |
| 191 |
<div class="btn-group dropup"> |
| 192 |
<a class="btn btn-default btn-xs z3950actions" href="#">MARC</a><button class="btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> |
| 193 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]"> |
| 194 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData" data-action="show_marc"><i class="fa fa-eye"></i> MARC preview</a></li> |
| 195 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData" data-action="show_card"><i class="fa fa-eye"></i> Card preview</a></li> |
| 196 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% breeding_loo.biblionumber | uri %]&z3950=1&frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid | uri %]" class="chosen" title="Import" data-action="import"><i class="fa fa-download"></i> Import</a></li> |
| 197 |
</ul> |
| 198 |
</div> |
| 187 |
</td> |
199 |
</td> |
| 188 |
[% END %] |
200 |
</tr> |
| 189 |
<td class="actions"> |
201 |
[% END %] |
| 190 |
<div class="btn-group dropup"> |
|
|
| 191 |
<a class="btn btn-default btn-xs z3950actions" href="#">MARC</a><button class="btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> |
| 192 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]"> |
| 193 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData" data-action="show_marc"><i class="fa fa-eye"></i> MARC preview</a></li> |
| 194 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData" data-action="show_card"><i class="fa fa-eye"></i> Card preview</a></li> |
| 195 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% breeding_loo.biblionumber | uri %]&z3950=1&frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid | uri %]" class="chosen" title="Import" data-action="import"><i class="fa fa-download"></i> Import</a></li> |
| 196 |
</ul> |
| 197 |
</div> |
| 198 |
</td> |
| 199 |
</tr> |
| 200 |
[% END %] |
202 |
[% END %] |
| 201 |
[% END %] |
203 |
</tbody> |
| 202 |
</tbody> |
204 |
</table> <!-- /#resultst --> |
| 203 |
</table> <!-- /#resultst --> |
|
|
| 204 |
|
205 |
|
| 205 |
<div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
206 |
<div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
| 206 |
<div class="modal-dialog"> |
207 |
<div class="modal-dialog"> |
| 207 |
<div class="modal-content"> |
208 |
<div class="modal-content"> |
| 208 |
<div class="modal-header"> |
209 |
<div class="modal-header"> |
| 209 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
210 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 210 |
<h3 id="dataPreviewLabel">Preview</h3> |
211 |
<h3 id="dataPreviewLabel">Preview</h3> |
| 211 |
</div> |
212 |
</div> |
| 212 |
<div class="modal-body"> |
213 |
<div class="modal-body"> |
| 213 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
214 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
|
|
215 |
</div> |
| 214 |
</div> |
216 |
</div> |
| 215 |
</div> |
217 |
</div> |
| 216 |
</div> |
218 |
</div> |
| 217 |
</div> |
|
|
| 218 |
|
219 |
|
| 219 |
<form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed"> |
220 |
<form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed"> |
| 220 |
<input type="hidden" name="op" id="op" value="do_search" /> |
221 |
<input type="hidden" name="op" id="op" value="do_search" /> |
| 221 |
<input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" /> |
222 |
<input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" /> |
| 222 |
<input type="hidden" id="title" name="title" value="[% title | html %]" /> |
223 |
<input type="hidden" id="title" name="title" value="[% title | html %]" /> |
| 223 |
<input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" /> |
224 |
<input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" /> |
| 224 |
<input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" /> |
225 |
<input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" /> |
| 225 |
<input type="hidden" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" /> |
226 |
<input type="hidden" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" /> |
| 226 |
<input type="hidden" id="srchany" name="srchany" value="[% srchany | html %]" /> |
227 |
<input type="hidden" id="srchany" name="srchany" value="[% srchany | html %]" /> |
| 227 |
<input type="hidden" id="author" name="author" value="[% author | html %]" /> |
228 |
<input type="hidden" id="author" name="author" value="[% author | html %]" /> |
| 228 |
<input type="hidden" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> |
229 |
<input type="hidden" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> |
| 229 |
<input type="hidden" id="subject" name="subject" value="[% subject | html %]" /> |
230 |
<input type="hidden" id="subject" name="subject" value="[% subject | html %]" /> |
| 230 |
<input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" /> |
231 |
<input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" /> |
| 231 |
<input type="hidden" id="stdid" name="stdid" value="[% stdid | html %]" /> |
232 |
<input type="hidden" id="stdid" name="stdid" value="[% stdid | html %]" /> |
| 232 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
233 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
| 233 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" /> |
234 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" /> |
| 234 |
|
235 |
|
| 235 |
[% FOREACH server IN servers %] |
236 |
[% FOREACH server IN servers %] |
| 236 |
<input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" /> |
237 |
<input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" /> |
| 237 |
[% END %] |
238 |
[% END %] |
| 238 |
|
239 |
|
| 239 |
[% IF ( show_prevbutton ) %] |
240 |
[% IF ( show_prevbutton ) %] |
| 240 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" /> |
241 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" /> |
| 241 |
[% END %] |
242 |
[% END %] |
| 242 |
<span id="result_pagenumbers">Showing page [% current_page | html %] of [% total_pages | html %]</span> |
243 |
<span id="result_pagenumbers">Showing page [% current_page | html %] of [% total_pages | html %]</span> |
| 243 |
[% IF ( show_nextbutton ) %] |
244 |
[% IF ( show_nextbutton ) %] |
| 244 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" /> |
245 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" /> |
| 245 |
[% END %] |
246 |
[% END %] |
| 246 |
<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" class="btn btn-primary" value="Go" /> |
247 |
<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" class="btn btn-primary" value="Go" /> |
| 247 |
</form> <!-- /#page_form --> |
248 |
</form> <!-- /#page_form --> |
| 248 |
|
249 |
|
| 249 |
[% ELSE %] |
250 |
[% ELSE %] |
| 250 |
<div class="dialog message">Nothing found.</div> |
251 |
<div class="dialog message">Nothing found.</div> |
| 251 |
[% END # /IF breeding_loop %] |
252 |
[% END # /IF breeding_loop %] |
|
|
253 |
</div> <!-- /.page-section --> |
| 252 |
|
254 |
|
| 253 |
<form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"> |
255 |
<form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"> |
| 254 |
<p> |
256 |
<p> |
| 255 |
- |
|
|