LP#1466990: Detailed search results shows parts for items that dont have parts
[Evergreen.git] / Open-ILS / src / templates / opac / parts / misc_util.tt2
index c889c55..e995a92 100644 (file)
                 copies = volume.findnodes('./*[local-name()="copies"]/*[local-name()="copy"]');
                 FOR copy IN copies;
                     parts = copy.findnodes('./*[local-name()="monograph_parts"]/*[local-name()="monograph_part"]');
+                    part_label = '';
                     FOREACH part IN parts;
                         part_label = part.getAttribute('label');
                         LAST IF part_label != '';