Skip to content

Commit

Permalink
Add ToC and abstract link
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Maier committed Jan 19, 2024
1 parent 6502199 commit 9dd11db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 11 additions & 1 deletion conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,19 @@ do list(path:"f90[]", "var": "$i")
copy_field("$i.f90_", "fulltextOnline[].$append.id")
copy_field("$i.f90_", "fulltextOnline[].$last.label")
replace_all("fulltextOnline[].$last.label", "https://nbn-resolving.org/", "")

elsif all_equal("$i.n90", "Inhaltstext")
set_array("description[]")
copy_field("$i.f90_", "description[].$append.id")
copy_field("$i.n90", "description[].$last.label")

elsif all_equal("$i.n90", "Inhaltsverzeichnis")
set_array("tableOfContents[]")
copy_field("$i.f90_", "tableOfContents[].$append.id")
copy_field("$i.n90", "tableOfContents[].$last.label")
end
end

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

vacuum()
7 changes: 5 additions & 2 deletions conf/rpb-titel-to-strapi.fix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ do put_macro("add_url")
if exists("$[from]")
if all_match("$[from]", "(https?|ftp):\\/\\/(\\S+\\.)+\\S+(\\/\\S*)?|")
move_field("$[from]", "f90[].$append.f90_")
add_field("f90[].*.n90", "$[type]")
#add_field("f90[].*.n90", "$[type]")
set_field("f90[].$last.n90", "$[type]")
end
end
end
Expand Down Expand Up @@ -152,7 +153,9 @@ call_macro("add_all", to: "85", from: "85?") # Gesamttitel
set_array("f90[]")

call_macro("add_url", from: "f90e", type: "Volltext")
call_macro("add_url", from: "f90f", type: "Andere URL")
call_macro("add_url", from: "f90f", type: "Inhaltstext")
call_macro("add_url", from: "f90g", type: "Inhaltsverzeichnis")


# Signatur
set_array("f90a[]")
Expand Down

0 comments on commit 9dd11db

Please sign in to comment.