[open-ils-commits] r19009 - trunk/Open-ILS/src/perlmods/OpenILS/WWW (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 17 10:17:45 EST 2010


Author: dbs
Date: 2010-12-17 10:17:43 -0500 (Fri, 17 Dec 2010)
New Revision: 19009

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
Log:
Do an equality test, instead of assigning a value

Thanks to Bill Erickson for catching this; this fixes a bug where
SuperCat requests would end up returning authority records instead of 
bibliographic records.


Modified: trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm	2010-12-17 15:12:48 UTC (rev 19008)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm	2010-12-17 15:17:43 UTC (rev 19009)
@@ -998,7 +998,7 @@
 	#}
 
 	my $search = 'record';
-	if ($rtype = 'authority') {
+	if ($rtype eq 'authority') {
 		$search = 'authority';
 	}
 	my $feed = create_record_feed( $search, $type, $list, $unapi, $org_unit->[0]->shortname, undef, $flesh_feed);



More information about the open-ils-commits mailing list