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 3617-3632 progress { Link Here
3617
}
3617
}
3618
3618
3619
#browse-return-to-results {
3619
#browse-return-to-results {
3620
    border-top-left-radius: 3px;
3620
    background-color: #E8F0F6;
3621
    border-top-right-radius: 3px;
3621
    border: 1px solid #B9D8D9;
3622
    border-bottom-width: 0;
3623
    border-top-left-radius: 5px;
3624
    border-top-right-radius: 5px;
3622
    display: block;
3625
    display: block;
3626
    padding: .5em;
3623
    text-align: center;
3627
    text-align: center;
3624
}
3628
}
3625
3629
3626
.browse-button {
3630
.browse-button {
3631
    background-color: #FFF;
3632
    border: 1px solid #B9D8D9;
3627
    color: #004D99;
3633
    color: #004D99;
3628
    display: inline-block;
3634
    display: block;
3635
    overflow: hidden;
3629
    padding: .4em .6em;
3636
    padding: .4em .6em;
3637
    text-align: center;
3638
    white-space: nowrap;
3639
    width: 100%;
3630
3640
3631
    &:hover {
3641
    &:hover {
3632
        background: #FAFAFA;
3642
        background: #FAFAFA;
Lines 3680-3713 span { Link Here
3680
    }
3690
    }
3681
}
3691
}
3682
3692
3683
.browse-label,
3684
.browse-prev-next {
3685
    border: 1px solid #B9D8D9;
3686
}
3687
3688
.browse-label {
3689
    background-color: #E8F0F6;
3690
    border-top-left-radius: 5px;
3691
    border-top-right-radius: 5px;
3692
}
3693
3694
.browse-prev-next {
3695
    border-bottom-left-radius: 5px;
3696
    border-bottom-right-radius: 5px;
3697
    border-top-width: 0;
3698
}
3699
3700
#browse-previous {
3693
#browse-previous {
3701
    border-bottom-left-radius: 5px;
3694
    border-bottom-width: 0;
3702
    border-right: 1px solid #B9D8D9;
3703
    padding-right: 1em;
3704
}
3695
}
3705
3696
3706
#browse-next {
3697
#browse-next {
3707
    border-bottom-right-radius: 5px;
3698
    border-bottom-right-radius: 5px;
3708
    border-top-width: 0;
3699
    border-bottom-left-radius: 5px;
3709
    float: right;
3710
    padding-right: 1em;
3711
}
3700
}
3712
3701
3713
.loading-overlay {
3702
.loading-overlay {
Lines 4360-4365 span { Link Here
4360
    }
4349
    }
4361
}
4350
}
4362
4351
4352
@media only screen and ( max-width: 768px ) {
4353
    .browse-button {
4354
        display: inline-block;
4355
        width: 50%;
4356
    }
4357
4358
    #browse-previous {
4359
        border-bottom-left-radius: 5px;
4360
        border-bottom-width: 1px;
4361
        border-right-width: 0;
4362
    }
4363
4364
    #browse-next {
4365
        border-bottom-left-radius: 0;
4366
        border-bottom-right-radius: 5px;
4367
    }
4368
}
4369
4363
@media (min-width: 800px) {
4370
@media (min-width: 800px) {
4364
    #helper {
4371
    #helper {
4365
        i {
4372
        i {
Lines 4387-4389 span { Link Here
4387
div#makechart ol li {
4394
div#makechart ol li {
4388
    list-style: none;
4395
    list-style: none;
4389
}
4396
}
4397
4398
@media only screen and ( min-width: 1200px ) {
4399
    .browse-button {
4400
        display: inline-block;
4401
        width: 50%;
4402
    }
4403
4404
    #browse-previous {
4405
        border-bottom-left-radius: 5px;
4406
        border-bottom-width: 1px;
4407
        border-right-width: 0;
4408
    }
4409
4410
    #browse-next {
4411
        border-bottom-left-radius: 0;
4412
        border-bottom-right-radius: 5px;
4413
        text-align: right;
4414
    }
4415
}
(-)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