-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...ptionalSubfieldOfRepeatedObjectsWithAsterisWithoutCreatingArrayWithSetArray/expected.json
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rswk" : [ { | ||
"subjectTopicName" : "Nonprofit organizations" | ||
}, { | ||
"subjectTopicName" : "Nonprofit organizations", | ||
"subjectGenre" : "Case studies" | ||
} ] | ||
} |
14 changes: 14 additions & 0 deletions
14
...lInOptionalSubfieldOfRepeatedObjectsWithAsterisWithoutCreatingArrayWithSetArray/input.xml
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<collection xmlns="http://www.loc.gov/MARC21/slim"> | ||
<record> | ||
<datafield tag="650" ind1=" " ind2=" "> | ||
<subfield code="a">Nonprofit organizations</subfield> | ||
<subfield code="x">Management.</subfield> | ||
</datafield> | ||
<datafield tag="650" ind1=" " ind2=" "> | ||
<subfield code="a">Nonprofit organizations</subfield> | ||
<subfield code="x">Management</subfield> | ||
<subfield code="v">Case studies.</subfield> | ||
</datafield> | ||
</record> | ||
</collection> |
7 changes: 7 additions & 0 deletions
7
...llInOptionalSubfieldOfRepeatedObjectsWithAsterisWithoutCreatingArrayWithSetArray/test.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
do list(path: "650??", "var": "$i") | ||
copy_field("$i.a", "rswk[].$append.subjectTopicName") | ||
copy_field("$i.v", "rswk[].$last.subjectGenre") | ||
end | ||
replace_all("rswk[].*.subjectGenre", "[.]$", "") | ||
|
||
retain("rswk[]") |
8 changes: 8 additions & 0 deletions
8
...lInOptionalSubfieldOfRepeatedObjectsWithAsterisWithoutCreatingArrayWithSetArray/test.flux
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FLUX_DIR + "input.xml" | ||
|open-file | ||
|decode-xml | ||
|handle-marcxml | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |
1 change: 1 addition & 0 deletions
1
...llInOptionalSubfieldOfRepeatedObjectsWithAsterisWithoutCreatingArrayWithSetArray/todo.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
See #377 . This behaviour seems to be undetected or new after #369 |
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