[Koha-cvs] koha/C4 Labels.pm [dev_week]
Mason James
szrj1m at yahoo.com
Fri Jul 6 00:20:18 CEST 2007
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Mason James <sushi> 07/07/05 22:20:18
Modified files:
C4 : Labels.pm
Log message:
get_layouts now returns active type to tmpl
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Labels.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.3.4.11&r2=1.3.4.12
Patches:
Index: Labels.pm
===================================================================
RCS file: /sources/koha/koha/C4/Labels.pm,v
retrieving revision 1.3.4.11
retrieving revision 1.3.4.12
diff -u -b -r1.3.4.11 -r1.3.4.12
--- Labels.pm 5 Jul 2007 20:57:03 -0000 1.3.4.11
+++ Labels.pm 5 Jul 2007 22:20:18 -0000 1.3.4.12
@@ -87,6 +87,15 @@
$e = { code => 'ALT', desc => "alternating labels" };
my @layouts = ( $a, $b, $c, $d, $e );
+ my $conf= get_label_options();
+ my $active_layout = $conf->{'printingtype'};
+# lop thru layout, insert selected to hash
+
+ foreach my $layout(@layouts) {
+ if ($layout->{'code'} eq $active_layout) {
+ $layout->{'active'} = 'MOO';
+ }
+ }
return @layouts;
}
More information about the Koha-cvs
mailing list