[Koha-cvs] koha C4/Auth.pm koha-tmpl/intranet-tmpl/npl/en/... [dev_week]

Joshua Ferraro jmf at liblime.com
Wed Mar 21 21:00:04 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Joshua Ferraro <kados>	07/03/21 20:00:04

Modified files:
	C4             : Auth.pm 
	koha-tmpl/intranet-tmpl/npl/en: auth.tmpl 

Log message:
	NEW FEATURE: Adding a branch selection to auth.tmpl. It will set
	the branch cookie rather than making the user do that manually from
	setbranchprinter.pl

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Auth.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.36.2.18.2.7&r2=1.36.2.18.2.8
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/auth.tmpl?cvsroot=koha&only_with_tag=dev_week&r1=1.2.2.1.2.2&r2=1.2.2.1.2.3

Patches:
Index: C4/Auth.pm
===================================================================
RCS file: /sources/koha/koha/C4/Auth.pm,v
retrieving revision 1.36.2.18.2.7
retrieving revision 1.36.2.18.2.8
diff -u -b -r1.36.2.18.2.7 -r1.36.2.18.2.8
--- C4/Auth.pm	21 Sep 2006 20:04:21 -0000	1.36.2.18.2.7
+++ C4/Auth.pm	21 Mar 2007 20:00:04 -0000	1.36.2.18.2.8
@@ -497,6 +497,16 @@
 	}
 
 	my $template = gettemplate($template_name, $type,$query);
+
+	# get the branchloop, which we need for authetication
+	my $branches = C4::Koha::getallbranches();
+	my @branch_loop;
+	push @branch_loop, {value => "", branchname => "All Branches", };
+	for my $branch_hash (keys %$branches) {
+    		push @branch_loop, {value => "branch: $branch_hash", branchname => $branches->{$branch_hash}->{'branchname'}, };
+	}
+	$template->param(branchloop => \@branch_loop,);
+
 	$template->param(INPUTS => \@inputs,
 				suggestion => C4::Context->preference("suggestion"),
                 virtualshelves => C4::Context->preference("virtualshelves"),

Index: koha-tmpl/intranet-tmpl/npl/en/auth.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/npl/en/Attic/auth.tmpl,v
retrieving revision 1.2.2.1.2.2
retrieving revision 1.2.2.1.2.3
diff -u -b -r1.2.2.1.2.2 -r1.2.2.1.2.3
--- koha-tmpl/intranet-tmpl/npl/en/auth.tmpl	25 Sep 2006 18:31:22 -0000	1.2.2.1.2.2
+++ koha-tmpl/intranet-tmpl/npl/en/auth.tmpl	21 Mar 2007 20:00:04 -0000	1.2.2.1.2.3
@@ -35,6 +35,14 @@
 	<caption>Log In to Koha</caption>
     <tr><th><label for="userid">Cardnumber:</label></th><td><input name="userid" id="userid" /></td></tr>
     <tr><th><label for="password">Password:</label></th><td><input type="password" name="password" id="password" /></td></tr>
+    <tr><th><label for="branch">Branch:</label></th><td>
+                <select name="limit" id="branchloop">
+                <!-- TMPL_LOOP NAME="branchloop" -->
+                <option value="<!-- TMPL_VAR NAME='value' -->"><!-- TMPL_VAR NAME='branchname' --></option>
+                <!-- /TMPL_LOOP -->
+                </select>
+
+    </tr>
     </table>
 <p><input type="submit" value="Submit" class="submit" /></p></div>
 </form>





More information about the Koha-cvs mailing list