Closed Monica-Wood closed 1 month ago
Please try{"skipGroupIfExpression":"^/eadheader/filedesc/titlestmt/date !~ /bulk/"}
Confirm this worked. Now to remember this for future.
For XML formats the tag reference structure is "^" + an XPath expression. Those expressions include the root tag. You can alter this by setting a basePath
setting on your mapping, if you wish.
I am trying to put a 'skipGroupIfExpression' options on a date, where it will only import it if contains the term 'bulk'
I am using:
This returns as 'true' no matter what the content is and skips it. If I reverse it with a =~ instead, it always returns false and tries to import it.
Example data in this element:
1982-1992 (bulk 1989-1990)
I've also tried with
skipIfExpression
with the same results. I am not sure if something has broken with this, or it's because of the EAD XML elements, rather than just calling ^1 like you do with a spreadsheet (has worked in the past with spreadsheets).Branch: dev/php8