From e9a12bedb4a0ce37011cb103806e7d54c48a8255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20R=C3=B6wenstrunk?= Date: Fri, 2 Oct 2020 13:52:10 +0200 Subject: [PATCH 1/3] Search for edition and work --- app/Application.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Application.js b/app/Application.js index 77bb654fe..62462f72e 100644 --- a/app/Application.js +++ b/app/Application.js @@ -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; From 9d821238cf1f2b19ef5382dfa1ff2c7665f70bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20R=C3=B6wenstrunk?= Date: Fri, 6 Nov 2020 07:48:15 +0100 Subject: [PATCH 2/3] Find a sources label under different xpaths --- add/data/xqm/source.xqm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/add/data/xqm/source.xqm b/add/data/xqm/source.xqm index 77499c3ea..6bfcdac73 100644 --- a/add/data/xqm/source.xqm +++ b/add/data/xqm/source.xqm @@ -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) + }; (:~ @@ -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() -}; \ No newline at end of file +}; From 1e019ec5193ce8f0e9915df0067e2cc5f900a359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20R=C3=B6wenstrunk?= Date: Wed, 16 Dec 2020 14:47:13 +0100 Subject: [PATCH 3/3] Concordance navigator enabled --- app/view/desktop/TaskBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/view/desktop/TaskBar.js b/app/view/desktop/TaskBar.js index 3aef80fa6..d332c070a 100644 --- a/app/view/desktop/TaskBar.js +++ b/app/view/desktop/TaskBar.js @@ -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