-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contains relation matcher (
=?
) (#673)
- Loading branch information
Showing
9 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,10 +128,10 @@ between `/01` and `/10`. | |
Simple subfield filter consists of the subfield code (single | ||
alpha-numerical character, ex `0`) a comparison operator (equal `==`, | ||
not equal `!=` not equal, starts with prefix `=^`, starts not with | ||
prefix `!^`, ends with suffix `=$`, regex `=~`/`!~`, `in` and `not in`) | ||
and a value enclosed in single quotes. These simple subfield expressions | ||
can be grouped in parentheses and combined with boolean connectives (ex. | ||
`(0 == 'abc' || 0 == 'def')`). | ||
prefix `!^`, ends with suffix `=$`, regex `=~`/`!~`, contains substring | ||
`=?`, `in` and `not in`) and a value enclosed in single quotes. These | ||
simple subfield expressions can be grouped in parentheses and combined | ||
with boolean connectives (ex. `(0 == 'abc' || 0 == 'def')`). | ||
|
||
A special existence operator can be used to check if a given field | ||
(`012A/00?`) or a subfield (`[email protected]?` or `002@$0?`) exists. To test for | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
pica-toolkit/tests/snapshot/filter/0114-filter-relation-matcher-curly-contains-f.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bin.name = "pica" | ||
args = "filter \"012A{0 =? 'xyz' && 0?}\"" | ||
status = "success" | ||
stdin = "012A \u001f0abba\u001e\n" | ||
stdout = "" | ||
stderr = "" |
6 changes: 6 additions & 0 deletions
6
pica-toolkit/tests/snapshot/filter/0114-filter-relation-matcher-curly-contains-t.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bin.name = "pica" | ||
args = "filter \"012A{0 =? 'bb' && 0?}\"" | ||
status = "success" | ||
stdin = "012A \u001f0abba\u001e\n" | ||
stdout = "012A \u001f0abba\u001e\n" | ||
stderr = "" |
6 changes: 6 additions & 0 deletions
6
pica-toolkit/tests/snapshot/filter/0114-filter-relation-matcher-simple-contains-f.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bin.name = "pica" | ||
args = "filter \"012A.0 =? 'xyz'\"" | ||
status = "success" | ||
stdin = "012A \u001f0abba\u001e\n" | ||
stdout = "" | ||
stderr = "" |
6 changes: 6 additions & 0 deletions
6
pica-toolkit/tests/snapshot/filter/0114-filter-relation-matcher-simple-contains-t.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bin.name = "pica" | ||
args = "filter \"012A.0 =? 'bb'\"" | ||
status = "success" | ||
stdin = "012A \u001f0abba\u001e\n" | ||
stdout = "012A \u001f0abba\u001e\n" | ||
stderr = "" |