Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed Nov 30, 2022
1 parent b72eb33 commit 63dfed1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,18 @@ Extract MARC records on file that contain the string "wildlife"
./marcli -file data/test_10.mrc -match wildlife
```

Extracts MARC records on file that contain the string "wildlife" but outputs only fields "LDR,001,040,245a,650" for each record (LDR means the leader of the MARC record).
Extracts MARC records on file that contain the string "wildlife" but outputs only fields "LDR,001,040,245a,650" for each record, LDR means the leader of the MARC record. In the `-fields` parameter a letter (or letters) after the field tag indicates to output only those subfields. For example "907xz" means output subfield "x" and "z" in field "907".

```
./marcli -file data/test_10.mrc -match wildlife -fields LDR,010,040,245a,650
```

The `-matchFields` parameter to limit the fields where the match will be made:
The `-matchFields` parameter can be used to limit the fields where the match will be made:

```
./marcli -file=data/test_10.mrc -match=web -matchFields=530
````
A letter (or letters) after the field tag indicates to output only those subfields. For example "907xz" means output subfield "x" and "z" in field "907".
You can also use the `exclude` option to indicate fields to exclude from the output (notice that only full fields are supported here, e.g. 970 is accepted but not 970a)
You can also filter based on the presence of certain fields in the MARC record (regardless of their value), for example the following will only output records that have a MARC 110 field:
Expand Down

0 comments on commit 63dfed1

Please sign in to comment.