Cleanup selectbranchprinter.pl and .tmpl
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 29 May 2009 21:09:34 +0000 (16:09 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:06 +0000 (23:19 +0200)
commit1798231d48e064fa26d8c85c8c94cc1ab00a7b51
tree6c277ef31174958b2bec5b57b432bc8bd6953205
parent934afc4f011482c864514a2af126e94bcb4c98cf
Cleanup selectbranchprinter.pl and .tmpl

Use GetBranchesLoop and warnings.  Remove unused code.  Moved the Get's to after auth.
I begin to show how this script will use referer to redirect back to the sending
page upon successful change of branch or printer (see hidden div and recycle_loop).

Indicator for singleBranchMode added.
Also added another helper function for GetBranchesLoop, namely mybranch.  This
encapsulates the logic for finding an intelligent default selection, which is
almost always desirable.

This does not resolve bug 2426, but is work in that direction.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Branch.pm
circ/selectbranchprinter.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/selectbranchprinter.tmpl