Bug 11369: (follow-up) generate searchid in browser.js
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 26 Feb 2014 16:14:04 +0000 (17:14 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 23:19:59 +0000 (23:19 +0000)
commitc4f17650132c9b74aa56c40a3a2bec2bdbc4477e
tree495c42c3f72d95b5b1b5ebdc5378eb9e631e1b2d
parent98edbf00cc10c908820eb1126a176ed12a04300d
Bug 11369: (follow-up) generate searchid in browser.js

The search browser feature uses nearly only the browser.js file.
That is why I propose to move the searchid generation from search.pl
to browser.js.
We then use Date.getTime() to use current timestamp as searchid,
prefixed by 'scs_' like before.

Test by using test plan of main patch :
Too many search cursor cookies overflow HTTP-header size, when
making multiple searches in the staff client

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes tests and QA script.
Tested the browse functionality in staff by using the different
options (back to results, next, previous, etc) and the batch
modifications for items. An old cookie can cause a Javascript error,
but after restarting the browser/deleting cookies it all works
correctly.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
catalogue/search.pl
koha-tmpl/intranet-tmpl/js/browser.js