|
Lines 357-363
Link Here
|
| 357 |
[% END %] |
357 |
[% END %] |
| 358 |
|
358 |
|
| 359 |
[% IF Koha.Preference('SeparateHoldings') %] |
359 |
[% IF Koha.Preference('SeparateHoldings') %] |
| 360 |
[% IF other_holdings_count > 0 %] |
360 |
[% IF other_holdings_count %] |
| 361 |
[% WRAPPER tab_item tabname= "otherholdings" %] |
361 |
[% WRAPPER tab_item tabname= "otherholdings" %] |
| 362 |
<span>Other holdings ([% other_holdings_count || 0 | html %])</span> |
362 |
<span>Other holdings ([% other_holdings_count || 0 | html %])</span> |
| 363 |
[% END %] |
363 |
[% END %] |
|
Lines 1763-1791
Link Here
|
| 1763 |
[% END %] |
1763 |
[% END %] |
| 1764 |
<script> |
1764 |
<script> |
| 1765 |
var browser; |
1765 |
var browser; |
| 1766 |
var group_tabs; |
|
|
| 1767 |
browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10)); |
1766 |
browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10)); |
| 1768 |
browser.show(); |
1767 |
browser.show(); |
| 1769 |
let group_tabs_array = new Array; |
|
|
| 1770 |
[% IF Koha.Preference('SeparateHoldingsByGroup') && lib_groups %] |
| 1771 |
[% FOREACH group IN lib_groups %] |
| 1772 |
group_tabs = "group_holdings_[% group.id | html %]" |
| 1773 |
group_tabs_array.push(group_tabs); |
| 1774 |
[% END %] |
| 1775 |
[% END %] |
| 1776 |
|
1768 |
|
| 1777 |
[% IF bundlesEnabled %] |
1769 |
[% IF bundlesEnabled %] |
| 1778 |
var bundle_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','bundle_tables','json') | $raw %]; |
1770 |
var bundle_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','bundle_tables','json') | $raw %]; |
| 1779 |
var bundle_lost_value = [% Koha.Preference('BundleLostValue') | html %]; |
1771 |
var bundle_lost_value = [% Koha.Preference('BundleLostValue') | html %]; |
| 1780 |
[% END %] |
1772 |
[% END %] |
| 1781 |
|
1773 |
|
| 1782 |
let items_tab_ids_default = [ |
1774 |
let items_tab_ids = [ |
| 1783 |
'holdings', |
1775 |
'holdings', |
| 1784 |
'otherholdings' |
1776 |
'otherholdings' |
|
|
1777 |
[% IF Koha.Preference('SeparateHoldingsByGroup') && lib_groups %] |
| 1778 |
[% FOREACH group IN lib_groups %] |
| 1779 |
, 'group_holdings_[% group.id | html %]' |
| 1780 |
[% END %] |
| 1781 |
[% END %] |
| 1785 |
]; |
1782 |
]; |
| 1786 |
|
|
|
| 1787 |
let items_tab_ids = items_tab_ids_default.concat(group_tabs_array); |
| 1788 |
|
| 1789 |
items_tab_ids.forEach( function( tab_id, index ) { |
1783 |
items_tab_ids.forEach( function( tab_id, index ) { |
| 1790 |
|
1784 |
|
| 1791 |
// Early return if the tab is not shown (ie. no table) |
1785 |
// Early return if the tab is not shown (ie. no table) |
| 1792 |
- |
|
|