|
Lines 1-5
Link Here
|
| 1 |
[% USE raw %] |
1 |
[% USE raw %] |
| 2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
|
|
3 |
[% USE KohaDates %] |
| 4 |
[% USE TablesSettings %] |
| 3 |
[% SET footerjs = 1 %] |
5 |
[% SET footerjs = 1 %] |
| 4 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
| 5 |
<title>Cataloging [% IF ( total || breeding_loop ) %] › Search results [% ELSIF ( query ) %] › No results found [% END %] › Koha</title> |
7 |
<title>Cataloging [% IF ( total || breeding_loop ) %] › Search results [% ELSIF ( query ) %] › No results found [% END %] › Koha</title> |
|
Lines 200-240
Link Here
|
| 200 |
<div id="searchresult-breeding"> |
202 |
<div id="searchresult-breeding"> |
| 201 |
<h2>Records found in the reservoir</h2> |
203 |
<h2>Records found in the reservoir</h2> |
| 202 |
[% IF ( breeding_loop ) %] |
204 |
[% IF ( breeding_loop ) %] |
| 203 |
<table> |
205 |
<table id="reservoir-table"> |
| 204 |
<tr> |
206 |
<thead> |
| 205 |
<th>Title</th> |
|
|
| 206 |
<th>ISBN</th> |
| 207 |
<th>Date</th> |
| 208 |
<th>Edition</th> |
| 209 |
<th>Coming from</th> |
| 210 |
<th> </th> |
| 211 |
</tr> |
| 212 |
[% FOREACH breeding_loo IN breeding_loop %] |
| 213 |
<tr> |
207 |
<tr> |
| 214 |
<td> |
208 |
<th>Title</th> |
| 215 |
[% breeding_loo.title | html %] |
209 |
<th>ISBN</th> |
| 216 |
[% breeding_loo.author | html %] |
210 |
<th>Coming from</th> |
| 217 |
</td> |
211 |
<th>Import date</th> |
| 218 |
<td>[% breeding_loo.isbn | html %]</td> |
212 |
<th class="NoSort noExport"> </th> |
| 219 |
<td>[% breeding_loo.copyrightdate | html %]</td> |
|
|
| 220 |
<td>[% breeding_loo.edition | html %]</td> |
| 221 |
<td>[% breeding_loo.file | html %]</td> |
| 222 |
<td> |
| 223 |
<div class="dropup"> |
| 224 |
<a class="btn btn-default btn-xs dropdown-toggle" id="reservoirsearchactions[% breeding_loo.id | html %]" role="button" data-toggle="dropdown" href="#"> |
| 225 |
Actions <b class="caret"></b> |
| 226 |
</a> |
| 227 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reservoirsearchactions[% breeding_loo.id | html %]"> |
| 228 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> |
| 229 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> |
| 230 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
| 231 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id | uri %]"><i class="fa fa-plus"></i> Add biblio</a></li> |
| 232 |
[% END %] |
| 233 |
</ul> |
| 234 |
</div> |
| 235 |
</td> |
| 236 |
</tr> |
213 |
</tr> |
| 237 |
[% END # /IF breeding_loo %] |
214 |
</thead> |
|
|
215 |
<tbody> |
| 216 |
[% FOREACH breeding_loo IN breeding_loop %] |
| 217 |
<tr> |
| 218 |
<td> |
| 219 |
[% breeding_loo.title | html %] [% breeding_loo.author | html %] |
| 220 |
</td> |
| 221 |
<td>[% breeding_loo.isbn | html %]</td> |
| 222 |
<td>[% breeding_loo.file | html %]</td> |
| 223 |
<td data-sort="[% breeding_loo.upload_timestamp | html %]">[% breeding_loo.upload_timestamp | $KohaDates %]</td> |
| 224 |
<td> |
| 225 |
<div class="dropup"> |
| 226 |
<a class="btn btn-default btn-xs dropdown-toggle" id="reservoirsearchactions[% breeding_loo.id | html %]" role="button" data-toggle="dropdown" href="#"> |
| 227 |
Actions <b class="caret"></b> |
| 228 |
</a> |
| 229 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reservoirsearchactions[% breeding_loo.id | html %]"> |
| 230 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> |
| 231 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.id | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> |
| 232 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
| 233 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id | uri %]"><i class="fa fa-plus"></i> Add biblio</a></li> |
| 234 |
[% END %] |
| 235 |
</ul> |
| 236 |
</div> |
| 237 |
</td> |
| 238 |
</tr> |
| 239 |
[% END # /IF breeding_loo %] |
| 240 |
</tbody> |
| 238 |
</table> |
241 |
</table> |
| 239 |
[% ELSE %] |
242 |
[% ELSE %] |
| 240 |
<h3 id="searchresult-breeding">No results found</h3> |
243 |
<h3 id="searchresult-breeding">No results found</h3> |
|
Lines 262-267
Link Here
|
| 262 |
</div> <!-- /.row --> |
265 |
</div> <!-- /.row --> |
| 263 |
|
266 |
|
| 264 |
[% MACRO jsinclude BLOCK %] |
267 |
[% MACRO jsinclude BLOCK %] |
|
|
268 |
[% INCLUDE 'datatables.inc' %] |
| 269 |
[% INCLUDE 'columns_settings.inc' %] |
| 265 |
<script> |
270 |
<script> |
| 266 |
|
271 |
|
| 267 |
$(document).ready(function() { |
272 |
$(document).ready(function() { |
|
Lines 306-311
Link Here
|
| 306 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
311 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
| 307 |
}); |
312 |
}); |
| 308 |
|
313 |
|
|
|
314 |
columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'addbooks', 'reservoir-table', 'json' ) | $raw %] |
| 315 |
var reservoirt = KohaTable("reservoir-table", { |
| 316 |
"pagingType": "simple" |
| 317 |
}, columns_settings ); |
| 309 |
}); |
318 |
}); |
| 310 |
|
319 |
|
| 311 |
/* this function open a popup to search on z3950 server. */ |
320 |
/* this function open a popup to search on z3950 server. */ |
| 312 |
- |
|
|