-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the add functions instead of set functions
With the upcoming releases the behaviour of set_ will change so that no intermediate structure will be created. To prepare for this change we will use the add_ version of these functions. See the following issue for further info: https://github.com/metafacture/metafacture-fix/issues/309
- Loading branch information
Showing
13 changed files
with
216 additions
and
216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ add_field("@context","http://lobid.org/resources/context.jsonld") | |
|
||
# Set empty elements to manipulate the order winthin the record. | ||
add_field("id","") | ||
set_array("type[]") | ||
set_array("medium[]") | ||
add_array("type[]") | ||
add_array("medium[]") | ||
add_field("title","") | ||
|
||
do list(path:"880??","var":"$i") | ||
|
@@ -38,7 +38,7 @@ do list(path:"880??","var":"$i") | |
replace_all("[email protected]","(\\d{3}-\\d{2})/(.*)","$2") | ||
lookup("[email protected]","ISO15924-to-script") | ||
end | ||
set_array("alternateGraphicRepresentation[]") | ||
add_array("alternateGraphicRepresentation[]") | ||
|
||
include ("./fix/identifiers.fix") | ||
include ("./fix/titleRelatedFields.fix") | ||
|
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
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
Oops, something went wrong.