Skip to content

Commit

Permalink
Only add dissolutionDate if record has deleted status
Browse files Browse the repository at this point in the history
This seems to fix: #470 and #468 at least partly.
  • Loading branch information
TobiasNx committed Aug 8, 2023
1 parent df0ad93 commit 3fd8dd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions conf/fix-enriched.fix
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,12 @@ do list(path:"replacedBy[]","var":"$i")
end
end

if any_match("050D.a",".*L.schung.*")
copy_field("050D.a","dissolutionDate")
if any_equal("035D.a","I") # Deprecated records
if any_match("050D.a","^L.schung.*")
copy_field("050D.a","dissolutionDate")
end

replace_all("dissolutionDate","^L.schung(\\d{4}-\\d{2}).*","$1-01")
end

copy_field("dbsID","librariesOrgID")
Expand Down

0 comments on commit 3fd8dd4

Please sign in to comment.