LP#1427287: (erratum) use "description" rather than "value"
authorGalen Charlton <gmc@esilibrary.com>
Mon, 16 Mar 2015 20:35:44 +0000 (20:35 +0000)
committerMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2015 18:12:02 +0000 (14:12 -0400)
This makes the indicator list have the same shape as the
subfield code list.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm

index d8ae85d..a1ace2d 100644 (file)
@@ -1481,7 +1481,11 @@ sub retrieve_tag_table {
                 for my $pos (1..2) {
                     my $ind_ccvm_key = "${marc_format}_${marc_record_type}_${tag}_ind_${pos}";
                     my $indvals = $e->json_query({
-                        select => { ccvm => [ "code", "value" ] },
+                        select => { ccvm => [
+                                                'code',
+                                                { column => 'value', alias => 'description' }
+                                            ]
+                                  },
                         from   => 'ccvm',
                         where  => { ctype => $ind_ccvm_key }
                     });