Bug 8028 - Make table collapsing on parcel.pl sticky
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 28 Mar 2012 17:00:54 +0000 (13:00 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 12 Sep 2012 15:26:11 +0000 (17:26 +0200)
commit1bfbf707de40d90f8ffe85b9c2e32a33b95600ab
tree916bec2c96103093919df3cdc5a444e0c3441162
parent699e2955ff5a9e585df1870191977be358e576a3
Bug 8028 - Make table collapsing on parcel.pl sticky

The tables on parcel.pl default to show only the first
five items in the table, and librarians must click the
a link to display all the items. Every time the page is
reloaded, the table gets re-collapsed, and the librarian
must again click the link. Parcel.pl should remember
which way the table is set and keep it that way until
it is changed again.

This is accomplished by adding two cookies for this page,
one for each table. This cookie stores the state of the
table ( collapsed, or uncollapsed ) and sets each table
to the correct state on each page load.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Works as expected.

But a "funny" behaviour, if I have only 1 item (or < 6):
  All 1 items are displayed. Click here to show only the first 5 items.
and
  Only the first 5 items are displayed. Click here to show all 1 items.
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt