Lines 22-241
function disableGrouping(datatable) {
Link Here
|
22 |
} |
22 |
} |
23 |
} |
23 |
} |
24 |
|
24 |
|
25 |
var mRenders = { |
25 |
var renderers = { |
26 |
groupOrder: function (oData, sType, oObj) { |
26 |
groupOrder: function (data, type, row) { |
27 |
if ( oObj.issued_today ) { |
27 |
if ( row.issued_today ) { |
28 |
return "1"; |
28 |
return "1"; |
29 |
} else { |
29 |
} else { |
30 |
return "0"; |
30 |
return "0"; |
31 |
} |
31 |
} |
32 |
}, |
32 |
}, |
33 |
groupName: function (oData, sType, oObj) { |
33 |
groupName: function (data, type, row) { |
34 |
if (oObj.issued_today) { |
34 |
if (row.issued_today) { |
35 |
return "<strong>" + TODAYS_CHECKOUTS + "</strong>"; |
35 |
return "<strong>" + TODAYS_CHECKOUTS + "</strong>"; |
36 |
} else { |
36 |
} else { |
37 |
return "<strong>" + PREVIOUS_CHECKOUTS + "</strong>"; |
37 |
return "<strong>" + PREVIOUS_CHECKOUTS + "</strong>"; |
38 |
} |
38 |
} |
39 |
}, |
39 |
}, |
40 |
dateDueFormatted: function (oData, sType, oObj) { |
40 |
dateDueFormatted: function (data, type, row) { |
41 |
var due = oObj.date_due_formatted; |
41 |
var due = row.date_due_formatted; |
42 |
|
42 |
|
43 |
if ( oObj.date_due_overdue ) { |
43 |
if ( row.date_due_overdue ) { |
44 |
due = "<span class='overdue'>" + due + "</span>"; |
44 |
due = "<span class='overdue'>" + due + "</span>"; |
45 |
} |
45 |
} |
46 |
|
46 |
|
47 |
due = "<span id='date_due_" + oObj.itemnumber + "' class='date_due'>" + due + "</span>"; |
47 |
due = "<span id='date_due_" + row.itemnumber + "' class='date_due'>" + due + "</span>"; |
48 |
|
48 |
|
49 |
if ( oObj.lost ) { |
49 |
if ( row.lost ) { |
50 |
due += "<span class='lost'>" + oObj.lost + "</span>"; |
50 |
due += "<span class='lost'>" + row.lost + "</span>"; |
51 |
} |
51 |
} |
52 |
|
52 |
|
53 |
if ( oObj.damaged ) { |
53 |
if ( row.damaged ) { |
54 |
due += "<span class='dmg'>" + oObj.damaged + "</span>"; |
54 |
due += "<span class='dmg'>" + row.damaged + "</span>"; |
55 |
} |
55 |
} |
56 |
|
56 |
|
57 |
return due; |
57 |
return due; |
58 |
}, |
58 |
}, |
59 |
title: function (oData, sType, oObj) { |
59 |
title: function (data, type, row) { |
60 |
var title = "<span id='title_" + oObj.itemnumber + "' class='strong'><a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber=" |
60 |
var title = "<span id='title_" + row.itemnumber + "' class='strong'><a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber=" |
61 |
+ oObj.biblionumber |
61 |
+ row.biblionumber |
62 |
+ "'>" |
62 |
+ "'>" |
63 |
+ oObj.title; |
63 |
+ row.title; |
64 |
|
64 |
|
65 |
$.each(oObj.subtitle, function( index, value ) { |
65 |
$.each(row.subtitle, function( index, value ) { |
66 |
title += " " + value.subfield; |
66 |
title += " " + value.subfield; |
67 |
}); |
67 |
}); |
68 |
|
68 |
|
69 |
if ( oObj.enumchron ) { |
69 |
if ( row.enumchron ) { |
70 |
title += " (" + oObj.enumchron + ")"; |
70 |
title += " (" + row.enumchron + ")"; |
71 |
} |
71 |
} |
72 |
|
72 |
|
73 |
title += "</a></span>"; |
73 |
title += "</a></span>"; |
74 |
|
74 |
|
75 |
if ( oObj.author ) { |
75 |
if ( row.author ) { |
76 |
title += " " + BY.replace( "_AUTHOR_", " " + oObj.author ); |
76 |
title += " " + BY.replace( "_AUTHOR_", " " + row.author ); |
77 |
} |
77 |
} |
78 |
|
78 |
|
79 |
if ( oObj.itemnotes ) { |
79 |
if ( row.itemnotes ) { |
80 |
var span_class = "text-muted"; |
80 |
var span_class = "text-muted"; |
81 |
if ( $.datepicker.formatDate('yy-mm-dd', new Date(oObj.issuedate) ) == ymd ) { |
81 |
if ( $.datepicker.formatDate('yy-mm-dd', new Date(row.issuedate) ) == ymd ) { |
82 |
span_class = "circ-hlt"; |
82 |
span_class = "circ-hlt"; |
83 |
} |
83 |
} |
84 |
title += " - <span class='" + span_class + " item-note-public'>" + oObj.itemnotes + "</span>"; |
84 |
title += " - <span class='" + span_class + " item-note-public'>" + row.itemnotes + "</span>"; |
85 |
} |
85 |
} |
86 |
|
86 |
|
87 |
if ( oObj.itemnotes_nonpublic ) { |
87 |
if ( row.itemnotes_nonpublic ) { |
88 |
var span_class = "text-danger"; |
88 |
var span_class = "text-danger"; |
89 |
if ( $.datepicker.formatDate('yy-mm-dd', new Date(oObj.issuedate) ) == ymd ) { |
89 |
if ( $.datepicker.formatDate('yy-mm-dd', new Date(row.issuedate) ) == ymd ) { |
90 |
span_class = "circ-hlt"; |
90 |
span_class = "circ-hlt"; |
91 |
} |
91 |
} |
92 |
title += " - <span class='" + span_class + " item-note-nonpublic'>" + oObj.itemnotes_nonpublic + "</span>"; |
92 |
title += " - <span class='" + span_class + " item-note-nonpublic'>" + row.itemnotes_nonpublic + "</span>"; |
93 |
} |
93 |
} |
94 |
|
94 |
|
95 |
var onsite_checkout = ''; |
95 |
var onsite_checkout = ''; |
96 |
if ( oObj.onsite_checkout == 1 ) { |
96 |
if ( row.onsite_checkout == 1 ) { |
97 |
onsite_checkout += " <span class='onsite_checkout'>(" + INHOUSE_USE + ")</span>"; |
97 |
onsite_checkout += " <span class='onsite_checkout'>(" + INHOUSE_USE + ")</span>"; |
98 |
} |
98 |
} |
99 |
|
99 |
|
100 |
title += " " |
100 |
title += " " |
101 |
+ "<a href='/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=" |
101 |
+ "<a href='/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=" |
102 |
+ oObj.biblionumber |
102 |
+ row.biblionumber |
103 |
+ "&itemnumber=" |
103 |
+ "&itemnumber=" |
104 |
+ oObj.itemnumber |
104 |
+ row.itemnumber |
105 |
+ "#" |
105 |
+ "#" |
106 |
+ oObj.itemnumber |
106 |
+ row.itemnumber |
107 |
+ "'>" |
107 |
+ "'>" |
108 |
+ oObj.barcode |
108 |
+ row.barcode |
109 |
+ "</a>" |
109 |
+ "</a>" |
110 |
+ onsite_checkout |
110 |
+ onsite_checkout |
111 |
|
111 |
|
112 |
return title; |
112 |
return title; |
113 |
}, |
113 |
}, |
114 |
itemtype: function (oData, sType, oObj) { |
114 |
itemtype: function (data, type, row) { |
115 |
return oObj.itemtype_description; |
115 |
return row.itemtype_description; |
116 |
}, |
116 |
}, |
117 |
issuedate: function (oData, sType, oObj) { |
117 |
issuedate: function (data, type, row) { |
118 |
return oObj.issuedate_formatted; |
118 |
return row.issuedate_formatted; |
119 |
}, |
119 |
}, |
120 |
branch: function (oData, sType, oObj) { |
120 |
branch: function (data, type, row) { |
121 |
return oObj.branchname; |
121 |
return row.branchname; |
122 |
}, |
122 |
}, |
123 |
charge: function (oData, sType, oObj) { |
123 |
charge: function (data, type, row) { |
124 |
if (!oObj.charge) oObj.charge = 0; |
124 |
if (!row.charge) row.charge = 0; |
125 |
return '<span style="text-align: right; display: block;">' + parseFloat(oObj.charge).toFixed(2) + '<span>'; |
125 |
return '<span style="text-align: right; display: block;">' + parseFloat(row.charge).toFixed(2) + '<span>'; |
126 |
}, |
126 |
}, |
127 |
fine: function (oData, sType, oObj) { |
127 |
fine: function (data, type, row) { |
128 |
if (!oObj.fine) oObj.fine = 0; |
128 |
if (!row.fine) row.fine = 0; |
129 |
return '<span style="text-align: right; display: block;">' + parseFloat(oObj.fine).toFixed(2) + '<span>'; |
129 |
return '<span style="text-align: right; display: block;">' + parseFloat(row.fine).toFixed(2) + '<span>'; |
130 |
}, |
130 |
}, |
131 |
price: function (oData, sType, oObj) { |
131 |
price: function (data, type, row) { |
132 |
if (!oObj.price) oObj.price = 0; |
132 |
if (!row.price) row.price = 0; |
133 |
return parseFloat(oObj.price).toFixed(2); |
133 |
return parseFloat(row.price).toFixed(2); |
134 |
}, |
134 |
}, |
135 |
renew: function (oData, sType, oObj) { |
135 |
renew: function (data, type, row) { |
136 |
var content = ""; |
136 |
var content = ""; |
137 |
var span_style = ""; |
137 |
var span_style = ""; |
138 |
var span_class = ""; |
138 |
var span_class = ""; |
139 |
|
139 |
|
140 |
content += "<span>"; |
140 |
content += "<span>"; |
141 |
content += "<span style='padding: 0 1em;'>" + oObj.renewals_count + "</span>"; |
141 |
content += "<span style='padding: 0 1em;'>" + row.renewals_count + "</span>"; |
142 |
|
142 |
|
143 |
if ( oObj.can_renew ) { |
143 |
if ( row.can_renew ) { |
144 |
// Do nothing |
144 |
// Do nothing |
145 |
} else if ( oObj.can_renew_error == "on_reserve" ) { |
145 |
} else if ( row.can_renew_error == "on_reserve" ) { |
146 |
content += "<span class='renewals-disabled-no-override'>" |
146 |
content += "<span class='renewals-disabled-no-override'>" |
147 |
+ "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + ON_HOLD + "</a>" |
147 |
+ "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + row.biblionumber + "'>" + ON_HOLD + "</a>" |
148 |
+ "</span>"; |
148 |
+ "</span>"; |
149 |
|
149 |
|
150 |
span_style = "display: none"; |
150 |
span_style = "display: none"; |
151 |
span_class = "renewals-allowed"; |
151 |
span_class = "renewals-allowed"; |
152 |
} else if ( oObj.can_renew_error == "too_many" ) { |
152 |
} else if ( row.can_renew_error == "too_many" ) { |
153 |
content += "<span class='renewals-disabled'>" |
153 |
content += "<span class='renewals-disabled'>" |
154 |
+ NOT_RENEWABLE |
154 |
+ NOT_RENEWABLE |
155 |
+ "</span>"; |
155 |
+ "</span>"; |
156 |
|
156 |
|
157 |
span_style = "display: none"; |
157 |
span_style = "display: none"; |
158 |
span_class = "renewals-allowed"; |
158 |
span_class = "renewals-allowed"; |
159 |
} else if ( oObj.can_renew_error == "restriction" ) { |
159 |
} else if ( row.can_renew_error == "restriction" ) { |
160 |
content += "<span class='renewals-disabled'>" |
160 |
content += "<span class='renewals-disabled'>" |
161 |
+ NOT_RENEWABLE_RESTRICTION |
161 |
+ NOT_RENEWABLE_RESTRICTION |
162 |
+ "</span>"; |
162 |
+ "</span>"; |
163 |
|
163 |
|
164 |
span_style = "display: none"; |
164 |
span_style = "display: none"; |
165 |
span_class = "renewals-allowed"; |
165 |
span_class = "renewals-allowed"; |
166 |
} else if ( oObj.can_renew_error == "overdue" ) { |
166 |
} else if ( row.can_renew_error == "overdue" ) { |
167 |
content += "<span class='renewals-disabled'>" |
167 |
content += "<span class='renewals-disabled'>" |
168 |
+ NOT_RENEWABLE_OVERDUE |
168 |
+ NOT_RENEWABLE_OVERDUE |
169 |
+ "</span>"; |
169 |
+ "</span>"; |
170 |
|
170 |
|
171 |
span_style = "display: none"; |
171 |
span_style = "display: none"; |
172 |
span_class = "renewals-allowed"; |
172 |
span_class = "renewals-allowed"; |
173 |
} else if ( oObj.can_renew_error == "too_soon" ) { |
173 |
} else if ( row.can_renew_error == "too_soon" ) { |
174 |
content += "<span class='renewals-disabled'>" |
174 |
content += "<span class='renewals-disabled'>" |
175 |
+ NOT_RENEWABLE_TOO_SOON.format( oObj.can_renew_date ) |
175 |
+ NOT_RENEWABLE_TOO_SOON.format( row.can_renew_date ) |
176 |
+ "</span>"; |
176 |
+ "</span>"; |
177 |
|
177 |
|
178 |
span_style = "display: none"; |
178 |
span_style = "display: none"; |
179 |
span_class = "renewals-allowed"; |
179 |
span_class = "renewals-allowed"; |
180 |
} else if ( oObj.can_renew_error == "auto_too_soon" ) { |
180 |
} else if ( row.can_renew_error == "auto_too_soon" ) { |
181 |
content += "<span class='renewals-disabled'>" |
181 |
content += "<span class='renewals-disabled'>" |
182 |
+ NOT_RENEWABLE_AUTO_TOO_SOON |
182 |
+ NOT_RENEWABLE_AUTO_TOO_SOON |
183 |
+ "</span>"; |
183 |
+ "</span>"; |
184 |
|
184 |
|
185 |
span_style = "display: none"; |
185 |
span_style = "display: none"; |
186 |
span_class = "renewals-allowed"; |
186 |
span_class = "renewals-allowed"; |
187 |
} else if ( oObj.can_renew_error == "auto_too_late" ) { |
187 |
} else if ( row.can_renew_error == "auto_too_late" ) { |
188 |
content += "<span class='renewals-disabled'>" |
188 |
content += "<span class='renewals-disabled'>" |
189 |
+ NOT_RENEWABLE_AUTO_TOO_LATE |
189 |
+ NOT_RENEWABLE_AUTO_TOO_LATE |
190 |
+ "</span>"; |
190 |
+ "</span>"; |
191 |
|
191 |
|
192 |
span_style = "display: none"; |
192 |
span_style = "display: none"; |
193 |
span_class = "renewals-allowed"; |
193 |
span_class = "renewals-allowed"; |
194 |
} else if ( oObj.can_renew_error == "auto_too_much_oweing" ) { |
194 |
} else if ( row.can_renew_error == "auto_too_much_oweing" ) { |
195 |
content += "<span class='renewals-disabled'>" |
195 |
content += "<span class='renewals-disabled'>" |
196 |
+ NOT_RENEWABLE_AUTO_TOO_MUCH_OWEING |
196 |
+ NOT_RENEWABLE_AUTO_TOO_MUCH_OWEING |
197 |
+ "</span>"; |
197 |
+ "</span>"; |
198 |
|
198 |
|
199 |
span_style = "display: none"; |
199 |
span_style = "display: none"; |
200 |
span_class = "renewals-allowed"; |
200 |
span_class = "renewals-allowed"; |
201 |
} else if ( oObj.can_renew_error == "auto_account_expired" ) { |
201 |
} else if ( row.can_renew_error == "auto_account_expired" ) { |
202 |
content += "<span class='renewals-disabled'>" |
202 |
content += "<span class='renewals-disabled'>" |
203 |
+ NOT_RENEWABLE_AUTO_ACCOUNT_EXPIRED |
203 |
+ NOT_RENEWABLE_AUTO_ACCOUNT_EXPIRED |
204 |
+ "</span>"; |
204 |
+ "</span>"; |
205 |
|
205 |
|
206 |
span_style = "display: none"; |
206 |
span_style = "display: none"; |
207 |
span_class = "renewals-allowed"; |
207 |
span_class = "renewals-allowed"; |
208 |
} else if ( oObj.can_renew_error == "auto_renew" ) { |
208 |
} else if ( row.can_renew_error == "auto_renew" ) { |
209 |
content += "<span class='renewals-disabled'>" |
209 |
content += "<span class='renewals-disabled'>" |
210 |
+ NOT_RENEWABLE_AUTO_RENEW |
210 |
+ NOT_RENEWABLE_AUTO_RENEW |
211 |
+ "</span>"; |
211 |
+ "</span>"; |
212 |
|
212 |
|
213 |
span_style = "display: none"; |
213 |
span_style = "display: none"; |
214 |
span_class = "renewals-allowed"; |
214 |
span_class = "renewals-allowed"; |
215 |
} else if ( oObj.can_renew_error == "onsite_checkout" ) { |
215 |
} else if ( row.can_renew_error == "onsite_checkout" ) { |
216 |
// Don't display something if it's an onsite checkout |
216 |
// Don't display something if it's an onsite checkout |
217 |
} else { |
217 |
} else { |
218 |
content += "<span class='renewals-disabled'>" |
218 |
content += "<span class='renewals-disabled'>" |
219 |
+ oObj.can_renew_error |
219 |
+ row.can_renew_error |
220 |
+ "</span>"; |
220 |
+ "</span>"; |
221 |
|
221 |
|
222 |
span_style = "display: none"; |
222 |
span_style = "display: none"; |
223 |
span_class = "renewals-allowed"; |
223 |
span_class = "renewals-allowed"; |
224 |
} |
224 |
} |
225 |
|
225 |
|
226 |
var can_force_renew = ( oObj.onsite_checkout == 0 ) && ( oObj.can_renew_error != "on_reserve" ); |
226 |
var can_force_renew = ( row.onsite_checkout == 0 ) && ( row.can_renew_error != "on_reserve" ); |
227 |
var can_renew = ( oObj.renewals_remaining > 0 && !oObj.can_renew_error ); |
227 |
var can_renew = ( row.renewals_remaining > 0 && !row.can_renew_error ); |
228 |
if ( can_renew || can_force_renew ) { |
228 |
if ( can_renew || can_force_renew ) { |
229 |
content += "<span class='" + span_class + "' style='" + span_style + "'>" |
229 |
content += "<span class='" + span_class + "' style='" + span_style + "'>" |
230 |
+ "<input type='checkbox' "; |
230 |
+ "<input type='checkbox' "; |
231 |
if ( oObj.date_due_overdue && can_renew ) { |
231 |
if ( row.date_due_overdue && can_renew ) { |
232 |
content += "checked='checked' "; |
232 |
content += "checked='checked' "; |
233 |
} |
233 |
} |
234 |
content += "class='renew' id='renew_" + oObj.itemnumber + "' name='renew' value='" + oObj.itemnumber +"'/>" |
234 |
content += "class='renew' id='renew_" + row.itemnumber + "' name='renew' value='" + row.itemnumber +"'/>" |
235 |
+ "</span>"; |
235 |
+ "</span>"; |
236 |
|
236 |
|
237 |
content += "<span class='renewals'>(" |
237 |
content += "<span class='renewals'>(" |
238 |
+ RENEWALS_REMAINING.format( oObj.renewals_remaining, oObj.renewals_allowed ) |
238 |
+ RENEWALS_REMAINING.format( row.renewals_remaining, row.renewals_allowed ) |
239 |
+ ")</span>"; |
239 |
+ ")</span>"; |
240 |
} |
240 |
} |
241 |
|
241 |
|
Lines 243-264
var mRenders = {
Link Here
|
243 |
|
243 |
|
244 |
return content; |
244 |
return content; |
245 |
}, |
245 |
}, |
246 |
checkin: function (oData, sType, oObj) { |
246 |
checkin: function (data, type, row) { |
247 |
if (oObj.can_renew_error == "on_reserve") { |
247 |
if (row.can_renew_error == "on_reserve") { |
248 |
return "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + ON_HOLD + "</a>"; |
248 |
return "<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + row.biblionumber + "'>" + ON_HOLD + "</a>"; |
249 |
} else { |
249 |
} else { |
250 |
return "<input type='checkbox' class='checkin' id='checkin_" + oObj.itemnumber + "' name='checkin' value='" + oObj.itemnumber +"'></input>"; |
250 |
return "<input type='checkbox' class='checkin' id='checkin_" + row.itemnumber + "' name='checkin' value='" + row.itemnumber +"'></input>"; |
251 |
} |
251 |
} |
252 |
}, |
252 |
}, |
253 |
export: function (oData, sType, oObj) { |
253 |
export: function (data, type, row) { |
254 |
var s = "<input type='checkbox' name='itemnumbers' value='" + oObj.itemnumber + "' style='visibility:hidden;' />"; |
254 |
var s = "<input type='checkbox' name='itemnumbers' value='" + row.itemnumber + "' style='visibility:hidden;' />"; |
255 |
|
255 |
|
256 |
s += "<input type='checkbox' class='export' id='export_" + oObj.biblionumber + "' name='biblionumbers' value='" + oObj.biblionumber + "' />"; |
256 |
s += "<input type='checkbox' class='export' id='export_" + row.biblionumber + "' name='biblionumbers' value='" + row.biblionumber + "' />"; |
257 |
return s; |
257 |
return s; |
258 |
}, |
258 |
}, |
259 |
patron: function (oData, sType, oObj) { |
259 |
patron: function (data, type, row) { |
260 |
return "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=" + oObj.borrowernumber + "'>" |
260 |
return "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=" + row.borrowernumber + "'>" |
261 |
+ oObj.borrower.firstname + " " + oObj.borrower.surname + " (" + oObj.borrower.cardnumber + ")</a>" |
261 |
+ row.borrower.firstname + " " + row.borrower.surname + " (" + row.borrower.cardnumber + ")</a>" |
262 |
} |
262 |
} |
263 |
}; |
263 |
}; |
264 |
|
264 |
|
Lines 459-472
$(document).ready(function() {
Link Here
|
459 |
"sPaginationType": "four_button", |
459 |
"sPaginationType": "four_button", |
460 |
"dom": 'B<"clearfix"><"top pager"ilp>rt', |
460 |
"dom": 'B<"clearfix"><"top pager"ilp>rt', |
461 |
"aaSorting": [], |
461 |
"aaSorting": [], |
462 |
"aoColumns": [ |
462 |
"columns": [ |
463 |
{ |
463 |
{ |
464 |
"mData": "issued_today", |
464 |
"data": "issued_today", |
465 |
"mRender": mRenders.groupOrder |
465 |
"render": renderers.groupOrder |
466 |
}, |
466 |
}, |
467 |
{ |
467 |
{ |
468 |
"mData": function (oObj) { |
468 |
"data": function (row) { |
469 |
if (oObj.issued_today) { |
469 |
if (row.issued_today) { |
470 |
return "<strong>" + TODAYS_CHECKOUTS + "</strong>"; |
470 |
return "<strong>" + TODAYS_CHECKOUTS + "</strong>"; |
471 |
} else { |
471 |
} else { |
472 |
return "<strong>" + PREVIOUS_CHECKOUTS + "</strong>"; |
472 |
return "<strong>" + PREVIOUS_CHECKOUTS + "</strong>"; |
Lines 474-530
$(document).ready(function() {
Link Here
|
474 |
} |
474 |
} |
475 |
}, |
475 |
}, |
476 |
{ |
476 |
{ |
477 |
"mData": "date_due", |
477 |
"data": "date_due", |
478 |
"mRender": mRenders.dateDueFormatted |
478 |
"render": { |
|
|
479 |
"display": renderers.dateDueFormatted |
480 |
} |
479 |
}, |
481 |
}, |
480 |
{ |
482 |
{ |
481 |
"mData": "title", |
483 |
"data": "title", |
482 |
"mRender": mRenders.title |
484 |
"render": { |
|
|
485 |
"display": renderers.title |
486 |
} |
483 |
}, |
487 |
}, |
484 |
{ |
488 |
{ |
485 |
"mData": "itemtype", |
489 |
"data": "itemtype", |
486 |
"mRender": mRenders.itemtype |
490 |
"render": { |
|
|
491 |
"display": renderers.itemtype |
492 |
} |
487 |
}, |
493 |
}, |
488 |
{ "mData": "location" }, |
494 |
{ "data": "location" }, |
489 |
{ "mData": "homebranch" }, |
495 |
{ "data": "homebranch" }, |
490 |
{ |
496 |
{ |
491 |
"mData": "issuedate", |
497 |
"data": "issuedate", |
492 |
"mRender": mRenders.issuedate |
498 |
"render": { |
|
|
499 |
"display": renderers.issuedate |
500 |
} |
493 |
}, |
501 |
}, |
494 |
{ |
502 |
{ |
495 |
"mData": "branchcode", |
503 |
"data": "branchcode", |
496 |
"mRender": mRenders.branch |
504 |
"render": { |
|
|
505 |
"display": renderers.branch |
506 |
} |
497 |
}, |
507 |
}, |
498 |
{ "mData": "itemcallnumber" }, |
508 |
{ "data": "itemcallnumber" }, |
499 |
{ |
509 |
{ |
500 |
"mData": "charge", |
510 |
"data": "charge", |
501 |
"mRender": mRenders.charge, |
511 |
"render": { |
502 |
"bSortable": ServerSideCheckoutsTables ? false : true |
512 |
"display": renderers.charge |
|
|
513 |
}, |
514 |
"orderable": ServerSideCheckoutsTables ? false : true |
503 |
}, |
515 |
}, |
504 |
{ |
516 |
{ |
505 |
"mData": "fine", |
517 |
"data": "fine", |
506 |
"mRender": mRenders.fine, |
518 |
"render": { |
507 |
"bSortable": ServerSideCheckoutsTables ? false : true |
519 |
"display": renderers.fine |
|
|
520 |
}, |
521 |
"orderable": ServerSideCheckoutsTables ? false : true |
508 |
}, |
522 |
}, |
509 |
{ |
523 |
{ |
510 |
"mData": "replacementprice", |
524 |
"data": "price", |
511 |
"mRender": mRenders.price, |
525 |
"render": { |
512 |
"bSortable": ServerSideCheckoutsTables ? false : true |
526 |
"display": renderers.price |
|
|
527 |
}, |
528 |
"orderable": ServerSideCheckoutsTables ? false : true |
513 |
}, |
529 |
}, |
514 |
{ |
530 |
{ |
515 |
"bVisible": AllowCirculate ? true : false, |
531 |
"data": null, |
516 |
"mRender": mRenders.renew, |
532 |
"render": { |
517 |
"bSortable": false |
533 |
"display": renderers.renew |
|
|
534 |
}, |
535 |
"visible": AllowCirculate ? true : false, |
536 |
"orderable": false |
518 |
}, |
537 |
}, |
519 |
{ |
538 |
{ |
520 |
"bVisible": AllowCirculate ? true : false, |
539 |
"data": null, |
521 |
"mRender": mRenders.checkin, |
540 |
"render": { |
522 |
"bSortable": false |
541 |
"display": renderers.checkin |
|
|
542 |
}, |
543 |
"visible": AllowCirculate ? true : false, |
544 |
"orderable": false |
523 |
}, |
545 |
}, |
524 |
{ |
546 |
{ |
525 |
"bVisible": exports_enabled == 1 ? true : false, |
547 |
"data": null, |
526 |
"bSortable": false, |
548 |
"render": { |
527 |
"mRender": mRenders.export |
549 |
"display": renderers.export |
|
|
550 |
}, |
551 |
"visible": exports_enabled == 1 ? true : false, |
552 |
"orderable": false |
528 |
} |
553 |
} |
529 |
], |
554 |
], |
530 |
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) { |
555 |
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) { |
Lines 591-632
$(document).ready(function() {
Link Here
|
591 |
}, |
616 |
}, |
592 |
"bPaginate": true, |
617 |
"bPaginate": true, |
593 |
"sPaginationType": "four_button", |
618 |
"sPaginationType": "four_button", |
594 |
"aoColumns": [ |
619 |
"columns": [ |
595 |
{ |
620 |
{ |
596 |
"mData": "date_due", |
621 |
"data": "date_due", |
597 |
"mRender": mRenders.dateDueFormatted |
622 |
"render": { |
|
|
623 |
"display": renderers.dateDueFormatted |
624 |
} |
598 |
}, |
625 |
}, |
599 |
{ |
626 |
{ |
600 |
"mData": "title", |
627 |
"data": "title", |
601 |
"mRender": mRenders.title, |
628 |
"render": { |
|
|
629 |
"display": renderers.title |
630 |
} |
602 |
}, |
631 |
}, |
603 |
{ "mData": "itemtype" }, |
632 |
{ "data": "itemtype" }, |
604 |
{ "mData": "location" }, |
633 |
{ "data": "location" }, |
605 |
{ |
634 |
{ |
606 |
"mData": "issuedate", |
635 |
"data": "issuedate", |
607 |
"mRender": mRenders.issuedate |
636 |
"render": { |
|
|
637 |
"display": renderers.issuedate |
638 |
} |
608 |
}, |
639 |
}, |
609 |
{ "mData": "branchname" }, |
640 |
{ "data": "branchname" }, |
610 |
{ "mData": "itemcallnumber" }, |
641 |
{ "data": "itemcallnumber" }, |
611 |
{ |
642 |
{ |
612 |
"mData": "charge", |
643 |
"data": "charge", |
613 |
"mRender": mRenders.charge, |
644 |
"render": { |
614 |
"bSortable": ServerSideCheckoutsTables ? false : true |
645 |
"display": renderers.charge |
|
|
646 |
}, |
647 |
"orderable": ServerSideCheckoutsTables ? false : true |
615 |
}, |
648 |
}, |
616 |
{ |
649 |
{ |
617 |
"mData": "fine", |
650 |
"data": "fine", |
618 |
"mRender": mRenders.fine, |
651 |
"render": { |
619 |
"bSortable": ServerSideCheckoutsTables ? false : true |
652 |
"display": renderers.fine |
|
|
653 |
}, |
654 |
"orderable": ServerSideCheckoutsTables ? false : true |
620 |
}, |
655 |
}, |
621 |
{ |
656 |
{ |
622 |
"mData": "replacementprice", |
657 |
"data": "replacementprice", |
623 |
"mRender": mRenders.price, |
658 |
"render": { |
624 |
"bSortable": ServerSideCheckoutsTables ? false : true |
659 |
"display": renderers.price |
|
|
660 |
}, |
661 |
"orderable": ServerSideCheckoutsTables ? false : true |
625 |
}, |
662 |
}, |
626 |
{ |
663 |
{ |
627 |
"mData": "borrowernumber", |
664 |
"data": "borrowernumber", |
628 |
"mRender": mRenders.patron, |
665 |
"render": { |
629 |
"bSortable": ServerSideCheckoutsTables ? false : true |
666 |
"display": renderers.patron |
|
|
667 |
}, |
668 |
"orderable": ServerSideCheckoutsTables ? false : true |
630 |
} |
669 |
} |
631 |
] |
670 |
] |
632 |
}, relatives_columns_settings); |
671 |
}, relatives_columns_settings); |
633 |
- |
|
|