Lines 26-33
function paramOfUrl( url, param ) {
Link Here
|
26 |
function addBibToContext( bibnum ) { |
26 |
function addBibToContext( bibnum ) { |
27 |
var bibnums = getContextBiblioNumbers(); |
27 |
var bibnums = getContextBiblioNumbers(); |
28 |
bibnums.push(bibnum); |
28 |
bibnums.push(bibnum); |
29 |
setContextBiblioNumbers( bibnums ); |
29 |
setContextBiblioNumbers( $.uniqueArray( bibnums ) ); |
30 |
//var store = sessionStorage.getItem( "bibs_selected" ); |
|
|
31 |
} |
30 |
} |
32 |
|
31 |
|
33 |
function delBibToContext( bibnum ) { |
32 |
function delBibToContext( bibnum ) { |
Lines 37-48
function delBibToContext( bibnum ) {
Link Here
|
37 |
} |
36 |
} |
38 |
|
37 |
|
39 |
function setContextBiblioNumbers( bibnums ) { |
38 |
function setContextBiblioNumbers( bibnums ) { |
40 |
//sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) ); |
|
|
41 |
$.cookie('bibs_selected', JSON.stringify( bibnums )); |
39 |
$.cookie('bibs_selected', JSON.stringify( bibnums )); |
42 |
} |
40 |
} |
43 |
|
41 |
|
44 |
function getContextBiblioNumbers() { |
42 |
function getContextBiblioNumbers() { |
45 |
//var r = sessionStorage.getItem("bibs_selected"); |
|
|
46 |
var r = $.cookie('bibs_selected'); |
43 |
var r = $.cookie('bibs_selected'); |
47 |
if ( r ) { |
44 |
if ( r ) { |
48 |
return JSON.parse(r); |
45 |
return JSON.parse(r); |
49 |
- |
|
|