From d05d82320da95ed08ee3505e84b06f48968848cc Mon Sep 17 00:00:00 2001 From: Marcel Schaeben Date: Thu, 1 Sep 2022 10:45:39 +0200 Subject: [PATCH] add option to specify funding information --- css/epidoc_c.less | 55 +++++++++++++++++++++++++++++++++++++++++ schema/tei-epidoc_c.odd | 20 ++++++++++++++- templates/epidoc_c.xml | 4 +++ 3 files changed, 78 insertions(+), 1 deletion(-) diff --git a/css/epidoc_c.less b/css/epidoc_c.less index 0c5c83e..736b486 100644 --- a/css/epidoc_c.less +++ b/css/epidoc_c.less @@ -197,6 +197,7 @@ foliation { /* titleStmt */ fileDesc titleStmt title { + -oxy-editable: true; display: block; font-weight: bold; font-size: 2em; @@ -204,6 +205,60 @@ fileDesc titleStmt title { -oxy-placeholder-content: "Titel des Textträgers (optional)"; } +fileDesc titleStmt { + -oxy-editable: false; + + funder { + display: block; + margin-bottom: 1rem; + + &:before(1) { + display: block; + background-color: @accentBackgroundColor; + color: #FFFFFF; + content: "Förderung dieses Datensatzes"; + vertical-align: middle; + font-weight: bold; + font-size: 0.8em; + padding: 0.2em 0em 0.2em 0.5em; + + &:has([type=institution]:not(:empty)) { + -oxy-append-content: ": " oxy_xpath("name[@type='institution']/data(.)"); + } + + &:has([type=program]:not(:empty)) { + -oxy-append-content: " (" oxy_xpath("name[@type='program']/data(.)") ")"; + } + } + + + name { + -oxy-display-tags: none; + display: block; + + &[type=institution]:before { + content: oxy_label(text, "Institution: ", width, 10em, text-align, right); + } + + &[type=program]:before { + content: oxy_label(text, "Förderprogramm: ", width, 10em, text-align, right); + } + } + + &:has(name:not(:empty)):after { + display:block; + -oxy-foldable: true; + -oxy-folded: true; + content: + oxy_label(text, "Förderzeitraum: ", width, 10em, text-align, right) + oxy_datePicker(edit, "@from", hoverPseudoclassName, 'showBorder', format, "yyyy-MM-dd") + oxy_label(text, " bis ") + oxy_datePicker(edit, "@to", hoverPseudoclassName, 'showBorder', format, "yyyy-MM-dd"); + } + + } +} + /************************* profileDesc (keywords) **************************/ textClass { diff --git a/schema/tei-epidoc_c.odd b/schema/tei-epidoc_c.odd index 00e3bf8..fcfe01d 100755 --- a/schema/tei-epidoc_c.odd +++ b/schema/tei-epidoc_c.odd @@ -1155,7 +1155,7 @@ End license statement: do not remove --> - + @@ -1172,6 +1172,24 @@ End license statement: do not remove --> + + + + + institution + + + + + + + program + + + + + + diff --git a/templates/epidoc_c.xml b/templates/epidoc_c.xml index 1d052b6..24f0ba0 100755 --- a/templates/epidoc_c.xml +++ b/templates/epidoc_c.xml @@ -4,6 +4,10 @@ + + + + Institut für Altertumskunde der Universität zu Köln