Lines 285-294
Link Here
|
285 |
otherholdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %], |
285 |
otherholdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %], |
286 |
}; |
286 |
}; |
287 |
|
287 |
|
288 |
let user_colvis = {holdings: {}, otherholdings: {}}; |
288 |
let user_colvis = {holdings: {}, otherholdings: {}, group_holdings: {}}; |
289 |
let table_nodes = { |
289 |
let table_nodes = { |
290 |
holdings: "[% PROCESS 'build_table' tab="holdings" | collapse | $tojson %]", |
290 |
holdings: "[% PROCESS 'build_table' tab="holdings" | collapse | $tojson %]", |
291 |
otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]", |
291 |
otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]", |
|
|
292 |
group_holdings: "[% PROCESS 'build_table' tab="group_holdings" | collapse | $tojson %]", |
293 |
|
292 |
}; |
294 |
}; |
293 |
function build_items_table (tab_id, add_filters, dt_options, drawcallback) { |
295 |
function build_items_table (tab_id, add_filters, dt_options, drawcallback) { |
294 |
|
296 |
|
Lines 310-315
Link Here
|
310 |
let branch = '[% IF SeparateHoldingsBranch == 'homebranch' %]me.home_library_id[% ELSE %]me.holding_library_id[% END %]'; |
312 |
let branch = '[% IF SeparateHoldingsBranch == 'homebranch' %]me.home_library_id[% ELSE %]me.holding_library_id[% END %]'; |
311 |
if ( tab_id == 'holdings' ) { |
313 |
if ( tab_id == 'holdings' ) { |
312 |
default_filters[branch] = '[% Branches.GetLoggedInBranchcode() | html %]'; |
314 |
default_filters[branch] = '[% Branches.GetLoggedInBranchcode() | html %]'; |
|
|
315 |
} else if ( tab_id == 'group_holdings') { |
316 |
default_filters[branch] = [ [% FOREACH branchcode IN libs_in_group %]"[% branchcode | html %]"[% UNLESS loop.last %], [% END%][% END %] ]; |
313 |
} else { |
317 |
} else { |
314 |
default_filters[branch] = { '!=': '[% Branches.GetLoggedInBranchcode() | html %]' }; |
318 |
default_filters[branch] = { '!=': '[% Branches.GetLoggedInBranchcode() | html %]' }; |
315 |
} |
319 |
} |