JBAS-1443 Added content uses EAN / Misc.
authorBill Erickson <berickxx@gmail.com>
Mon, 6 Jun 2016 21:17:44 +0000 (17:17 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Consider values from MARC 024 $a with indicator 1 values of 3 (EAN) or 8
(Misc/Unknown) as valid added content lookup keys.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm

index 254d790..e60adfb 100644 (file)
@@ -248,13 +248,14 @@ sub get_rec_keys {
                     '-and' => [
                         {tag => '024'},
                         {subfield => 'a'},
-                        {ind1 => 1}
+                        {ind1 => [1, 3, 8]}
                     ]
                 }
             ]
         },
         order_by => [
-                { class => 'mfr', field => 'id' }
+                { class => 'mfr', field => 'tag' },
+                { class => 'mfr', field => 'ind1' }
             ]
     });
 }