From dc04315c08cf6e5c609f54f492198b4837deb0d9 Mon Sep 17 00:00:00 2001 From: Martin de la Iglesia <iglesia@hab.de> Date: Thu, 29 Aug 2024 11:19:11 +0000 Subject: [PATCH] Upload New File --- bibliography.css | 289 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 bibliography.css diff --git a/bibliography.css b/bibliography.css new file mode 100644 index 0000000..3c50ae8 --- /dev/null +++ b/bibliography.css @@ -0,0 +1,289 @@ +/* Diese CSS-Datei ist Teil von + +Philipp Hainhofer: Das Große Stammbuch. Kommentierte digitale Edition eines bedeutenden Album Amicorum aus der Zeit um 1600 [Wolfenbütteler Digitale Editionen, Nr. 6], herausgegeben, transkribiert, übersetzt und kommentiert von Sabine Jagodzinski, Wolfenbüttel: Herzog August Bibliothek 2024, https://stammbuch.hab.de/stammbuch + +und wurde erstellt von Martin de la Iglesia (iglesia@hab.de). + +Sie dient der Bearbeitung der Bibliographie im <oXygen/> XML Editor. */ + +@namespace oxy url('http://www.oxygenxml.com/extensions/author'); +@namespace xml url('http://www.w3.org/XML/1998/namespace'); + +oxy|comment{ + display:none !important +} + +teiHeader{ + display:none; +} + +bibl{ + display:block; + background-color:#fff1e5; + border-style:solid; + margin:10px; +} + +bibl:before{ + content: + oxy_label( + text, "ID:", + width, 8em) + oxy_textfield( + edit, "@xml:id", + columns, 32) +"\A" + oxy_label( + text, "Sortierschlüssel:", + width, 8em) + oxy_textfield( + edit, "@sortKey", + columns, 32); +} + +note[type='change']:first-of-type{ + display:block; +} + +note[type='change']:first-of-type:after{ + content: + oxy_button( + action, oxy_action( + name, 'Timestamp', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<note xmlns="http://www.tei-c.org/ns/1.0" type="change">edited at ${timeStamp} by ${env(USERNAME)}</note>', + arg-insertLocation, '.', + arg-insertPosition, 'Before'), + showIcon, false + ) +} + +note[type='change']:not(note:first-of-type){ + visibility:hidden +} + +seg{ + visibility:-oxy-collapse-text; +} + +seg:before{ + content:"\A" + oxy_label( + text, "Bibliogr. Angabe:", + width, 8em) + oxy_textArea( + edit, "#text", + columns, 96 + ); + white-space:pre-wrap; +} + +seg:after{ + content:"\A" + + oxy_button( + action, oxy_action( + name, 'OPAC', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<ptr xmlns="http://www.tei-c.org/ns/1.0" type="opac" cRef=""/>', + arg-insertLocation, '.', + arg-insertPosition, 'After'), + showIcon, false +) +oxy_button( + action, oxy_action( + name, 'GBV', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<ptr xmlns="http://www.tei-c.org/ns/1.0" type="gbv" cRef=""/>', + arg-insertLocation, '.', + arg-insertPosition, 'After'), + showIcon, false +) +oxy_button( + action, oxy_action( + name, 'Gateway Bayern', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<ptr xmlns="http://www.tei-c.org/ns/1.0" type="bvb" cRef=""/>', + arg-insertLocation, '.', + arg-insertPosition, 'After'), + showIcon, false +) +oxy_button( + action, oxy_action( + name, 'Reiseberichte-Edition', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<ptr xmlns="http://www.tei-c.org/ns/1.0" type="ph-reisen" cRef=""/>', + arg-insertLocation, '.', + arg-insertPosition, 'After'), + showIcon, false +) +"\A" +oxy_button( + action, oxy_action( + name, 'Volltextlink', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<ptr xmlns="http://www.tei-c.org/ns/1.0" type="fulltext" target=""/>', + arg-insertLocation, '.', + arg-insertPosition, 'After'), + showIcon, false +) +} + +linkGrp:last-of-type:after{ + content:"\A" + +} + +ptr[type=opac]:before{ + content:"\A" + oxy_label( + text, "OPAC (PPN):", + width, 8em) + oxy_textfield( + edit, "@cRef", + columns, 32) +} +ptr[type=gbv]:before{ + content:"\A" + oxy_label( + text, "GBV (PPN):", + width, 8em) + oxy_textfield( + edit, "@cRef", + columns, 32) +} +ptr[type=bvb]:before{ + content:"\A" + oxy_label( + text, "Gateway Bayern (BV-Nr.):", + width, 8em) + oxy_textfield( + edit, "@cRef", + columns, 32) +} +ptr[type=ph-reisen]:before{ + content:"\A" + oxy_label( + text, "Link zum Bibliographieeintrag in der Reiseberichteedition:", + width, 16em) + oxy_textfield( + edit, "@cRef", + columns, 64) +} +ptr[type=fulltext]:before{ + content:"\A" + oxy_label( + text, "Link zum Volltext:", + width, 8em) + oxy_textfield( + edit, "@target", + columns, 64) +} + +bibl>ptr:after{ + content: oxy_button( + action, oxy_action( + name, '[-]', + operation, + 'ro.sync.ecss.extensions.commons.operations.DeleteElementsOperation', + arg-elementLocations,'self::ptr'), + showIcon, false +) +} + +seg>ptr:after{ + content: oxy_button( + action, oxy_action( + name, '[-]', + operation, + 'ro.sync.ecss.extensions.commons.operations.DeleteElementsOperation', + arg-elementLocations,'self::ptr'), + showIcon, false +) +} + +/* Sekundärliteratur: */ +linkGrp[ana="http://purl.org/dc/terms/references"]:before{ +font-weight:bold; + content:"\A Zitiert in: \A" + attr(target) +} + +linkGrp[ana="http://purl.org/dc/terms/references"]:after{ + content:oxy_button( + actionID, 'links', + showIcon, false +) +" " + oxy_button( + action, oxy_action( + name, '[+Link]', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<link xmlns="http://www.tei-c.org/ns/1.0" target="https:// #${xpath_eval(ancestor::bibl/@xml:id)}"></link>', + arg-insertLocation, 'ancestor-or-self::linkGrp', + arg-insertPosition, 'Inside as last child'), + showIcon, false +); +} + +link:before{ +/* content:"• " attr(target) "\A" */ +content:"• " +oxy_textfield( + edit, "@target", + columns, 56) +} + +link:after{ +content: + oxy_button( + action, oxy_action( + name, '[-]', + operation, + 'ro.sync.ecss.extensions.commons.operations.DeleteElementsOperation', + arg-elementLocations,'self::link'), + showIcon, false +) +"\A" +} + +bibl:after{ + content: + "\A" + oxy_button( + action, oxy_action( + name, 'Neuen Datensatz hinzufügen', + operation, + 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '<bibl xmlns="http://www.tei-c.org/ns/1.0" xml:id="" sortKey=""><seg/><linkGrp ana="http://purl.org/dc/terms/references" targFunc="active passive"><link/></linkGrp></bibl>', + arg-insertLocation, '.', + arg-insertPosition, 'After'), + showIcon, false +) + oxy_buttonGroup( + label, 'DATENSATZ LÖSCHEN', + actions, + oxy_action_list( + oxy_action( + name, 'OK', + operation, + 'ro.sync.ecss.extensions.commons.operations.DeleteElementOperation', + arg-elementLocation, 'self::bibl' + ), + oxy_action( + name, 'Abbrechen', + operation,'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', + arg-fragment, '', + arg-insertLocation, '.', + arg-insertPosition, 'After' + ) + ) +) +} -- GitLab