From e5a6500c7c42a422d4c193082f651f5c0b91fe4d Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Tue, 1 Apr 2008 08:51:15 -0400 Subject: [PATCH] Adding PATCRD print type Signed-off-by: Joshua Ferraro --- C4/Labels.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Labels.pm b/C4/Labels.pm index ae3e169395..320fdcf4e2 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -150,12 +150,13 @@ sub delete_layout { sub get_printingtypes { my ($layout_id) = @_; my @printtypes; - +# FIXME: hard coded print types push( @printtypes, { code => 'BAR', desc => "barcode" } ); push( @printtypes, { code => 'BIB', desc => "biblio" } ); push( @printtypes, { code => 'BARBIB', desc => "barcode / biblio" } ); push( @printtypes, { code => 'BIBBAR', desc => "biblio / barcode" } ); push( @printtypes, { code => 'ALT', desc => "alternating labels" } ); + push( @printtypes, { code => 'PATCRD', desc => "patron cards" } ); my $conf = get_layout($layout_id); my $active_printtype = $conf->{'printingtype'}; @@ -821,7 +822,8 @@ sub GetPatronCardItems { my @resultsloop; my $dbh = C4::Context->dbh; - my $query = "SELECT * FROM patroncards WHERE batch_id = ? ORDER BY borrowernumber"; +# my $query = "SELECT * FROM patroncards WHERE batch_id = ? ORDER BY borrowernumber"; + my $query = "SELECT * FROM patroncards WHERE batch_id = ? ORDER BY cardid"; my $sth = $dbh->prepare($query); $sth->execute($batch_id); my $cardno = 1; -- 2.39.5