Fix holding lib for certain distribution svrs
authorDan Wells <dbw2@calvin.edu>
Thu, 28 Feb 2013 20:32:07 +0000 (15:32 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 13 Mar 2013 15:51:59 +0000 (11:51 -0400)
On a serial virtual record (svr), the holding lib is expected to be
just an ID.  In one logic branch, Search/Serial.pm was attaching the
entire aou object, and we should instead attach just the ID of this
object.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm

index 27c9206..d8e010a 100644 (file)
@@ -170,7 +170,7 @@ sub bib_to_svr {
                 $svr->sre_id(-1);
             }
             $svr->location($_->holding_lib->name);
-            $svr->owning_lib($_->holding_lib);
+            $svr->owning_lib($_->holding_lib->id);
             $svr->basic_holdings([]);
             $svr->supplement_holdings([]);
             $svr->index_holdings([]);