Skip to content

Commit

Permalink
Merge pull request #2 from BeethovensWerkstatt/develop
Browse files Browse the repository at this point in the history
Beethoven features

* search for edition and work
* alternatively get source labels from different xpath, but always return a string
* reactivate concordance navigator

all seem plausible to me
  • Loading branch information
bwbohl authored Feb 9, 2021
2 parents ca0dd05 + 1e019ec commit 1bb49fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
13 changes: 11 additions & 2 deletions add/data/xqm/source.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,16 @@ declare function source:getLabels($sources as xs:string*, $edition as xs:string)
declare function source:getLabel($source as xs:string, $edition as xs:string) as xs:string {

let $language := eutil:getLanguage($edition)
return doc($source)//mei:source/mei:titleStmt/data(mei:title[not(@xml:lang) or @xml:lang = $language])
let $label := doc($source)//mei:source/mei:titleStmt/mei:title[not(@xml:lang) or @xml:lang = $language]
let $label := if($label)
then($label)
else(doc($source)//mei:meiHead/mei:fileDesc/mei:titleStmt/mei:title[not(@xml:lang) or @xml:lang = $language])
let $label := if($label)
then($label)
else('unknown title')
return
string($label)

};

(:~
Expand Down Expand Up @@ -98,4 +107,4 @@ declare function source:getSiglaAsArray($sources as xs:string*) as xs:string* {
declare function source:getSiglum($source as xs:string) as xs:string? {

doc($source)//mei:source/mei:identifier[@type eq 'siglum'][1]//text()
};
};
5 changes: 2 additions & 3 deletions app/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ Ext.define('EdiromOnline.Application', {
'EdiromOnline.view.desktop.App'
],

//TODO:
activeEdition: 'xmldb:exist:///db/contents/h-moll/edition.xml',
/* activeWork: 'edirom_work_743373fb-4dcf-4329-90c0-fd1eacc9ea69', */
activeEdition: '',
activeWork: '',

launch: function() {
var me = this;
Expand Down
2 changes: 1 addition & 1 deletion app/view/desktop/TaskBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Ext.define('EdiromOnline.view.desktop.TaskBar', {
me.windowSort,
me.globalTools,
//me.desktopSwitch,
//me.quickStart,
me.quickStart,
{
xtype: 'splitter', html: ' ',
height: 14, width: 2, // TODO - there should be a CSS way here
Expand Down

0 comments on commit 1bb49fb

Please sign in to comment.