Lines 1-5
Link Here
|
1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
3 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
4 |
[% INCLUDE 'datatables.inc' %] |
3 |
<title>Koha › Cataloging</title> |
5 |
<title>Koha › Cataloging</title> |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
Lines 41-46
Link Here
|
41 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
43 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
42 |
}); |
44 |
}); |
43 |
|
45 |
|
|
|
46 |
$('#reservoir_search_table').dataTable($.extend(true, {}, dataTablesDefaults, { |
47 |
"autoWidth": false, |
48 |
"aoColumnDefs": [ |
49 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
50 |
], |
51 |
"sPaginationType": "four_button" |
52 |
})); |
53 |
|
54 |
$('#catalogue_search_table').dataTable($.extend(true, {}, dataTablesDefaults, { |
55 |
"autoWidth": false, |
56 |
"aoColumnDefs": [ |
57 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
58 |
], |
59 |
"sPaginationType": "four_button" |
60 |
})); |
61 |
|
44 |
}); |
62 |
}); |
45 |
|
63 |
|
46 |
/* this function open a popup to search on z3950 server. */ |
64 |
/* this function open a popup to search on z3950 server. */ |
Lines 132-147
Link Here
|
132 |
</div> |
150 |
</div> |
133 |
<div class="pages">[% pagination_bar %]</div> |
151 |
<div class="pages">[% pagination_bar %]</div> |
134 |
<div class="searchresults"> |
152 |
<div class="searchresults"> |
135 |
<table> |
153 |
<table id="catalogue_search_table"> |
|
|
154 |
<thead> |
136 |
<tr> |
155 |
<tr> |
137 |
<th> </th> |
156 |
<th> </th> |
138 |
<th>Title</th> |
157 |
<th>Title</th> |
139 |
<th>Location</th> |
158 |
<th>Location</th> |
140 |
<th>Preview</th> |
159 |
<th> </th> |
141 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th> </th>[% ELSE %][% END %] |
|
|
142 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th> </th>[% END %] |
143 |
</tr> |
160 |
</tr> |
144 |
[% FOREACH resultsloo IN resultsloop %] |
161 |
</thead> |
|
|
162 |
<tbody> |
163 |
[% FOREACH resultsloo IN resultsloop %] |
145 |
[% IF ( loop.even ) %] |
164 |
[% IF ( loop.even ) %] |
146 |
<tr class="highlight"> |
165 |
<tr class="highlight"> |
147 |
[% ELSE %] |
166 |
[% ELSE %] |
Lines 199-210
Link Here
|
199 |
[% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount %])[% END %] |
218 |
[% IF ( resultsloo.notforloancount ) %] Not for loan ([% resultsloo.notforloancount %])[% END %] |
200 |
</span> |
219 |
</span> |
201 |
</td> |
220 |
</td> |
202 |
<td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% resultsloo.biblionumber %]" class="previewData">Card</a> |
221 |
<td> |
|
|
222 |
<div class="dropdown"> |
223 |
<a class="btn btn-mini dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber %]" role="button" data-toggle="dropdown" href="#"> |
224 |
Actions <b class="caret"></b> |
225 |
</a> |
226 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber %]"> |
227 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> |
228 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% resultsloo.biblionumber %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> |
229 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber %]"><i class="fa fa-pencil"></i> Edit biblio</a></li>[% END %] |
230 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber %]"><i class="fa fa-plus"></i> Add/Edit items</a></li>[% END %] |
231 |
</ul> |
232 |
</div> |
203 |
</td> |
233 |
</td> |
204 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber %]">Edit biblio</a></td>[% END %] |
|
|
205 |
[% IF ( CAN_user_editcatalogue_edit_items ) %]<td><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber %]">Add/Edit items</a></td>[% END %] |
206 |
</tr> |
234 |
</tr> |
207 |
[% END %] |
235 |
[% END %] |
|
|
236 |
</tbody> |
208 |
</table> |
237 |
</table> |
209 |
</div> |
238 |
</div> |
210 |
[% ELSE %] |
239 |
[% ELSE %] |
Lines 220-235
Link Here
|
220 |
<div id="searchresult-breeding"> |
249 |
<div id="searchresult-breeding"> |
221 |
<h3>Biblios in reservoir</h3> |
250 |
<h3>Biblios in reservoir</h3> |
222 |
[% IF ( breeding_loop ) %] |
251 |
[% IF ( breeding_loop ) %] |
223 |
<table> |
252 |
<table id="reservoir_search_table"> |
|
|
253 |
<thead> |
224 |
<tr> |
254 |
<tr> |
225 |
<th>Title</th> |
255 |
<th>Title</th> |
226 |
<th>ISBN</th> |
256 |
<th>ISBN</th> |
227 |
<th>Date</th> |
257 |
<th>Date</th> |
228 |
<th>Edition</th> |
258 |
<th>Edition</th> |
229 |
<th>Coming from</th> |
259 |
<th>Coming from</th> |
230 |
<th>Preview</th> |
260 |
<th> </th> |
231 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th> </th>[% END %] |
|
|
232 |
</tr> |
261 |
</tr> |
|
|
262 |
</thead> |
263 |
<tbody> |
233 |
[% FOREACH breeding_loo IN breeding_loop %] |
264 |
[% FOREACH breeding_loo IN breeding_loop %] |
234 |
[% IF ( loop.odd ) %] |
265 |
[% IF ( loop.odd ) %] |
235 |
<tr> |
266 |
<tr> |
Lines 242-254
Link Here
|
242 |
<td>[% breeding_loo.copyrightdate %]</td> |
273 |
<td>[% breeding_loo.copyrightdate %]</td> |
243 |
<td>[% breeding_loo.edition %]</td> |
274 |
<td>[% breeding_loo.edition %]</td> |
244 |
<td>[% breeding_loo.file %]</td> |
275 |
<td>[% breeding_loo.file %]</td> |
245 |
<td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.id %]" class="previewData">Card</a> |
276 |
<td> |
246 |
</td> |
277 |
<div class="dropdown"> |
247 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<td> |
278 |
<a class="btn btn-mini dropdown-toggle" id="reservoirsearchactions[% breeding_loo.id %]" role="button" data-toggle="dropdown" href="#"> |
248 |
<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id %]">Add biblio</a> |
279 |
Actions <b class="caret"></b> |
249 |
</td>[% END %] |
280 |
</a> |
250 |
</tr> |
281 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="reservoirsearchactions[% breeding_loo.id %]"> |
|
|
282 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> |
283 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.id %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> |
284 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
285 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id %]"><i class="fa fa-plus"></i> Add biblio</a></li> |
286 |
[% END %] |
287 |
</ul> |
288 |
</div> |
289 |
</td> |
290 |
</tr> |
251 |
[% END %] |
291 |
[% END %] |
|
|
292 |
</tbody> |
252 |
</table> |
293 |
</table> |
253 |
[% ELSE %] |
294 |
[% ELSE %] |
254 |
<p>None</p> |
295 |
<p>None</p> |
255 |
- |
|
|