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 3714-3729 progress { Link Here
3714
}
3714
}
3715
3715
3716
#browse-return-to-results {
3716
#browse-return-to-results {
3717
    border-top-left-radius: 3px;
3717
    background-color: #E8F0F6;
3718
    border-top-right-radius: 3px;
3718
    border: 1px solid #B9D8D9;
3719
    border-bottom-width: 0;
3720
    border-top-left-radius: 5px;
3721
    border-top-right-radius: 5px;
3719
    display: block;
3722
    display: block;
3723
    padding: .5em;
3720
    text-align: center;
3724
    text-align: center;
3721
}
3725
}
3722
3726
3723
.browse-button {
3727
.browse-button {
3728
    background-color: #FFF;
3729
    border: 1px solid #B9D8D9;
3724
    color: #004D99;
3730
    color: #004D99;
3725
    display: inline-block;
3731
    display: block;
3732
    overflow: hidden;
3726
    padding: .4em .6em;
3733
    padding: .4em .6em;
3734
    text-align: center;
3735
    white-space: nowrap;
3736
    width: 100%;
3727
3737
3728
    &:hover {
3738
    &:hover {
3729
        background: #FAFAFA;
3739
        background: #FAFAFA;
Lines 3777-3810 span { Link Here
3777
    }
3787
    }
3778
}
3788
}
3779
3789
3780
.browse-label,
3781
.browse-prev-next {
3782
    border: 1px solid #B9D8D9;
3783
}
3784
3785
.browse-label {
3786
    background-color: #E8F0F6;
3787
    border-top-left-radius: 5px;
3788
    border-top-right-radius: 5px;
3789
}
3790
3791
.browse-prev-next {
3792
    border-bottom-left-radius: 5px;
3793
    border-bottom-right-radius: 5px;
3794
    border-top-width: 0;
3795
}
3796
3797
#browse-previous {
3790
#browse-previous {
3798
    border-bottom-left-radius: 5px;
3791
    border-bottom-width: 0;
3799
    border-right: 1px solid #B9D8D9;
3800
    padding-right: 1em;
3801
}
3792
}
3802
3793
3803
#browse-next {
3794
#browse-next {
3804
    border-bottom-right-radius: 5px;
3795
    border-bottom-right-radius: 5px;
3805
    border-top-width: 0;
3796
    border-bottom-left-radius: 5px;
3806
    float: right;
3807
    padding-right: 1em;
3808
}
3797
}
3809
3798
3810
.loading-overlay {
3799
.loading-overlay {
Lines 4444-4449 span { Link Here
4444
    }
4433
    }
4445
}
4434
}
4446
4435
4436
@media only screen and ( max-width: 768px ) {
4437
    .browse-button {
4438
        display: inline-block;
4439
        width: 50%;
4440
    }
4441
4442
    #browse-previous {
4443
        border-bottom-left-radius: 5px;
4444
        border-bottom-width: 1px;
4445
        border-right-width: 0;
4446
    }
4447
4448
    #browse-next {
4449
        border-bottom-left-radius: 0;
4450
        border-bottom-right-radius: 5px;
4451
    }
4452
}
4453
4447
@media (min-width: 800px) {
4454
@media (min-width: 800px) {
4448
    #helper {
4455
    #helper {
4449
        i {
4456
        i {
Lines 4471-4473 span { Link Here
4471
div#makechart ol li {
4478
div#makechart ol li {
4472
    list-style: none;
4479
    list-style: none;
4473
}
4480
}
4481
4482
@media only screen and ( min-width: 1200px ) {
4483
    .browse-button {
4484
        display: inline-block;
4485
        width: 50%;
4486
    }
4487
4488
    #browse-previous {
4489
        border-bottom-left-radius: 5px;
4490
        border-bottom-width: 1px;
4491
        border-right-width: 0;
4492
    }
4493
4494
    #browse-next {
4495
        border-bottom-left-radius: 0;
4496
        border-bottom-right-radius: 5px;
4497
        text-align: right;
4498
    }
4499
}
(-)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