View | Details | Raw Unified | Return to bug 33422
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/erm-search.inc (-3 / +3 lines)
Lines 41-53 Link Here
41
41
42
    <ul class="nav nav-tabs" role="tablist">
42
    <ul class="nav nav-tabs" role="tablist">
43
        <li role="presentation" class="active">
43
        <li role="presentation" class="active">
44
            <a title="Search agreements" href="#agreement_search" aria-controls="agreement_search" role="tab" aria-expanded="true" data-toggle="tab" class="keep_text"><i class="fa fa-check-circle-o"></i> <span class="tab-title">Search agreements</span></a>
44
            <a id="agreement_search_tab" title="Search agreements" href="#agreement_search" aria-controls="agreement_search" role="tab" aria-expanded="true" data-toggle="tab" class="keep_text"><i class="fa fa-check-circle-o"></i> <span class="tab-title">Search agreements</span></a>
45
        </li>
45
        </li>
46
        <li role="presentation">
46
        <li role="presentation">
47
            <a title="Search packages" href="#package_search" aria-controls="package_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-archive"></i> <span class="tab-title">Search packages</span></a>
47
            <a id="package_search_tab" title="Search packages" href="#package_search" aria-controls="package_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-archive"></i> <span class="tab-title">Search packages</span></a>
48
        </li>
48
        </li>
49
        <li role="presentation">
49
        <li role="presentation">
50
            <a title="Search titles" href="#title_search" aria-controls="title_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-sort-alpha-asc"></i> <span class="tab-title">Search titles</span></a>
50
            <a id="title_search_tab" title="Search titles" href="#title_search" aria-controls="title_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-sort-alpha-asc"></i> <span class="tab-title">Search titles</span></a>
51
        </li>
51
        </li>
52
    </ul>
52
    </ul>
53
</div><!-- /#header_search -->
53
</div><!-- /#header_search -->
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts (-5 / +6 lines)
Lines 62-74 router.beforeEach((to, from) => { Link Here
62
    removeMessages(); // This will actually flag the messages as displayed already
62
    removeMessages(); // This will actually flag the messages as displayed already
63
});
63
});
64
router.afterEach((to, from) => {
64
router.afterEach((to, from) => {
65
    let tab_id = 1; // Agreements
65
    let tab_id = 'agreement'; // Agreements
66
66
    if (to.path.match(/\/erm\/eholdings\/local\/packages/)) {
67
    if (to.path.match(/\/erm\/eholdings\/local\/packages/)) {
67
        tab_id = 2;
68
        tab_id = 'package';
68
    } else if (to.path.match(/\/erm\/eholdings\/local\/titles/)) {
69
    } else if (to.path.match(/\/erm\/eholdings\/local\/titles/)) {
69
        tab_id = 3;
70
        tab_id = 'title';
70
    }
71
    }
71
    let node = document.getElementById("ui-id-" + tab_id);
72
    let node = document.getElementById(`${tab_id}_search_tab`);
73
72
    if (node) {
74
    if (node) {
73
        node.click();
75
        node.click();
74
    }
76
    }
75
- 

Return to bug 33422