[Koha-cvs] koha/bookshelves addbookbybiblionumber.pl [rel_3_0]
Antoine Farnault
antoine at koha-fr.org
Wed Aug 30 18:13:54 CEST 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/08/30 16:13:54
Modified files:
bookshelves : addbookbybiblionumber.pl
Log message:
correct an error in the "if condition".
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/bookshelves/addbookbybiblionumber.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.4.2.1&r2=1.4.2.2
Patches:
Index: addbookbybiblionumber.pl
===================================================================
RCS file: /sources/koha/koha/bookshelves/addbookbybiblionumber.pl,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -u -b -r1.4.2.1 -r1.4.2.2
--- addbookbybiblionumber.pl 30 Aug 2006 15:59:14 -0000 1.4.2.1
+++ addbookbybiblionumber.pl 30 Aug 2006 16:13:54 -0000 1.4.2.2
@@ -20,7 +20,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: addbookbybiblionumber.pl,v 1.4.2.1 2006/08/30 15:59:14 toins Exp $
+# $Id: addbookbybiblionumber.pl,v 1.4.2.2 2006/08/30 16:13:54 toins Exp $
=head1 NAME
@@ -86,11 +86,11 @@
$shelfnumber = AddShelf($newbookshelf,$loggedinuser,$category) if $newbookshelf;
-if ($shelfnumber && ($shelfnumber != -1)) { # this shelf doesn't already exist.
+if ($shelfnumber && ($shelfnumber == -1)) { # this shelf already exist.
&AddToShelfFromBiblio($biblionumber, $shelfnumber);
print "Content-Type: text/html\n\n<html><body onload=\"window.close()\"></body></html>";
exit;
-} else { # this shelf already exist.
+} else { # this shelf doesn't already exist.
my ( $bibliocount, @biblios ) = getbiblio($biblionumber);
my ($shelflist) = GetShelves($loggedinuser,3);
@@ -123,6 +123,9 @@
}
# $Log: addbookbybiblionumber.pl,v $
+# Revision 1.4.2.2 2006/08/30 16:13:54 toins
+# correct an error in the "if condition".
+#
# Revision 1.4.2.1 2006/08/30 15:59:14 toins
# Code cleaned according to coding guide lines.
#
More information about the Koha-cvs
mailing list