Skip to content

Commit

Permalink
Clean up abstract property #2132
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jan 21, 2025
1 parent f854362 commit 8f832c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/resources/alma/fix/otherFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ do list(path:"520[ 23] ", "var": "$i")
copy_field("$i.[ab]", "abstract[].$append")
end

replace_all("abstract[].*","^<!\\[CDATA\\[(.*)\\]\\]>$","$1")
replace_all("abstract[].*","<[\\/]?.{1,2}>","")

# 502 - Dissertation Note (R) Subfield: $a (R)
add_array("thesisInformation[]")
do list(path:"502 ", "var": "$i")
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99371026459206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
} ],
"extent" : "1 online resource (318 p.)",
"note" : [ "Description based upon print version of record." ],
"abstract" : [ "<![CDATA[<P>... it will complete my library ... [and] complement the existing literature on heat transfer. It will be of value for both graduate students and faculty members.<BR>-Bengt Sunden, Lund University, Sweden</P>]]>" ],
"abstract" : [ "... it will complete my library ... [and] complement the existing literature on heat transfer. It will be of value for both graduate students and faculty members.-Bengt Sunden, Lund University, Sweden" ],
"langNote" : [ "English" ],
"subject" : [ {
"type" : [ "Concept" ],
Expand Down

0 comments on commit 8f832c5

Please sign in to comment.