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

(-)a/koha-tmpl/opac-tmpl/ccsr/en/css/opac.css (-1 / +19 lines)
Lines 773-779 a.tag_add { Link Here
773
 font-size : 100%;
773
 font-size : 100%;
774
      font-weight : bold;
774
      font-weight : bold;
775
    padding-left : 31px;
775
    padding-left : 31px;
776
   color : #336699;
776
   color : #007FAE;
777
       cursor : pointer;
777
       cursor : pointer;
778
}
778
}
779
.searchresults a.highlight_toggle {
779
.searchresults a.highlight_toggle {
Lines 1149-1154 a.cancel { Link Here
1149
       font-size: 90%;
1149
       font-size: 90%;
1150
}
1150
}
1151
1151
1152
.addto {
1153
    white-space: nowrap;
1154
}
1155
1152
.cartlist {
1156
.cartlist {
1153
 margin-top : 5px;
1157
 margin-top : 5px;
1154
}
1158
}
Lines 2865-2867 a.reviewlink,a.reviewlink:visited { Link Here
2865
    display: block;
2869
    display: block;
2866
    overflow: auto;
2870
    overflow: auto;
2867
}
2871
}
2872
2873
.details_link {
2874
    display : none;
2875
}
2876
2877
.details_link a {
2878
    display: inline-block;
2879
    padding : 5px 24px;
2880
    text-decoration: none;
2881
    background-image: url("../../images/sprite.png"); /* Print */
2882
    background-position: -5px -1138px;
2883
    background-repeat: no-repeat;
2884
    white-space: nowrap;
2885
}
(-)a/koha-tmpl/opac-tmpl/ccsr/en/js/commons.js (+71 lines)
Line 0 Link Here
1
// Extends jQuery API
2
// http://www.wskidmore.com/downloads/jquery-uniqueArray.min.js
3
jQuery.extend({uniqueArray:function(e){if($.isArray(e)){var c={};var a,b;for(b=0,a=e.length;b<a;b++){var d=e[b].toString();if(c[d]){e.splice(b,1);a--;b--}else{c[d]=true}}}return(e)}});
4
5
function removeByValue(arr, val) {
6
    for(var i=0; i<arr.length; i++) {
7
        if(arr[i] == val) {
8
            arr.splice(i, 1);
9
            break;
10
        }
11
    }
12
}
13
14
function paramOfUrl( url, param ) {
15
    param = param.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
16
    var regexS = "[\\?&]"+param+"=([^&#]*)";
17
    var regex = new RegExp( regexS );
18
    var results = regex.exec( url );
19
    if( results == null ) {
20
        return "";
21
    } else {
22
        return results[1];
23
    }
24
}
25
26
function addBibToContext( bibnum ) {
27
    var bibnums = getContextBiblioNumbers();
28
    bibnums.push(bibnum);
29
    setContextBiblioNumbers( bibnums );
30
    //var store = sessionStorage.getItem( "bibs_selected" );
31
}
32
33
function delBibToContext( bibnum ) {
34
    var bibnums = getContextBiblioNumbers();
35
    removeByValue( bibnums, bibnum );
36
    setContextBiblioNumbers( $.uniqueArray( bibnums ) );
37
}
38
39
function setContextBiblioNumbers( bibnums ) {
40
    //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) );
41
    $.cookie('bibs_selected', JSON.stringify( bibnums ));
42
}
43
44
function getContextBiblioNumbers() {
45
    //var r = sessionStorage.getItem("bibs_selected");
46
    var r = $.cookie('bibs_selected');
47
    if ( r ) {
48
        return JSON.parse(r);
49
    }
50
    r = new Array();
51
    return r;
52
}
53
54
function resetSearchContext() {
55
    setContextBiblioNumbers( new Array() );
56
}
57
58
$(document).ready(function(){
59
    // forms with action leading to search
60
    $("form[action*='opac-search.pl']").submit(function(){
61
        resetSearchContext();
62
    });
63
    // any link to launch a search except navigation links
64
    $("[href*='opac-search.pl?']").not(".nav").not('.searchwithcontext').click(function(){
65
        resetSearchContext();
66
    });
67
    // any link to a detail page from the results page.
68
    $("#bookbag_form a[href*='opac-detail.pl?']").click(function(){
69
        resetSearchContext();
70
    });
71
});
(-)a/koha-tmpl/opac-tmpl/ccsr/en/lib/jquery/plugins/jquery.cookie.min.js (+1 lines)
Line 0 Link Here
1
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};
(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (-1 / +18 lines)
Lines 833-839 a.tag_add { Link Here
833
	font-size : 100%;
833
	font-size : 100%;
834
	font-weight : bold;
834
	font-weight : bold;
835
	padding-left : 31px;
835
	padding-left : 31px;
836
	color : #336699;
836
    color : #006699;
837
	cursor : pointer;
837
	cursor : pointer;
838
}
838
}
839
.searchresults a.highlight_toggle {
839
.searchresults a.highlight_toggle {
Lines 1210-1215 a.cancel { Link Here
1210
	font-size: 90%;
1210
	font-size: 90%;
1211
}
1211
}
1212
1212
1213
.addto {
1214
    white-space: nowrap;
1215
}
1216
1213
.cartlist {
1217
.cartlist {
1214
	margin-top : 5px;
1218
	margin-top : 5px;
1215
}
1219
}
Lines 3074-3076 padding: 0.1em 0; Link Here
3074
    width: 35%;
3078
    width: 35%;
3075
    font-size: 111%;
3079
    font-size: 111%;
3076
}
3080
}
3081
3082
.details_link {
3083
    display : none;
3084
}
3085
.details_link a {
3086
    display: inline-block;
3087
    padding : 5px 24px;
3088
    text-decoration: none;
3089
    background-image: url("../../images/sprite.png"); /* Print */
3090
    background-position: -5px -1138px;
3091
    background-repeat: no-repeat;
3092
    white-space: nowrap;
3093
}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-1 / +1 lines)
Lines 529-535 $(document).ready(function(){ Link Here
529
                              Tag status here.
529
                              Tag status here.
530
                            </span>
530
                            </span>
531
            [% END %]
531
            [% END %]
532
            <span class="details_link" style="display:none" ><a href="#">Browse selected biblios &gt;&gt;</a></span>
532
            <span class="details_link"><a href="#">Browse selected records</a></span>
533
        </div>
533
        </div>
534
534
535
        </td></tr>
535
        </td></tr>

Return to bug 10858