diff --git a/add/data/xql/getHeader.xql b/add/data/xql/getHeader.xql index a30052561..f9c667cc7 100644 --- a/add/data/xql/getHeader.xql +++ b/add/data/xql/getHeader.xql @@ -61,7 +61,7 @@ return ) ) else if ($type = 'text') then ( - transform:transform($doc, concat($base, 'teiHeader2HTML.xsl'), + transform:transform($doc, concat($base, 'tei/profiles/edirom-header/teiHeader2HTML.xsl'), diff --git a/add/data/xql/getLinkTarget.xql b/add/data/xql/getLinkTarget.xql index db7821697..5b35051bd 100644 --- a/add/data/xql/getLinkTarget.xql +++ b/add/data/xql/getLinkTarget.xql @@ -45,7 +45,7 @@ declare function local:getView($type as xs:string, $docUri as xs:string, $doc as else $docUri } - + (: optionally set label for some views:) let $labeled.map := if ($type = 'mei_textView') then @@ -54,7 +54,7 @@ declare function local:getView($type as xs:string, $docUri as xs:string, $doc as (map:put($baseMap, 'label', 'XML Quellenbeschreibung')) else ($baseMap) - + (: whether to set the view as default view:) let $defaultViewed.map := if ($type = ( @@ -69,48 +69,48 @@ declare function local:getView($type as xs:string, $docUri as xs:string, $doc as (map:put($labeled.map, 'defaultView', true())) else ($labeled.map) - + (: xpath check whether any given view is supported :) let $hasView := if ($type = 'desc_summaryView') then (true()) - + else if ($type = 'desc_headerView') then (exists($doc//mei:meiHead or $doc//tei:teiHeader)) - + else if ($type = 'mei_textView') then (exists($doc//mei:annot[@type = 'descLink'])) - + else if ($type = 'mei_sourceView') then (exists($doc//mei:facsimile//mei:graphic[@type = 'facsimile'])) - + else if ($type = 'mei_audioView') then (exists($doc//mei:recording)) - + else if ($type = 'mei_verovioView') then (exists($doc//mei:body//mei:measure) and exists($doc//mei:body//mei:note)) - + else if ($type = 'tei_textView') then (exists($doc//tei:body[matches(.//text(), '[^\s]+')])) - + else if ($type = 'tei_facsimileView') then (exists($doc//tei:facsimile//tei:graphic)) - + else if ($type = 'tei_textFacsimileSplitView') then (exists($doc//tei:facsimile//tei:graphic) and exists($doc//tei:pb[@facs])) - + else if ($type = 'mei_annotationView') then (exists($doc//mei:annot[@type = 'editorialComment'])) - + else if ($type = 'xml_xmlView') then (true()) - + else if ($type = 'desc_xmlView') then (exists($doc//mei:annot[@type = 'descLink'])) - + else (false()) - + return if ($hasView) then ($defaultViewed.map) @@ -122,10 +122,10 @@ declare function local:getView($type as xs:string, $docUri as xs:string, $doc as : Returns the views for an edirom object :) declare function local:getViews($type as xs:string, $docUri as xs:string, $doc as node()+) as map(*)* { - + let $views := ( (:'desc_summaryView',:) - (:'desc_headerView',:) + 'desc_headerView', 'mei_textView', 'mei_sourceView', 'mei_audioView', @@ -137,12 +137,12 @@ declare function local:getViews($type as xs:string, $docUri as xs:string, $doc a 'xml_xmlView', 'desc_xmlView' ) - + let $maps := for $view in $views return local:getView($view, $docUri, $doc) - + return $maps }; @@ -151,17 +151,17 @@ declare function local:getViews($type as xs:string, $docUri as xs:string, $doc a : Returns the window title for an edirom-object :) declare function local:getWindowTitle($doc as node()+, $type as xs:string) as xs:string { - + (: Work :) if (exists($doc//mei:mei) and exists($doc//mei:workDesc/mei:work) and not(exists($doc//mei:perfMedium))) then (eutil:getLocalizedTitle(($doc//mei:work)[1]/mei:titleStmt[1], $lang)) else if (exists($doc/root()/mei:work)) then (eutil:getLocalizedTitle($doc/root()/mei:work, $lang)) - + (: Recording :) else if (exists($doc//mei:mei) and exists($doc//mei:recording)) then (eutil:getLocalizedTitle($doc//mei:fileDesc/mei:titleStmt[1], $lang)) - + (: Source / Score :) else if ($type = 'source' and exists($doc//mei:manifestation/mei:titleStmt)) then (string-join((eutil:getLocalizedTitle(($doc//mei:manifestation)[1]/mei:titleStmt[1], $lang), @@ -171,19 +171,19 @@ declare function local:getWindowTitle($doc as node()+, $type as xs:string) as xs (string-join((eutil:getLocalizedTitle(($doc//mei:source)[1]/mei:titleStmt[1], $lang), ($doc//mei:source)[1]//mei:identifier[lower-case(@type) = 'shelfmark'][1]), ' | ') => normalize-space()) - + (: MEI fallback if no title is found :) else if (exists($doc//mei:mei) and exists(($doc//mei:titleStmt)[1])) then (eutil:getLocalizedTitle(($doc//mei:titleStmt)[1], $lang)) - + (: Text :) else if (exists($doc/tei:TEI)) then (eutil:getLocalizedTitle($doc//tei:fileDesc/tei:titleStmt[1], $lang)) - + (: HTML :) else if ($type = 'html') then ($doc//head/data(title)) - + else (string('unknown')) }; @@ -276,26 +276,26 @@ let $type := (: Work :) if (exists($doc//mei:mei) and exists($doc//mei:work) and not(exists($doc//mei:perfMedium))) then (string('work')) - + (: Recording :) else if (exists($doc//mei:mei) and exists($doc//mei:recording)) then (string('recording')) - + (: Source / Score :) else if (source:isSource($docUri)) then (string('source')) - + (: Text :) else if (exists($doc/tei:TEI)) then (string('text')) - + (: HTML :) else if (exists($doc/html) or exists($doc/html:html)) then (string('html')) - + else if (contains($docUri, '.html')) then (string('html')) - + else (string('unknown')) diff --git a/add/data/xslt/ediromOnline_metadata.xsl b/add/data/xslt/ediromOnline_metadata.xsl index 928ec384c..de7bfeae5 100644 --- a/add/data/xslt/ediromOnline_metadata.xsl +++ b/add/data/xslt/ediromOnline_metadata.xsl @@ -1,177 +1,286 @@ - - - - - - - - ( - - ) - - - - - ( + + + + + + + + + + + Disable output for XML comments + + + + + Disable output for XML processing-instructions + + + + + - - - - - - - + + + + ( + + ) + + + + + ( + + + + + + + + + + ) + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + ( + + ) + + + + + + + - ) - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - ( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - section - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + section + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + property + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + subProperty + + + + + + + + + + + + subProperty + + + + + + + + + + + + + + + + + + + + + + + - - + - - - - - - property - - - - - - - - - - - - - - - - - - - - - - - - - - - - subProperty - - - - - - - - - - subProperty - - - - - - - - - - - - + + + + + + + + + + subProperty + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + diff --git a/add/data/xslt/i18n/de.xml b/add/data/xslt/i18n/de.xml index c97780dab..1ca861d71 100755 --- a/add/data/xslt/i18n/de.xml +++ b/add/data/xslt/i18n/de.xml @@ -85,7 +85,7 @@ Ausstellungsgeschichte Umfang Hand - Signatur + Bezeichner Aufdruck Aufbewahrungsort Material @@ -104,20 +104,20 @@ Titel Unveröffentlicht Ort + Annotation + Aufnahmemodus + Datenträger Bestandteile + Körperschaft Expressionen + Eigenschaften Schreiber + FRBR-Manifestationen + Abspielgeschwindigkeit Publikation Ort - - - Körperschaft - Aufnahmemodus - Datenträger - Eigenschaften - Abspielgeschwindigkeit FRBR-Beziehungen Tonkanäle @@ -131,10 +131,11 @@ Verfügbarkeit Lagenordnung Dekor - Edition + Angaben zur Ausgabe Dateinformationen Paginierung/Foliierung Publikation + Sprachgebrauch erwähnte Zeugen Bibliographie Material @@ -143,13 +144,15 @@ Organisation Publikation Nicht-bibliographische Aspekte + Darstellungsinformationen Reihe + Beschreibung des Tag-Gebrauchs Titel (analytisch) Titel (monographisch) Titel (in einem Journal) Titel (in einer Serien) Titel (unveröffentlicht) - Signatur + Bezeichner Datum Land Ort @@ -159,10 +162,10 @@ Exemplar(e) Ort Informationen zur Publikation - Verantwortlich + Verfasserangabe Ort der Veröffentlichung - Nicht-bibliographische Angaben - + Nicht-bibliographische Angaben + Codierung Einband @@ -184,6 +187,6 @@ Höhe Quellenbeschreibung -Sänger + Sänger Musiker \ No newline at end of file diff --git a/add/data/xslt/meiHead2HTML.xsl b/add/data/xslt/meiHead2HTML.xsl index d24ccdf2c..f856faec9 100644 --- a/add/data/xslt/meiHead2HTML.xsl +++ b/add/data/xslt/meiHead2HTML.xsl @@ -1,201 +1,175 @@ - - - - - - - - Created on: Dec 21, 2011 - Author:Johannes Kepper - Author:Benjamin W. Bohl - - - - - - - - - - - - - + + + + + + + + + + + + + Created on: 2011–2024 + Author:Johannes Kepper Author:Benjamin W. Bohl + + + + + + + + + + + + + + + + + + + + + - - - - - - ( - - ) - - - - - ( - - - - - - - - - - ) - - - - - - - - - - - - - - - - - - - - - + - - - - - - ( - - ) - - - - - - - - - - - - + + + + - - - - - ( - - ) - - - - - - - - - - - - address plain - - - - - - - - - - - loadLink(' - - ') - [] - - - - - - - # - - loadLink(' - - ') - - - - - - - - _blank - + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + + address plain + - - - - - - - - - - - - - - - - - value - - - - + + + + + + + + + + + loadLink(' + + ') + [] + + + + + + + # + + loadLink(' + + ') + + + + + + + + _blank + + + + + + + + + + + + + + + + + + + + + + + value + + + + + + + - - - - - - - - - - - - - - - - - - - - - meiHead - - - + - - - + + - - - - - - - - - - - - - - - property - - - - - unit - (: ) - - - - - - - + + + + + + + + + + + + + + + + + + + property + + + + + unit (: ) + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - value - - - - - - - - - - - - - - - section + + + + + - + + + + + + + + + + - propertyList - - - - - - + + section + + + + + propertyList + + + + + + - - - - section - - + + + + section + + + + + propertyList + + + + + + + section + + + + + + + + + + + + + + + + property - propertyList - + key + + + + + + + date + + + - - - - - section - - + + value + + - - - - - - - - - - - - property - - key - - - - - - - date - - - - - - value - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - value - - - - - - - - - - + + + + + + + + + + + value + + + + + + + + + + - - - - - - - section - - - - - propertyList - - - - - - - section - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lang - () - - - - - - - - - - - - - - - - - - : - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - + : + + + + ; + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - - - - + + + + + + + + ( + + ) + + + + + + + + + + + + property + + key + + + + + @@ -930,8 +998,10 @@ - --> - + - - - property - - key - - - - - value - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dur - - - Moll + + + + + property + + key + + + + + value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Dur + + + Moll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + + ] - - - - - - - - - - - - - - - - - + + + + - - - + + ; + + - - - - - - - - - - - - [ - - ] - - - - - - - - ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - - _blank - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + + _blank + + + ) + + + - ) - - - - - - - - - - - - - - property - - key - - - - value - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + property + + key + + + + value + + + + + + + + + + + + - - - - - - property - - key - - - - value - - - - - - - - - - - property - - key - - - - value - - - - - annotHead - - + + + + + + + + + + property + + key + + + + value + + + + + + + + + + + + + property + + key + + + + value + + + + + annotHead + + + + + + + + + + + + + + + + + + + + + + + + + value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + property + + key + + + + value + + + + + + + + + + + - - - - - - - - - - - - - - - value - - - - - - - - - - - - - + + + + + - - - - - - - - - + + + + + + + + + + - - - - - - - property - - key - - - - value - - - - - - - - - - - - - - - - + + + + + - - - - - - + - - - - - - - - - - - - - property - - key - - - - value - - - - - - - - - - - - - - - - - , - , - , - - - - - - - - - - - - - - - - - - - - - - - - - - property - - key - - - - value - - - - - - - - - - - - - - + + + + + + + + + , + , + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + property + + key + + + + value + + + + + + + + + + + + + + + + + + + - - - - subProperty - - - - - unit - (: ) - - - - - - - - - - - - property - - key - - - - value - - - - - - - - - subProperty - - - - - unit - (: ) - - - - - - - - - unit (: ) + + + + + + + + - - - - - property + + + + + + + property + + key + + : + + + + value + + + + + + + + + - key - - - : - - + subproperty + + subkey + + : + + + + value + + + + + + + + + + + + - value - - + property + + key + + + + value + + + - - - - - - subproperty - - subkey - - - : - - - - - value - - - - + + + + + + property + + key + + + + + + + + + + + value + - - - - - - - property - - key - - - - value - - - - - - - - property - - key - - - - - - - - - - - value - - - - - - - - - - - - property - - key - - - - - - - - - - - value - - - - - - - - property - - key - - - - - - - - - - - value - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
+ + + + + + + + + + + - - - - - + + + + + + + + + - - - - - - - - ( - - - - authURI - - - - - - - - - - - - - - - - - ) - - - - - subproperty - - subkey - - - - - label - + + + + + + + + ( + + + + authURI + + + + + + + + + + + + + + + + + ) + + + + + + + subproperty + + subkey + + + + + label + + + + + + + - - - - - - - - subvalue - - - - - - - - - - - property - - key - - - - - - - - - - - value - - - - - - - - property - - key - - - - - - - - - - - value - - - - - - - - subproperty - - subkey - - - - - - - - - - - subvalue - - - - - - - - - - - - + + subvalue + + + + + + + + + + + + + - value - - - - - - - + property + + key + + + + + + + + + + + value + + + - - - - - - property - - key - - - - value - - - - - - - property - - key - - - - value - - - - - - - - property + + + + - key - - - - - - - - - - - - - - - - - - - - + property + + key + + + + + + + + + + + value + + + + + + + - value - - - - - - - - + subproperty + + subkey + + + + + + + + + + + subvalue + + + - - - - - - property - - key - - - - value - - - - - - - - - - - - - - - - - - - - - - - blank_ - - - - - - - - -

- -

-
- - - - color: - - - # - - - - - - - ; - - - font-family: ''; + + + + + + + + + + + + + + value + + + + + + + + + + + + + + + + property + + key + + + + value + + + + + + + + + property + + key + + + + value + + + + + + + + + + property + + key + + + + + + + + + + + + + + + + + + + + + + + value + + + + + + + + + + + + + + + + + property + + key + + + + value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Apply the templates defined in meiP2HTML.xsl for MEI paragraphs. + + + + + + + + + + color: + + + # + + + + + + + ; + + font-family: ''; + font-weight: ''; + + + + + + - - font-weight: ''; + + + + - - - - - - - - - - - - - - - - - [ - - - - - blank_ - - - - - - - Link - - - - ] - - - - - - - - - - - - - - - - - - - - - - - - - - section - - - - - - - - - + + + + + + + [ + + + + + blank_ + + + + + + + Link + + + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + section + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/add/data/xslt/meiP2html.xsl b/add/data/xslt/meiP2html.xsl index a6ea54863..79b6ebb7d 100644 --- a/add/data/xslt/meiP2html.xsl +++ b/add/data/xslt/meiP2html.xsl @@ -1,172 +1,213 @@ - + + - - Created on: Mar 19, 2012 - - Author: Johannes Kepper - + Created on: Mar 19, 2012 + Author: Johannes Kepper + - - - - + + + + + + + + - + - + + - + - +
- +
- +
- + + - - + + + for $seq in (1 to count($nodes)) + return + $seq[deep-equal($nodes[$seq], $nodeToFind)]" /> + + + + + + Disable output for XML comments + + + + + Disable output for XML processing-instructions + + + - + -
- +
+
- + + +

- + - +

+ + - + - + + + + + + Transform mei:ref elements to HTML a-elements. Adds a onclick attribute to handle links with the Edirom Online LinkController. + - + + ref + + loadLink(' - + ', { - - }) + + }); return false; - loadLink(" - - ") + loadLink(' + + '); return false; - + - - + + + + - - color: - - - # - - - - - ; - - - - font-family: ; - - - font-weight: ; - - - font-weight: ; - - - font-style: ; - + color: # ; + font-family: ; + font-weight: ; + font-weight: ; + font-style: ; - + - + - + - + + + + Transform mei:lb to HTML br-element or HTML span-Element with ' | ' as content, depending on its ancestor. + -
+ + + + + - + + + + + | -
+ +
+
+ + - + - + - + - + - - + + - + - + - + -
\ No newline at end of file +
diff --git a/add/data/xslt/tei/profiles/edirom-header/teiHeader2HTML.xsl b/add/data/xslt/tei/profiles/edirom-header/teiHeader2HTML.xsl index 695e2830f..85e6d022e 100755 --- a/add/data/xslt/tei/profiles/edirom-header/teiHeader2HTML.xsl +++ b/add/data/xslt/tei/profiles/edirom-header/teiHeader2HTML.xsl @@ -2,40 +2,46 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - + + + + + + - + + @@ -46,6 +52,10 @@ + + + determine node handling in plainCommaSep mode + @@ -112,6 +122,7 @@ + @@ -119,8 +130,10 @@ + + @@ -134,7 +147,9 @@ + + Override TEI microData template @@ -142,15 +157,19 @@ + + + ( ) + @@ -174,52 +193,70 @@ + + + + + - + + + + + + + + + + + + + + Add a div with class teiHeader then process children @@ -230,6 +267,7 @@ + @@ -241,6 +279,7 @@ + @@ -253,6 +292,7 @@ + @@ -268,9 +308,13 @@ + + + + @@ -282,6 +326,8 @@ + + @@ -315,6 +361,20 @@ + + + + + + + + + + + + + + property @@ -323,44 +383,102 @@ - + date - + value - + + + Ignore tei:date that is immediate child of tei:change + + + + + Ignore tei:name that is immediate child of tei:change + + + + + Ignore tei:orgName that is immediate child of tei:change + + + + + Ignore tei:persName that is immediate child of tei:change + + + + + + + property + + key + + + + + + + value + + + + + + + + + + + + + + + + + + + + + + + + + @@ -377,6 +495,7 @@ + ( @@ -385,23 +504,29 @@ + + + + + + @@ -420,20 +545,6 @@ - - - - respStmt property - - - - - value - - - - - @@ -445,6 +556,8 @@ + + property @@ -458,6 +571,7 @@ + Process element witness @@ -512,24 +626,39 @@ + ( ) + - + + + + + + + + + + + + + + define subProperties for pubStmt @@ -538,13 +667,15 @@ - + + - + + @@ -552,30 +683,37 @@ - + + + + + + + - + + @@ -602,12 +740,16 @@ + + + + @@ -657,6 +850,8 @@ + + @@ -691,11 +886,13 @@ + + @@ -706,13 +903,13 @@ - + @@ -725,10 +922,13 @@ + + + : @@ -744,7 +944,15 @@ ) - + + + + + + + + + @@ -757,7 +965,6 @@ - @@ -767,10 +974,12 @@ + + - postCodeSettlement + postCodeSettlement @@ -784,18 +993,21 @@

+

+ + @@ -813,9 +1025,11 @@ + +
\ No newline at end of file