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

(-)a/koha-tmpl/intranet-tmpl/js/browser.js (-2 / +4 lines)
Lines 1-3 Link Here
1
/* global BROWSER_PREVIOUS BROWSER_NEXT BROWSER_RETURN_TO_SEARCH */
2
1
if ( KOHA === undefined ) var KOHA = {};
3
if ( KOHA === undefined ) var KOHA = {};
2
4
3
KOHA.browser = function (searchid, biblionumber) {
5
KOHA.browser = function (searchid, biblionumber) {
Lines 70-76 KOHA.browser = function (searchid, biblionumber) { Link Here
70
                if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) {
72
                if ( ev.which == 2 || ev.which == 1 && ev.ctrlKey ) {
71
                    // Middle click or ctrl + click
73
                    // Middle click or ctrl + click
72
                    ev.preventDefault();
74
                    ev.preventDefault();
73
                    var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' )
75
                    var newwindow = window.open( $(this).attr('href') + '&searchid=' + me.searchid, '_blank' );
74
                    newwindow.blur();
76
                    newwindow.blur();
75
                    window.focus();
77
                    window.focus();
76
                } else if ( ev.which == 1 ) {
78
                } else if ( ev.which == 1 ) {
Lines 102-108 KOHA.browser = function (searchid, biblionumber) { Link Here
102
                    } else {
104
                    } else {
103
                        nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>';
105
                        nextbutton = '<a href="#" id="browse-next" class="browse-button">' + BROWSER_NEXT + ' »</a>';
104
                    }
106
                    }
105
                    $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="browse-button searchwithcontext">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>');
107
                    $('#menu').before('<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' + searchURL + '" id="browse-return-to-results" class="searchwithcontext">' + BROWSER_RETURN_TO_SEARCH + '</a></div><div class="browse-prev-next">' + prevbutton + nextbutton + '</div></div></div>');
106
                    $('a#browse-previous').click(function (ev) {
108
                    $('a#browse-previous').click(function (ev) {
107
                        ev.preventDefault();
109
                        ev.preventDefault();
108
                        browseRecords(-1);
110
                        browseRecords(-1);
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-26 / +52 lines)
Lines 3673-3688 progress { Link Here
3673
}
3673
}
3674
3674
3675
#browse-return-to-results {
3675
#browse-return-to-results {
3676
    border-top-left-radius: 3px;
3676
    background-color: #E8F0F6;
3677
    border-top-right-radius: 3px;
3677
    border: 1px solid #B9D8D9;
3678
    border-bottom-width: 0;
3679
    border-top-left-radius: 5px;
3680
    border-top-right-radius: 5px;
3678
    display: block;
3681
    display: block;
3682
    padding: .5em;
3679
    text-align: center;
3683
    text-align: center;
3680
}
3684
}
3681
3685
3682
.browse-button {
3686
.browse-button {
3687
    background-color: #FFF;
3688
    border: 1px solid #B9D8D9;
3683
    color: #004D99;
3689
    color: #004D99;
3684
    display: inline-block;
3690
    display: block;
3691
    overflow: hidden;
3685
    padding: .4em .6em;
3692
    padding: .4em .6em;
3693
    text-align: center;
3694
    white-space: nowrap;
3695
    width: 100%;
3686
3696
3687
    &:hover {
3697
    &:hover {
3688
        background: #FAFAFA;
3698
        background: #FAFAFA;
Lines 3736-3769 span { Link Here
3736
    }
3746
    }
3737
}
3747
}
3738
3748
3739
.browse-label,
3740
.browse-prev-next {
3741
    border: 1px solid #B9D8D9;
3742
}
3743
3744
.browse-label {
3745
    background-color: #E8F0F6;
3746
    border-top-left-radius: 5px;
3747
    border-top-right-radius: 5px;
3748
}
3749
3750
.browse-prev-next {
3751
    border-bottom-left-radius: 5px;
3752
    border-bottom-right-radius: 5px;
3753
    border-top-width: 0;
3754
}
3755
3756
#browse-previous {
3749
#browse-previous {
3757
    border-bottom-left-radius: 5px;
3750
    border-bottom-width: 0;
3758
    border-right: 1px solid #B9D8D9;
3759
    padding-right: 1em;
3760
}
3751
}
3761
3752
3762
#browse-next {
3753
#browse-next {
3763
    border-bottom-right-radius: 5px;
3754
    border-bottom-right-radius: 5px;
3764
    border-top-width: 0;
3755
    border-bottom-left-radius: 5px;
3765
    float: right;
3766
    padding-right: 1em;
3767
}
3756
}
3768
3757
3769
.loading-overlay {
3758
.loading-overlay {
Lines 4396-4401 span { Link Here
4396
    }
4385
    }
4397
}
4386
}
4398
4387
4388
@media only screen and ( max-width: 768px ) {
4389
    .browse-button {
4390
        display: inline-block;
4391
        width: 50%;
4392
    }
4393
4394
    #browse-previous {
4395
        border-bottom-left-radius: 5px;
4396
        border-bottom-width: 1px;
4397
        border-right-width: 0;
4398
    }
4399
4400
    #browse-next {
4401
        border-bottom-left-radius: 0;
4402
        border-bottom-right-radius: 5px;
4403
    }
4404
}
4405
4399
@media (min-width: 800px) {
4406
@media (min-width: 800px) {
4400
    #helper {
4407
    #helper {
4401
        i {
4408
        i {
Lines 4423-4425 span { Link Here
4423
div#makechart ol li {
4430
div#makechart ol li {
4424
    list-style: none;
4431
    list-style: none;
4425
}
4432
}
4433
4434
@media only screen and ( min-width: 1200px ) {
4435
    .browse-button {
4436
        display: inline-block;
4437
        width: 50%;
4438
    }
4439
4440
    #browse-previous {
4441
        border-bottom-left-radius: 5px;
4442
        border-bottom-width: 1px;
4443
        border-right-width: 0;
4444
    }
4445
4446
    #browse-next {
4447
        border-bottom-left-radius: 0;
4448
        border-bottom-right-radius: 5px;
4449
        text-align: right;
4450
    }
4451
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +1 lines)
Lines 627-633 Link Here
627
627
628
        <div class="col-sm-2 col-sm-pull-10">
628
        <div class="col-sm-2 col-sm-pull-10">
629
            <aside>
629
            <aside>
630
                [% INCLUDE 'admin-menu.inc' %]
630
                [% INCLUDE 'facets.inc' %]
631
            </aside>
631
            </aside>
632
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
632
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
633
     </div> <!-- /.row -->
633
     </div> <!-- /.row -->
634
- 

Return to bug 21304