- Fix issue where applying subspecs against a subfield value as an implicit
left-hand subterm would produce
NoMethodError
.
- Adds
MARC::Spec#exists?
to check if a MARC record has data matching a query, without actually retrieving the data. This is slightly more efficient than usingMARC::Spec#find
withany?
, as it will return early when it finds the first result.
MARC::Spec
methods now raise anArgumentError
for invalid query strings instead of returning a rawParslet::ParseFailed
.- Add
MARC::Spec#parse_query
andMARC::Spec#execute_query
to facilitate caching parsed query objects. (Not that parsing is expensive, but sometimes it's convenient to be able to treat the query as a structured object rather than a string.) - Add
MARC::Spec::Queries::Query#tag_str
to retrieve the MARC tag specifier from a query object. Note that this returns a MARCSpecfieldTag
string (which may include.
wildcard characters), plus an optional, bracketedindex
. For more information see 9.2 Reference to field data in the MARCSpec docs.
- Initial release.