LP1772017: Correctly Extract Cast from Records
authorJason Boyer <jboyer@library.in.gov>
Fri, 18 May 2018 13:12:37 +0000 (09:12 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 25 May 2018 17:14:41 +0000 (13:14 -0400)
authors.tt2 has been using field 508 for cast display but
the correct field is 511 when ind1=1.

Testing note:

In the Concerto data set, the title "The rum diary" is a good test
record, as it has both a 508 field and a 511.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/parts/record/authors.tt2

index 759a929..0af62bb 100644 (file)
@@ -15,7 +15,7 @@ authors = [
     }, {
         type => 'cast', 
         label => l('Cast'),
-        xpath => '//*[@tag="508"]'
+        xpath => '//*[@tag="511"][@ind1="1"]'
     }, {
         type => 'notes', 
         label => l('Author Notes: '),