Cleanup selectbranchprinter.pl and .tmpl
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 29 May 2009 21:09:34 +0000 (16:09 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 5 Jun 2009 22:30:52 +0000 (17:30 -0500)
commit4677ae739015f062ad2db5f9aa49b5c05628ec5f
treecb5071220064880f7a12b8bbee24bb9f0df9c15b
parent7bebd743d017442fce72412f55c74fa9da9c8cea
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>
C4/Branch.pm
circ/selectbranchprinter.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/selectbranchprinter.tmpl