Add the copy number to the list of data being pulled for access by the TPAC.
authorSteven Callender <stevecallender@esilibrary.com>
Mon, 11 Mar 2013 19:48:57 +0000 (15:48 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 6 Jun 2013 20:29:50 +0000 (16:29 -0400)
Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>

Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm

index f98645b..817cd7d 100644 (file)
@@ -1954,7 +1954,7 @@ sub basic_opac_copy_query {
     return {
         select => {
             acp => ['id', 'barcode', 'circ_lib', 'create_date',
-                    'age_protect', 'holdable'],
+                    'age_protect', 'holdable', 'copy_number'],
             acpl => [
                 {column => 'name', alias => 'copy_location'},
                 {column => 'holdable', alias => 'location_holdable'}
@@ -2035,7 +2035,8 @@ sub basic_opac_copy_query {
 
         order_by => [
             {class => 'aou', field => 'name'},
-            {class => 'acn', field => 'label'}
+            {class => 'acn', field => 'label'},
+            {class => 'acp', field => 'copy_number'}
         ],
 
         limit => $copy_limit,