Lines 16-21
Link Here
|
16 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
16 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
17 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> |
17 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> |
18 |
<th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th> |
18 |
<th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th> |
|
|
19 |
[% IF Koha.Preference('StaffLocationOnDetail') == 'column' %] |
20 |
<th id="[% tab | html %]_shelvingloction" data-colname="[% tab | html %]_shelvinglocation">Shelving location</th> |
21 |
[% END %] |
19 |
<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th> |
22 |
<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th> |
20 |
[% IF Koha.Preference('EnableItemGroups') %] |
23 |
[% IF Koha.Preference('EnableItemGroups') %] |
21 |
<th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th> |
24 |
<th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th> |
Lines 363-369
Link Here
|
363 |
searchable: true, |
366 |
searchable: true, |
364 |
orderable: true, |
367 |
orderable: true, |
365 |
render: function (data, type, row, meta) { |
368 |
render: function (data, type, row, meta) { |
366 |
return escape_str(row._strings.holding_library_id.str); |
369 |
let nodes = '<span class="holdingbranchdesc">%s</span>'.format(escape_str(row._strings.holding_library_id.str)); |
|
|
370 |
[% IF ( Koha.Preference('StaffLocationOnDetail') == 'home' || Koha.Preference('StaffLocationOnDetail') == 'both' ) %] |
371 |
nodes += '<span class="shelvingloc">' |
372 |
[%# If permanent location is defined, show description or code and %] |
373 |
[%# display current location in parentheses. If not, display current location. %] |
374 |
[%# Note that permanent location is a code, and location may be an authval. %] |
375 |
let loc_str = row._strings.location.str; |
376 |
if ( row.permanent_location && row.permanent_location != row.location ) { |
377 |
let permanent_loc_str = av_loc.get(row.permanent_location); |
378 |
nodes += '%s (%s)'.format(escape_str(permanent_loc_str), escape_str(loc_str)); |
379 |
} else { |
380 |
nodes += escape_str(loc_str); |
381 |
} |
382 |
[% END %] |
383 |
nodes += '</span>'; |
384 |
return nodes; |
367 |
} |
385 |
} |
368 |
}, |
386 |
}, |
369 |
{ |
387 |
{ |
Lines 373-393
Link Here
|
373 |
orderable: true, |
391 |
orderable: true, |
374 |
render: function (data, type, row, meta) { |
392 |
render: function (data, type, row, meta) { |
375 |
let nodes = '<span class="homebranchdesc">%s</span>'.format(escape_str(row._strings.home_library_id.str)); |
393 |
let nodes = '<span class="homebranchdesc">%s</span>'.format(escape_str(row._strings.home_library_id.str)); |
376 |
nodes += '<span class="shelvingloc">' |
394 |
[% IF ( Koha.Preference('StaffLocationOnDetail') == 'home' || Koha.Preference('StaffLocationOnDetail') == 'both' ) %] |
377 |
[%# If permanent location is defined, show description or code and %] |
395 |
nodes += '<span class="shelvingloc">' |
378 |
[%# display current location in parentheses. If not, display current location. %] |
396 |
let loc_str = row._strings.location.str; |
379 |
[%# Note that permanent location is a code, and location may be an authval. %] |
397 |
if ( row.permanent_location && row.permanent_location != row.location ) { |
380 |
let loc_str = row._strings.location.str; |
398 |
let permanent_loc_str = av_loc.get(row.permanent_location); |
381 |
if ( row.permanent_location && row.permanent_location != row.location ) { |
399 |
nodes += '%s (%s)'.format(escape_str(permanent_loc_str), escape_str(loc_str)); |
382 |
let permanent_loc_str = av_loc.get(row.permanent_location); |
400 |
} else { |
383 |
nodes += '%s (%s)'.format(escape_str(permanent_loc_str), escape_str(loc_str)); |
401 |
nodes += escape_str(loc_str); |
384 |
} else { |
402 |
} |
385 |
nodes += escape_str(loc_str); |
403 |
[% END %] |
386 |
} |
|
|
387 |
nodes += '</span>'; |
404 |
nodes += '</span>'; |
388 |
return nodes; |
405 |
return nodes; |
389 |
} |
406 |
} |
390 |
}, |
407 |
}, |
|
|
408 |
[% IF Koha.Preference('StaffLocationOnDetail') == 'column' %] |
409 |
{ |
410 |
data: "me.location", |
411 |
searchable: true, |
412 |
orderable: true, |
413 |
render: function (data, type, row, meta) { |
414 |
return escape_str(row._strings.collection_code.str); |
415 |
} |
416 |
}, |
417 |
[% END %] |
391 |
{ |
418 |
{ |
392 |
data: "me.collection_code", |
419 |
data: "me.collection_code", |
393 |
searchable: true, |
420 |
searchable: true, |