[Koha-cvs] koha/acqui newbasket2.pl [dev_week]

Chris Cormack crc at liblime.com
Mon Jun 18 23:54:11 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Chris Cormack <rangi>	07/06/18 21:54:11

Modified files:
	acqui          : newbasket2.pl 

Log message:
	Passsing through the isbn to the template

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui/newbasket2.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.15.2.1.2.1&r2=1.15.2.1.2.2

Patches:
Index: newbasket2.pl
===================================================================
RCS file: /sources/koha/koha/acqui/Attic/newbasket2.pl,v
retrieving revision 1.15.2.1.2.1
retrieving revision 1.15.2.1.2.2
diff -u -b -r1.15.2.1.2.1 -r1.15.2.1.2.2
--- newbasket2.pl	3 Dec 2006 21:04:52 -0000	1.15.2.1.2.1
+++ newbasket2.pl	18 Jun 2007 21:54:11 -0000	1.15.2.1.2.2
@@ -144,75 +144,6 @@
 	$lineres{type}=$type;
 
 	my ($count,$lcount,$nacount,$fcount,$scount,$lostcount,$mending,$transit)=C4::Search::itemcount($env,$result->{'biblionumber'},$type);
-	if ($nacount > 0){
-		$location .= "On Loan";
-		if ($nacount >1 ){
-			$location .= " ($nacount)";
-		}
-		$location.=" ";
-		$lineres{'on-loan-p'}=1;
-	}
-	if ($lcount > 0){
-		$location .= "Levin";
-		$location_only .= "Levin";
-		if ($lcount >1 ){
-			$location .= " ($lcount)";
-			$location_only .= " ($lcount)";
-		}
-		$location.=" ";
-		$location_only.=" ";
-	}
-	if ($fcount > 0){
-		$location .= "Foxton";
-		$location_only .= "Foxton";
-		if ($fcount >1 ){
-			$location .= " ($fcount)";
-			$location_only .= " ($fcount)";
-		}
-		$location.=" ";
-		$location_only.=" ";
-	}
-	if ($scount > 0){
-		$location .= "Shannon";
-		$location_only .= "Shannon";
-		if ($scount >1 ){
-			$location .= " ($scount)";
-			$location_only .= " ($scount)";
-		}
-		$location.=" ";
-		$location_only.=" ";
-	}
-	if ($lostcount > 0){
-		$location .= "Lost";
-		if ($lostcount >1 ){
-			$location .= " ($lostcount)";
-		}
-		$location.=" ";
-		$lineres{'lost-p'}=1;
-	}
-	if ($mending > 0){
-		$location .= "Mending";
-		if ($mending >1 ){
-			$location .= " ($mending)";
-		}
-		$location.=" ";
-		$lineres{'mending-p'}=1;
-	}
-	if ($transit > 0){
-		$location .= "In Transit";
-		if ($transit >1 ){
-			$location .= " ($transit)";
-		}
-		$location.=" ";
-		$lineres{'in-transit-p'}=1;
-	}
-	if ($colour == 1){
-		$toggle='#ffffcc';
-		$colour = 0;
-	} else{
-		$colour = 1;
-		$toggle='white';
-	}
 	$lineres{author2}=$author2;
 	$lineres{title2}=$title2;
 	$lineres{copyright}=$result->{'copyrightdate'};
@@ -222,6 +153,7 @@
 	$lineres{biblionumber}=$result->{biblionumber};
 	$lineres{title}=$result->{title};
 	$lineres{author}=$result->{author};
+	$lineres{isbn}=$result->{'isbn'};
 	$lineres{colour}=$colour;
 	$lineres{toggle}=$toggle;
 	$lineres{itemcount}=$count;





More information about the Koha-cvs mailing list