From: Dan Wells Date: Thu, 28 Feb 2013 20:32:07 +0000 (-0500) Subject: Fix holding lib for certain distribution svrs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=653d4b18e9281b1fb9dafcd4fe0842b9452ca80a;p=evergreen%2Fequinox.git Fix holding lib for certain distribution svrs 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 Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm index 27c92066f1..d8e010a3b7 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm @@ -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([]);