Tie in new MFHD method to serials module
authorDan Wells <dbw2@calvin.edu>
Tue, 7 May 2013 22:23:27 +0000 (18:23 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 2 Jul 2013 15:11:20 +0000 (11:11 -0400)
Now that we have a potentially better alternative, let's call
get_combined_holdings() in place of get_compressed_holdings() in
Serial.pm.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm

index d79c5c6..c619d37 100644 (file)
@@ -1899,10 +1899,10 @@ sub _summarize_contents {
     foreach my $scap_field (@scap_fields_ordered) { #TODO: use generic MFHD "summarize" method, once available
         my @updated_holdings;
         eval {
-            @updated_holdings = $mfhd->get_compressed_holdings($scap_field);
+            @updated_holdings = $mfhd->get_combined_holdings($scap_field);
         };
         if ($@) {
-            my $msg = "get_compressed_holdings(): $@ ; using sdist ID #" .
+            my $msg = "get_combined_holdings(): $@ ; using sdist ID #" .
                 ($sdist ? $sdist->id : "<NONE>") . " and " .
                 scalar(@$issuances) . " issuances, of which one has ID #" .
                 $issuances->[0]->id;