[Koha-cvs] CVS: koha/acqui.simple additem.pl,1.20,1.21
Paul POULAIN
tipaul at users.sourceforge.net
Mon Jan 12 18:00:11 CET 2004
Update of /cvsroot/koha/koha/acqui.simple
In directory sc8-pr-cvs1:/tmp/cvs-serv20201
Modified Files:
additem.pl
Log Message:
synch'ing with rel_2_0
Index: additem.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/additem.pl,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** additem.pl 24 Nov 2003 17:12:41 -0000 1.20
--- additem.pl 12 Jan 2004 17:00:09 -0000 1.21
***************
*** 181,185 ****
my @loop_data =();
my $i=0;
! my $authorised_values_sth = $dbh->prepare("select authorised_value,lib from authorised_values where category=? order by authorised_value");
foreach my $tag (sort keys %{$tagslib}) {
--- 181,185 ----
my @loop_data =();
my $i=0;
! my $authorised_values_sth = $dbh->prepare("select authorised_value,lib from authorised_values where category=? order by lib");
foreach my $tag (sort keys %{$tagslib}) {
***************
*** 204,208 ****
#---- branch
if ($tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) {
! my $sth=$dbh->prepare("select branchcode,branchname from branches");
$sth->execute;
push @authorised_values, "" unless ($tagslib->{$tag}->{$subfield}->{mandatory});
--- 204,208 ----
#---- branch
if ($tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) {
! my $sth=$dbh->prepare("select branchcode,branchname from branches order by branchname");
$sth->execute;
push @authorised_values, "" unless ($tagslib->{$tag}->{$subfield}->{mandatory});
***************
*** 213,217 ****
#----- itemtypes
} elsif ($tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes") {
! my $sth=$dbh->prepare("select itemtype,description from itemtypes");
$sth->execute;
push @authorised_values, "" unless ($tagslib->{$tag}->{$subfield}->{mandatory});
--- 213,217 ----
#----- itemtypes
} elsif ($tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes") {
! my $sth=$dbh->prepare("select itemtype,description from itemtypes order by description");
$sth->execute;
push @authorised_values, "" unless ($tagslib->{$tag}->{$subfield}->{mandatory});
***************
*** 275,277 ****
$template->param($error => 1);
}
! output_html_with_http_headers $input, $cookie, $template->output;
--- 275,277 ----
$template->param($error => 1);
}
! output_html_with_http_headers $input, $cookie, $template->output;
\ No newline at end of file
More information about the Koha-cvs
mailing list