Lines 9-17
Link Here
|
9 |
@import url([% themelang %]/css/print.css); |
9 |
@import url([% themelang %]/css/print.css); |
10 |
</style> |
10 |
</style> |
11 |
[% ELSE %][% INCLUDE 'doc-head-close.inc' %] |
11 |
[% ELSE %][% INCLUDE 'doc-head-close.inc' %] |
|
|
12 |
<style type="text/css"> |
13 |
td table { |
14 |
font-size: 85%; |
15 |
border: 0; |
16 |
} |
17 |
td table th:first-child, |
18 |
td table th.sorting:first-child, |
19 |
td table th.sorting_asc:first-child, |
20 |
td table th.sorting_desc:first-child { |
21 |
border-right : 1px solid #99BEC9; |
22 |
} |
23 |
td table th, |
24 |
td table th.sorting, |
25 |
td table th.sorting_asc, |
26 |
td table th.sorting_desc { |
27 |
background-color: #E6F0F2; |
28 |
border-color: #99BEC9; |
29 |
border-width: 0px 0px 1px 0px; |
30 |
} |
31 |
td table td { |
32 |
border-width: 0px 0px 1px 0px; |
33 |
border-color: #B8D7E0; |
34 |
} |
35 |
</style> |
12 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
36 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
13 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
37 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
14 |
<script type="text/javascript"> |
38 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
|
|
39 |
[% INCLUDE 'datatables-strings.inc' %] |
40 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> <script type="text/javascript"> |
15 |
//<![CDATA[ |
41 |
//<![CDATA[ |
16 |
|
42 |
|
17 |
function placeHold () { |
43 |
function placeHold () { |
Lines 63-71
function placeHold () {
Link Here
|
63 |
$(".hold").text(_("Place Hold")); |
89 |
$(".hold").text(_("Place Hold")); |
64 |
$("#downloadcartc").empty(); |
90 |
$("#downloadcartc").empty(); |
65 |
yuiToolbar(); |
91 |
yuiToolbar(); |
66 |
$("#itemst").tablesorter({ |
92 |
|
67 |
headers: { 0: { sorter: false }} |
93 |
/* Define two custom functions (asc and desc) for string sorting */ |
68 |
}); |
94 |
jQuery.fn.dataTableExt.oSort['callnumbers-asc'] = function(x,y) { |
|
|
95 |
var x_array = x.split("<span>"); |
96 |
var y_array = y.split("<span>"); |
97 |
|
98 |
/* Pop the first elements, they are empty strings */ |
99 |
x_array.shift(); |
100 |
y_array.shift(); |
101 |
|
102 |
x_array.sort(); |
103 |
y_array.sort(); |
104 |
|
105 |
x = x_array.shift(); |
106 |
y = y_array.shift(); |
107 |
|
108 |
return ((x < y) ? -1 : ((x > y) ? 1 : 0)); |
109 |
}; |
110 |
|
111 |
jQuery.fn.dataTableExt.oSort['callnumbers-desc'] = function(x,y) { |
112 |
var x_array = x.split("<span>"); |
113 |
var y_array = y.split("<span>"); |
114 |
|
115 |
/* Pop the first elements, they are empty strings */ |
116 |
x_array.shift(); |
117 |
y_array.shift(); |
118 |
|
119 |
x_array.sort(); |
120 |
y_array.sort(); |
121 |
|
122 |
x = x_array.pop(); |
123 |
y = y_array.pop(); |
124 |
|
125 |
return ((x < y) ? 1 : ((x > y) ? -1 : 0)); |
126 |
}; |
127 |
|
128 |
$("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { |
129 |
"sDom": 't', |
130 |
"aoColumnDefs": [ |
131 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
132 |
{ "aTargets": [ 3 ], "sType": 'callnumbers' }, |
133 |
], |
134 |
"aaSorting": [[ 1, "asc" ]], |
135 |
"bPaginate": false |
136 |
})); |
137 |
|
69 |
}); |
138 |
}); |
70 |
//]]> |
139 |
//]]> |
71 |
</script> |
140 |
</script> |
Lines 287-301
function placeHold () {
Link Here
|
287 |
[% UNLESS ( print_basket ) %]<th> </th>[% END %] |
356 |
[% UNLESS ( print_basket ) %]<th> </th>[% END %] |
288 |
<th>Title</th> |
357 |
<th>Title</th> |
289 |
<th>Item type</th> |
358 |
<th>Item type</th> |
290 |
<th>Location</th> |
359 |
<th>Items</th> |
291 |
</tr></thead> |
360 |
</tr></thead> |
292 |
|
361 |
|
293 |
[% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %] |
362 |
[% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %] |
294 |
[% IF ( BIBLIO_RESULT.even ) %] |
|
|
295 |
<tr class="highlight"> |
296 |
[% ELSE %] |
297 |
<tr> |
363 |
<tr> |
298 |
[% END %] |
|
|
299 |
[% UNLESS ( print_basket ) %]<td> |
364 |
[% UNLESS ( print_basket ) %]<td> |
300 |
<input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" /> |
365 |
<input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" /> |
301 |
|
366 |
|
Lines 317-330
function placeHold () {
Link Here
|
317 |
|
382 |
|
318 |
</td> |
383 |
</td> |
319 |
<td>[% BIBLIO_RESULT.description %]</td> |
384 |
<td>[% BIBLIO_RESULT.description %]</td> |
320 |
<td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] |
385 |
<td> |
321 |
<p> |
386 |
[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %] |
322 |
[% ITEM_RESULT.branchname %] [% ITEM_RESULT.location_description %] |
387 |
[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] |
323 |
[% IF ( ITEM_RESULT.itemcallnumber ) %] |
388 |
<span>[% ITEM_RESULT.itemcallnumber %] [% ITEM_RESULT.branchname %] <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></span> |
324 |
([% ITEM_RESULT.itemcallnumber %]) |
389 |
[% END %] |
325 |
[% END %] |
390 |
[% ELSE %] |
326 |
</p> |
391 |
This record has no items. |
327 |
[% END %][% ELSE %]This record has no items.[% END %]</td> |
392 |
[% END %] |
|
|
393 |
</td> |
328 |
</tr> |
394 |
</tr> |
329 |
[% END %] |
395 |
[% END %] |
330 |
</table></form> |
396 |
</table></form> |
331 |
- |
|
|