Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing asterisks #118

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Catmandu/MARC/Tutorial.pod
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ We will use the L<Catmandu::Fix::Bind::marc_each> bind with a loop variable:
# If the marc field is a 500 field
if marc_has(500)
# Set the indicator1 to value "0"
set_field(this.ind1,0)
set_field(this.*.ind1,0)
# Store the result back into the MARC record
marc_remove(500)
marc_paste(this)
Expand All @@ -480,7 +480,7 @@ We will use the L<Catmandu::Fix::Bind::marc_each> bind with a loop variable:
# If the marc field is a 500 field
if marc_has(500)
# add a new subfield z
add_field(this.subfields.$append.z,Test)
add_field(this.*.subfields.$append.z,Test)
# Store the result back into the MARC record
marc_remove(500)
marc_paste(this)
Expand All @@ -492,7 +492,7 @@ We will use the L<Catmandu::Fix::Bind::marc_each> bind with a loop variable:
# For each marc field...
do marc_each(var:this)
# If we have a non-numeric fields
unless all_match(this.tag,"\d{3}")
unless all_match(this.*.tag,"\d{3}")
# Remove this tag
marc_remove(***)
end
Expand Down