https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38330
--- Comment #22 from David Cook <[email protected]> --- (In reply to David Cook from comment #21) > (In reply to Martin Renvoize (ashimema) from comment #19) > > Wouldn't be a bad idea for someone to have a final look at those follow-ups. > > I'll fix up the 952$n to 942$n... and I might do a different UPDATE since > historically any true 942$n value was valid to trigger suppression. I'll > have a think about that one. I'm thinking about using boolean() in the Xpath. The following returns 1 for any true value and should return 0 for any false value, so it'll return 1 for new value of 1 or old values like "YES" or "yes" or whatever. 0 will be returned for 0 or empty or non-existent. IF(ExtractValue(metadata,'//datafield[@tag="942"]/subfield[@code="n" and boolean(text())]/text()'),1,0) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
