From: Chris Nighswonger Date: Tue, 1 Apr 2008 12:51:15 +0000 (-0400) Subject: Adding PATCRD print type X-Git-Tag: v3.00.00-beta2~20 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=e5a6500c7c42a422d4c193082f651f5c0b91fe4d;p=koha.git Adding PATCRD print type Signed-off-by: Joshua Ferraro --- 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;