Hey All, Is there any way to find out what branch an intranet browser is set to from any page? I tried using TMP_VAR NAME="branchname" but it is only accessible from circulation.tmpl. Thanks, Kyle
On Mon, Mar 20, 2006 at 12:57:48PM -0500, Kyle Hall wrote:
Hey All, Is there any way to find out what branch an intranet browser is set to from any page? I tried using TMP_VAR NAME="branchname" but it is only accessible from circulation.tmpl. Looks like that variable is only made available to the circulation.tmpl. IIRC Owen was requesting something like this and I believe if you update CVS that variable is available to a few more scripts. Paul, isn't there some way we can make 'branchname' a global variable?
Cheers, -- Joshua Ferraro VENDOR SERVICES FOR OPEN-SOURCE SOFTWARE President, Technology migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
Joshua Ferraro a écrit :
On Mon, Mar 20, 2006 at 12:57:48PM -0500, Kyle Hall wrote:
Hey All, Is there any way to find out what branch an intranet browser is set to from any page? I tried using TMP_VAR NAME="branchname" but it is only accessible from circulation.tmpl.
Looks like that variable is only made available to the circulation.tmpl. IIRC Owen was requesting something like this and I believe if you update CVS that variable is available to a few more scripts. Paul, isn't there some way we can make 'branchname' a global variable?
It is already. It's in uservenv. To get it, just add : $template->param(branchcode => C4::Context->userenv->{branch}); in Auth.pm somewhere around line 214 (sub get_template_and_user) -- Paul POULAIN et Henri Damien LAURENT Consultants indépendants en logiciels libres et bibliothéconomie (http://www.koha-fr.org)
It is already. It's in uservenv.
To get it, just add : $template->param(branchcode => C4::Context->userenv->{branch}); in Auth.pm somewhere around line 214 (sub get_template_and_user)
I was very excited to hear this until I realized that this change /doesn't/ allow me to show the current logged in branch. It shows me the home branch of the current logged in user. Not the same thing! -- Owen
Owen Leonard a écrit :
It is already. It's in uservenv.
To get it, just add : $template->param(branchcode => C4::Context->userenv->{branch}); in Auth.pm somewhere around line 214 (sub get_template_and_user)
I was very excited to hear this until I realized that this change /doesn't/ allow me to show the current logged in branch. It shows me the home branch of the current logged in user. Not the same thing!
Ouest Provence should send me today or tomorrow a lot of code about circ & branches. Let me summarize : - many improvements in reserve (reserve on a given item + item status shown on reserve screen) - many new features to manage transferts (see books to transfer, books that should arrive...) - define IP range for each branch : if you define an IP range for a given branch, a librarian that logs in is automatically attached to the branch where the computer is declared. Whatever it's official branch. If you let ip empty, no change. This last feature should help you maybe. I hope to be able to commit it to CVS next week. -- Paul POULAIN et Henri Damien LAURENT Consultants indépendants en logiciels libres et bibliothéconomie (http://www.koha-fr.org)
participants (4)
-
Joshua Ferraro -
Kyle Hall -
Owen Leonard -
Paul POULAIN