Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing transformation and display for title fields (RPB-114) #102

Merged
merged 5 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/views/tags/facets.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,3 @@
<div class="row facet"><div class="col-md-12">@facets("Bestand in Bibliotheken", Application.ITEM_FIELD, owner, "dropup")</div>
*@
</div>
</div>
7 changes: 3 additions & 4 deletions app/views/tags/result_doc.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@

@table(){
<tr><td>Titel</td><td><b>@((doc \ "title").asOpt[String].getOrElse(""))</b></td></tr>
@for(x <- (doc \ "otherTitleInformation").asOpt[Seq[JsValue]]) {
<tr><td>Titelzusatz</td><td><i>@x.head.asOpt[String].getOrElse("")</i></td></tr>
}
@result_field("Titelzusatz", "otherTitleInformation", doc, TableRow.VALUES)
@result_field("Alternativer Titel", "alternativeTitle", doc, TableRow.VALUES)
@result_field("Unterreihe", "titleOfSubSeries", doc, TableRow.VALUES)
@result_field("Verantwortlich", "responsibilityStatement", doc, TableRow.VALUES)
@contributions((doc \ "contribution").asOpt[Seq[JsValue]].getOrElse(Seq()))
Expand Down Expand Up @@ -274,7 +273,7 @@
@raumsystematik("https://rpb.lobid.org/spatial")
@sachsystematik("http://purl.org/lobid/rpb")

@subjects((doc \ "subject").asOpt[Seq[JsValue]].getOrElse(Seq()))
@subjects((doc \ "subject").asOpt[Seq[JsValue]].getOrElse(Seq()).filter(v => !(v \ "source").toString.contains("Systematik")))

@result_field("Schlagwortfolge", "subjectChain", doc, TableRow.VALUES, valueLabel = Option(Seq()))

Expand Down
2 changes: 1 addition & 1 deletion app/views/tags/result_field.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
property,
param,
label,
multiSingleOrEmptySeq(jsonVal(property)).map(_.asOpt[String].getOrElse("--")).sorted(Ordering[String].reverse),
multiSingleOrEmptySeq(jsonVal(property)).map(_.asOpt[String].getOrElse("--")),
if(valueLabel.isEmpty){ Optional.empty() } else { Optional.of(valueLabel.get) }))
1 change: 1 addition & 0 deletions conf/output/test-output-33.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "SWR-3-Clubmagazin",
"alternativeTitle" : [ "SWR-Drei-Clubmagazin", "SWR-3-Clubmagazin" ],
"note" : [ "Vorgänger u.d.T.: On" ],
"publication" : [ {
"location" : [ "Baden-Baden" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-37.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Die Zeitschrift : der Südwestrundfunk und seine Programme. Rheinland-Pfalz",
"alternativeTitle" : [ "SWR - Die Zeitschrift", "Südwestfunk <Baden-Baden>: Südwestfunk-Journal" ],
"note" : [ "Vorgänger u.d.T.: Südwestfunk <Baden-Baden>: Südwestfunk-Journal" ],
"publication" : [ {
"location" : [ "Stuttgart" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-5.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Sagas légendes des bords du Rhin [Elektronische Ressource] : orné de 8 gravures sur acier",
"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
1 change: 1 addition & 0 deletions conf/output/test-output-58.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Charte vom Laufe des Rheins von Coblenz bis Wesel [Elektronische Ressource] : das Herzogthum Berg, die Grafschaften Wied, Nieder-Isenburg und andere Länder vorstellend : mit röm. kaiserl. allergnaed. Freyheit",
"alternativeTitle" : [ "Charte vom Laufe des Rheins von Koblenz bis Wesel [Elektronische Ressource] : das Herzogthum Berg, die Grafschaften Wied, Nieder-Isenburg und andere Länder vorstellend : mit röm. kaiserl. allergnaed. Freyheit" ],
"extent" : "1 Kt. : Kupferst. ; 57 x 41 cm",
"note" : [ "Nebenkarte oben rechts: \"Charte den Lauf des Rheins von Coblenz bis Unkel nebst den anliegenden Ländern enthaltend\" (16 x 23 cm). - Nullmeridian: Ferro - Maßstab in graph,. Form (Deutsche Meilen) - Titelkartusche unten links" ],
"responsibilityStatement" : [ "entworfen von F. L. Güssefeld ; [Stecher:] I. Rausch" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-59.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Rhein-Zeitung : unabhängige Tageszeitung",
"alternativeTitle" : [ "Ausg. C, Andernach/Mayen" ],
"note" : [ "Vorg. u.d.T.: Rhein-Zeitung / CA. - Vorg. u.d.T.: Rhein-Zeitung / CM" ],
"publication" : [ {
"location" : [ "Koblenz" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-63.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Ausstellung \"Auf den Spuren Mozarts\" [Elektronische Ressource]",
"alternativeTitle" : [ "Auf den Spuren Mozarts" ],
"publication" : [ {
"location" : [ "Waldbreitbach" ],
"startDate" : "2007",
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-64.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Bilderausstellung \"Von der Wied an den Rhein\" - Dr. Heiner Kussmaul, Yvonne Kussmaul [Elektronische Ressource]",
"alternativeTitle" : [ "Von der Wied an den Rhein" ],
"publication" : [ {
"location" : [ "Waldbreitbach" ],
"startDate" : "2007",
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-66.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "100 Jahre St. Barbara in Koblenz : 1908 - 2008",
"alternativeTitle" : [ "Hundert Jahre St. Barbara in Koblenz" ],
"extent" : "99 S. : zahlr. Ill.",
"responsibilityStatement" : [ "Alten- und Pflegeheim St. Barbara Koblenz. [Autoren: Ulrich Keller ... ]" ],
"publication" : [ {
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-67.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "100 Jahre Kirner Volksbank : Chronik 1908 - 2008",
"alternativeTitle" : [ "Hundert Jahre Kirner Volksbank" ],
"extent" : "[12] S. : zahlr. Ill.",
"publication" : [ {
"location" : [ "Kirn" ],
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-69.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Festschrift des DRK-Ortsverein Adenau e.V. [Elektronische Ressource]",
"alternativeTitle" : [ "\"Helfen, ohne zu fragen wem!\"" ],
"publication" : [ {
"location" : [ "Adenau" ],
"type" : [ "PublicationEvent" ]
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-71.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"label" : "BiblioVino"
} ],
"title" : "Weinkulturlandschaft Mosel : Dornen statt Reben",
"alternativeTitle" : [ "Dornen statt Reben" ],
"extent" : "Ill.",
"responsibilityStatement" : [ "Rolfjosef Hamacher und Ulrich Stein" ],
"publication" : [ {
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-74.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "Piffche-Bahnfahrt durch Rheinhessen",
"otherTitleInformation" : [ "= Piffsche-Bahnfahrd dorsch Rhoihesse" ],
"note" : [ "Text teilweise Hochdeutsch, teilweise in rheinhessischem Dialekt" ],
"responsibilityStatement" : [ "Hartmut Keil" ],
"publication" : [ {
Expand Down
1 change: 1 addition & 0 deletions conf/output/test-output-87.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"label" : "Rheinland-Pfälzische Bibliographie"
} ],
"title" : "2000 Jahre Meilbrück : vom römischen Tempelbezirk zur modernen Raststätte; Von den Anfängen bis zum Ende der Römerherrschaft",
"alternativeTitle" : [ "Zweitausend Jahre Meilbrück" ],
"extent" : "Ill.",
"publication" : [ {
"startDate" : "1990",
Expand Down
Loading