From 2e5411d37238f36f9374299e468d93b0e0da068d Mon Sep 17 00:00:00 2001 From: jenmawe Date: Fri, 9 Aug 2024 11:45:09 -0400 Subject: [PATCH] Update episodes/07-manipulating-MARC-data-advanced.md Co-authored-by: Abigail Sparling <33765342+abigailsparling@users.noreply.github.com> --- episodes/07-manipulating-MARC-data-advanced.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/episodes/07-manipulating-MARC-data-advanced.md b/episodes/07-manipulating-MARC-data-advanced.md index 4b75990e..cbac6456 100644 --- a/episodes/07-manipulating-MARC-data-advanced.md +++ b/episodes/07-manipulating-MARC-data-advanced.md @@ -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. :::::::::::::::::::::::::::::::::::::::::