[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/C4 Authorities.pm,1.2,1.3
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/C4 Authorities.pm,1.2,1.3 |
Date: |
Wed, 02 Jul 2003 05:49:45 -0700 |
Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1:/tmp/cvs-serv16669/C4
Modified Files:
Authorities.pm
Log Message:
fixing bug in thesaurus entry modification
Index: Authorities.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Authorities.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Authorities.pm 10 Dec 2002 13:30:03 -0000 1.2
--- Authorities.pm 2 Jul 2003 12:49:43 -0000 1.3
***************
*** 52,57 ****
&searchauthority
&delauthority
);
- # FIXME - This is never used
=item newauthority
--- 52,57 ----
&searchauthority
&delauthority
+ &modauthority
);
=item newauthority
***************
*** 134,137 ****
--- 134,154 ----
}
+ =item ModAuthority
+
+ $id = &ModAuthority($dbh,$id,$freelib);
+
+ modify a free lib
+
+ C<$dbh> is a DBI::db handle for the Koha database.
+ C<$id> is the entry id
+ C<$freelib> is the new freelib
+
+ =cut
+ sub modauthority {
+ my ($dbh,$id,$freelib) = @_;
+ my $sth = $dbh->prepare("update bibliothesaurus set freelib=? where
id=?");
+ $sth->execute($freelib,$id);
+ }
+
=item SearchAuthority
***************
*** 162,166 ****
# $query .= " and freelib like \"$searchstring%\"" if ($searchstring);
$query .= " order by category,freelib limit $offset,".($pagesize*4);
! # warn "q : $query";
my $sth=$dbh->prepare($query);
$sth->execute;
--- 179,183 ----
# $query .= " and freelib like \"$searchstring%\"" if ($searchstring);
$query .= " order by category,freelib limit $offset,".($pagesize*4);
! warn "q : $query";
my $sth=$dbh->prepare($query);
$sth->execute;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/C4 Authorities.pm,1.2,1.3,
Paul POULAIN <=