Skip to content

Commit

Permalink
Transform alternativeSpelling to titleKeyword (RPB-114)
Browse files Browse the repository at this point in the history
To hide field in details view, but keep it searchable
  • Loading branch information
fsteeg committed Nov 28, 2024
1 parent 7ea887c commit 0e4696b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/output/test-output-5.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Sagas légendes des bords du Rhin [Elektronische Ressource] : orné de 8 gravures sur acier",
"alternativeTitle" : [ "Düsseldorf" ],
"titleKeyword" : [ "Düsseldorf" ],
"extent" : "[1] Bl., VIII, 299 S., [7] Bl. : Ill.",
"note" : [ "HT003558438 Dt. Ausg. u.d.T.: Rheinlands Sagen, Geschichten und Legenden" ],
"responsibilityStatement" : [ "[Alfred von Reumont]. D'après les dessins des peintres de l' Ecole de Dusseldorf [Kretschmer del. ; Plüddemann del. ; Alfred Rethel del. ; Sonderland del.]" ],
Expand Down
10 changes: 6 additions & 4 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ copy_field("parallelTitle[].*.value", "otherTitleInformation[].$append")

# ------- "alternativeTitle" -------
move_field("alternativeTitle[]", "alternativeTitleObjects[]")
set_array("alternativeTitle[]")
copy_field("alternativeSpelling", "alternativeTitle[].$append")
copy_field("alternativeTitleObjects[].*.value", "alternativeTitle[].$append")
copy_field("alternativeTitleObjects[].*.value", "alternativeTitle[]")

# ------- "titleKeyword" -------
set_array("titleKeyword[]")
copy_field("alternativeSpelling", "titleKeyword[].$append")

# ------- "extent" -------

Expand Down Expand Up @@ -374,6 +376,6 @@ end

move_field("edition", "edition[]")

retain( "type[]", "contribution[]", "edition[]", "extent", "hasItem[]", "responsibilityStatement[]", "language[]", "medium[]", "subject[]", "title", "hbzId", "oclcNumber[]", "otherTitleInformation[]", "alternativeTitle[]", "natureOfContent[]", "publication[]", "sameAs[]", "describedBy", "@context", "id", "zdbId", "spatial[]", "inCollection[]", "rpbId", "schoeneNummer", "bibliographicCitation", "isPartOf[]", "note[]", "fulltextOnline[]", "description[]", "isbn[]", "containedIn[]")
retain( "type[]", "contribution[]", "edition[]", "extent", "hasItem[]", "responsibilityStatement[]", "language[]", "medium[]", "subject[]", "title", "hbzId", "oclcNumber[]", "otherTitleInformation[]", "alternativeTitle[]", "titleKeyword[]", "natureOfContent[]", "publication[]", "sameAs[]", "describedBy", "@context", "id", "zdbId", "spatial[]", "inCollection[]", "rpbId", "schoeneNummer", "bibliographicCitation", "isPartOf[]", "note[]", "fulltextOnline[]", "description[]", "isbn[]", "containedIn[]")

vacuum()

0 comments on commit 0e4696b

Please sign in to comment.