Comment 2 for bug 2044172

Revision history for this message
Rosie Le Faive (rlefaive) wrote :

I found a hacky way to hide $2 by adding it to the list of excluded subfields in (custom)templates/opac/parts/misc_utils.tt2:

--- a/var/templates_roblib/opac/parts/misc_util.tt2
+++ b/var/templates_roblib/opac/parts/misc_util.tt2
@@ -7,7 +7,7 @@
         FOR node IN xml.findnodes('//*[@tag="' _ target_field _ '"]');
             raw_vals = [];
             core_val = '';
- FOR subnode IN node.findnodes('./*[not(contains("e w 0 4 5 6 7 8 9", @code))]');
+ FOR subnode IN node.findnodes('./*[not(contains("e w 0 2 4 5 6 7 8 9", @code))]');
                 raw_vals.push(subnode.textContent());
             END;
             core_val = raw_vals.join(" ");

------

The resulting behaviour causes an errant ',' at the end of the 1xx field, but at least it is searchable.