Bugzilla – Attachment 25435 Details for
Bug 10858
Browse selected biblios - OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10858: FIX Only one occurrence of the biblionumbers should be stored
Bug-10858-FIX-Only-one-occurrence-of-the-biblionum.patch (text/plain), 3.55 KB, created by
Jonathan Druart
on 2014-02-19 10:41:37 UTC
(
hide
)
Description:
Bug 10858: FIX Only one occurrence of the biblionumbers should be stored
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-02-19 10:41:37 UTC
Size:
3.55 KB
patch
obsolete
>From 508636accd9b1ed01c22b72f8af1e45129d17b2b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 19 Feb 2014 11:23:41 +0100 >Subject: [PATCH] Bug 10858: FIX Only one occurrence of the biblionumbers > should be stored > >We have to remove duplicate biblionumber in the array of biblionumbers >stored in the cookie. >--- > koha-tmpl/opac-tmpl/bootstrap/js/commons.js | 4 +--- > koha-tmpl/opac-tmpl/ccsr/en/js/commons.js | 5 +---- > koha-tmpl/opac-tmpl/prog/en/js/commons.js | 5 +---- > 3 files changed, 3 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/commons.js b/koha-tmpl/opac-tmpl/bootstrap/js/commons.js >index 490bfdf..f459190 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/commons.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/commons.js >@@ -27,7 +27,7 @@ function addBibToContext( bibnum ) { > var bibnums = getContextBiblioNumbers(); > bibnums.push(bibnum); > setContextBiblioNumbers( bibnums ); >- //var store = sessionStorage.getItem( "bibs_selected" ); >+ setContextBiblioNumbers( $.uniqueArray( bibnums ) ); > } > > function delBibToContext( bibnum ) { >@@ -37,12 +37,10 @@ function delBibToContext( bibnum ) { > } > > function setContextBiblioNumbers( bibnums ) { >- //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) ); > $.cookie('bibs_selected', JSON.stringify( bibnums )); > } > > function getContextBiblioNumbers() { >- //var r = sessionStorage.getItem("bibs_selected"); > var r = $.cookie('bibs_selected'); > if ( r ) { > return JSON.parse(r); >diff --git a/koha-tmpl/opac-tmpl/ccsr/en/js/commons.js b/koha-tmpl/opac-tmpl/ccsr/en/js/commons.js >index 6661a61..eb5a6c1 100644 >--- a/koha-tmpl/opac-tmpl/ccsr/en/js/commons.js >+++ b/koha-tmpl/opac-tmpl/ccsr/en/js/commons.js >@@ -26,8 +26,7 @@ function paramOfUrl( url, param ) { > function addBibToContext( bibnum ) { > var bibnums = getContextBiblioNumbers(); > bibnums.push(bibnum); >- setContextBiblioNumbers( bibnums ); >- //var store = sessionStorage.getItem( "bibs_selected" ); >+ setContextBiblioNumbers( $.uniqueArray( bibnums ) ); > } > > function delBibToContext( bibnum ) { >@@ -37,12 +36,10 @@ function delBibToContext( bibnum ) { > } > > function setContextBiblioNumbers( bibnums ) { >- //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) ); > $.cookie('bibs_selected', JSON.stringify( bibnums )); > } > > function getContextBiblioNumbers() { >- //var r = sessionStorage.getItem("bibs_selected"); > var r = $.cookie('bibs_selected'); > if ( r ) { > return JSON.parse(r); >diff --git a/koha-tmpl/opac-tmpl/prog/en/js/commons.js b/koha-tmpl/opac-tmpl/prog/en/js/commons.js >index 6661a61..eb5a6c1 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/js/commons.js >+++ b/koha-tmpl/opac-tmpl/prog/en/js/commons.js >@@ -26,8 +26,7 @@ function paramOfUrl( url, param ) { > function addBibToContext( bibnum ) { > var bibnums = getContextBiblioNumbers(); > bibnums.push(bibnum); >- setContextBiblioNumbers( bibnums ); >- //var store = sessionStorage.getItem( "bibs_selected" ); >+ setContextBiblioNumbers( $.uniqueArray( bibnums ) ); > } > > function delBibToContext( bibnum ) { >@@ -37,12 +36,10 @@ function delBibToContext( bibnum ) { > } > > function setContextBiblioNumbers( bibnums ) { >- //sessionStorage.setItem("bibs_selected", JSON.stringify( bibnums ) ); > $.cookie('bibs_selected', JSON.stringify( bibnums )); > } > > function getContextBiblioNumbers() { >- //var r = sessionStorage.getItem("bibs_selected"); > var r = $.cookie('bibs_selected'); > if ( r ) { > return JSON.parse(r); >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10858
:
20947
|
21476
|
21483
|
21646
|
21647
|
21966
|
21967
|
23541
|
23542
|
23543
|
23633
|
23781
|
23782
|
25427
|
25428
|
25429
|
25430
|
25431
|
25432
|
25433
|
25434
|
25435
|
25436
|
25450
|
25451
|
25452
|
25453
|
25454
|
25455
|
25456
|
25457
|
25512
|
25513
|
25514
|
25643
|
25644
|
25645
|
25646
|
25647
|
25648
|
25649
|
25650
|
25651
|
25652
|
25653
|
36757
|
38033
|
38405
|
39502
|
39938
|
41838
|
41839
|
41840
|
41841
|
41842
|
44903
|
56479
|
56480
|
56481
|
56482
|
67073
|
67074
|
67075
|
67076
|
67086
|
67089
|
67090
|
67092
|
67093
|
67974
|
67975
|
67976
|
67977
|
67978
|
71218
|
71219
|
71220
|
71221
|
71222
|
71223
|
91584
|
91585
|
91586
|
91587
|
91588
|
91589
|
94833