Lines 32-37
function LoadIssuesTable() {
Link Here
|
32 |
$('#issues-table').show(); |
32 |
$('#issues-table').show(); |
33 |
$('#issues-table-actions').show(); |
33 |
$('#issues-table-actions').show(); |
34 |
var msg_loading = __('Loading... you may continue scanning.'); |
34 |
var msg_loading = __('Loading... you may continue scanning.'); |
|
|
35 |
if (!AllowCirculate) { |
36 |
table_settings_issues_table.columns.find( |
37 |
c => c.columnname == "renew" |
38 |
).is_hidden = 42; |
39 |
table_settings_issues_table.columns.find( |
40 |
c => c.columnname == "checkin" |
41 |
).is_hidden = 1; |
42 |
} |
43 |
if (!ClaimReturnedLostValue) { |
44 |
table_settings_issues_table.columns.find( |
45 |
c => c.columnname == "claims_returned" |
46 |
).is_hidden = 1; |
47 |
} |
48 |
if (!exports_enabled) { |
49 |
table_settings_issues_table.columns.find( |
50 |
c => c.columnname == "export" |
51 |
).is_hidden = 1; |
52 |
} |
35 |
issuesTable = KohaTable("issues-table", { |
53 |
issuesTable = KohaTable("issues-table", { |
36 |
"language": { |
54 |
"language": { |
37 |
"emptyTable": msg_loading, |
55 |
"emptyTable": msg_loading, |
Lines 224-230
function LoadIssuesTable() {
Link Here
|
224 |
}, |
242 |
}, |
225 |
{ |
243 |
{ |
226 |
"orderable": false, |
244 |
"orderable": false, |
227 |
"visible": AllowCirculate ? true : false, |
|
|
228 |
"data": function ( oObj ) { |
245 |
"data": function ( oObj ) { |
229 |
var content = ""; |
246 |
var content = ""; |
230 |
var msg = ""; |
247 |
var msg = ""; |
Lines 363-369
function LoadIssuesTable() {
Link Here
|
363 |
}, |
380 |
}, |
364 |
{ |
381 |
{ |
365 |
"orderable": false, |
382 |
"orderable": false, |
366 |
"visible": AllowCirculate ? true : false, |
|
|
367 |
"data": function ( oObj ) { |
383 |
"data": function ( oObj ) { |
368 |
if ( oObj.can_renew_error == "recalled" ) { |
384 |
if ( oObj.can_renew_error == "recalled" ) { |
369 |
return "<a href='/cgi-bin/koha/recalls/request.pl?biblionumber=" + oObj.biblionumber + "'>" + __("Recalled") + "</a>"; |
385 |
return "<a href='/cgi-bin/koha/recalls/request.pl?biblionumber=" + oObj.biblionumber + "'>" + __("Recalled") + "</a>"; |
Lines 377-383
function LoadIssuesTable() {
Link Here
|
377 |
} |
393 |
} |
378 |
}, |
394 |
}, |
379 |
{ |
395 |
{ |
380 |
"visible": ClaimReturnedLostValue ? true : false, |
|
|
381 |
"orderable": false, |
396 |
"orderable": false, |
382 |
"data": function ( oObj ) { |
397 |
"data": function ( oObj ) { |
383 |
let content = ""; |
398 |
let content = ""; |
Lines 393-399
function LoadIssuesTable() {
Link Here
|
393 |
} |
408 |
} |
394 |
}, |
409 |
}, |
395 |
{ |
410 |
{ |
396 |
"visible": exports_enabled == 1 ? true : false, |
|
|
397 |
"orderable": false, |
411 |
"orderable": false, |
398 |
"data": function ( oObj ) { |
412 |
"data": function ( oObj ) { |
399 |
var s = "<input type='checkbox' name='itemnumbers' value='" + oObj.itemnumber + "' style='visibility:hidden;' />"; |
413 |
var s = "<input type='checkbox' name='itemnumbers' value='" + oObj.itemnumber + "' style='visibility:hidden;' />"; |
400 |
- |
|
|