Skip to content

Commit

Permalink
Update episodes/07-manipulating-MARC-data-advanced.md
Browse files Browse the repository at this point in the history
Co-authored-by: Abigail Sparling <33765342+abigailsparling@users.noreply.github.com>
  • Loading branch information
jenmawe and abigailsparling authored Aug 9, 2024
1 parent 23d7165 commit 2e5411d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion episodes/07-manipulating-MARC-data-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ This is possible using the function called, Build New Field.
:::::::::::::::::::::::::::::::::::::::::::::::::: callout

## Beware the Build New Field Function
In the example above, if your 856 contains other subfields such as $3, then these will not be retained because you are only building a new 856 that replaces the current one. Also the build new field works on the first iteration of the field. When working in particular with the MARC field 856, if you need to build a new field using all of the MARC fields 856 in your record, you can use the syntax [x] as in {856$u[x]}. This will ensure all of the MARC fields in the records will undergo the build operation you specify.
In the example above, if your 856 contains other subfields such as $3, then these will not be retained because you are only building a new 856 that replaces the current one. To retain $3 data, you would need to include this parameter in your function. This would look like `=856 40{856$3}\$uhttps://exampleproxy.edu/login?url={856$u}`

Also note, the build new field works on the first iteration of the field. When working in particular with the MARC field 856, if you need to build a new field using all of the MARC fields 856 in your record, you can use the syntax [x] as in {856$u[x]}. This will ensure all of the MARC fields in the records will undergo the build operation you specify.

:::::::::::::::::::::::::::::::::::::::::

Expand Down

0 comments on commit 2e5411d

Please sign in to comment.