forked from kb-dk/MerMEId
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from Edirom/issue-110
rework site structure
- Loading branch information
Showing
12 changed files
with
100 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<h:span xmlns:h="http://www.w3.org/1999/xhtml" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
xmlns:xf="http://www.w3.org/2002/xforms" | ||
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | ||
xmlns:ev="http://www.w3.org/2001/xml-events" | ||
xmlns:m="http://www.music-encoding.org/ns/mei" | ||
xmlns:dcm="http://www.kb.dk/dcm"> | ||
|
||
<!-- Footer --> | ||
|
||
<h:div class="logo"> | ||
<xf:trigger appearance="minimal"> | ||
<xf:label> | ||
<h:img alt="MerMEId - logo" | ||
title="About MerMEId" | ||
src="{instance('parameters')/dcm:server_name}/editor/images/mermeid_12px.png" | ||
border="0"/> | ||
</xf:label> | ||
<xxf:show dialog="about-dialog" ev:event="DOMActivate"/> | ||
</xf:trigger> | ||
</h:div> | ||
|
||
|
||
<xxf:dialog id="about-dialog" | ||
appearance="full" | ||
level="modal" | ||
close="true" | ||
draggable="false" | ||
visible="false"> | ||
|
||
<h:div class="about_header"> | ||
<h:img src="/editor/images/mermeid_30px.png" | ||
alt="MerMEId logo" border="0" | ||
style="margin-bottom: 10px;"/> | ||
</h:div> | ||
|
||
<h:div class="about_main"> | ||
|
||
<!--<p style="text-align:center"> | ||
<xi:include href="/editor/version.txt" parse="text"/> | ||
</p>--> | ||
<h:p style=""> </h:p> | ||
|
||
<h:p>MerMEId (Metadata Editor and Repository for MEI Data) is written | ||
and distributed by:</h:p> | ||
|
||
<h:p>Danish Centre for Music Editing (DCM)<h:br/> | ||
<h:a href="http://www.kb.dk/">Royal Danish Library</h:a><h:br/> | ||
P.O.Box 2149<h:br/> | ||
DK - 1016 Copenhagen<h:br/></h:p> | ||
|
||
<h:p>Authors: Sigfrid Lundberg (<h:a href="mailto:[email protected]">[email protected]</h:a>) | ||
& Axel Teich Geertinger (<h:a href="mailto:[email protected]">[email protected]</h:a>)</h:p> | ||
|
||
<h:p>MerMEId is open-source software released under the <h:a | ||
href="http://www.apache.org/licenses/LICENSE-2.0" title="See | ||
Apache License 2.0" target="_blank" >Apache License version | ||
2.0</h:a></h:p> | ||
<h:p>The software is provided "as is". Use at own risk. Neither the authors, DCM, <h:br/> | ||
nor the Royal Danish Library can be held responsible for any costs or loss of data <h:br/> | ||
caused by the use of this software.</h:p> | ||
|
||
</h:div> | ||
|
||
<h:div class="about_footer"> | ||
<h:img src="/editor/images/dcm_logo_long_text_dark.png" alt="DCM logo" border="0" | ||
style="margin-right:30px;"/> | ||
<h:a href="http://www.kb.dk/en/" | ||
title="Royal Danish Library"><h:img src="/editor/images/kb.png" | ||
alt="Royal Danish Library - Logo" border="0"/></h:a> | ||
</h:div> | ||
</xxf:dialog> | ||
</h:span> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<h:div xmlns:h="http://www.w3.org/1999/xhtml" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
xmlns:xf="http://www.w3.org/2002/xforms" | ||
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | ||
xmlns:ev="http://www.w3.org/2001/xml-events" | ||
xmlns:m="http://www.music-encoding.org/ns/mei" | ||
xmlns:dcm="http://www.kb.dk/dcm"> | ||
|
||
<!-- Footer --> | ||
<!-- Taken from properties.xml --> | ||
|
||
<xf:output ref="instance('parameters')/dcm:footer" mediatype="text/html"/> | ||
|
||
</h:div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
xquery version "3.1"; | ||
|
||
declare namespace exist="http://exist.sourceforge.net/NS/exist"; | ||
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization"; | ||
|
||
import module namespace transform = "http://exist-db.org/xquery/transform"; | ||
|
||
import module namespace config="https://github.com/edirom/mermeid/config" at "config.xqm"; | ||
|
||
import module namespace console="http://exist-db.org/xquery/console"; | ||
|
||
declare option exist:serialize "method=xml media-type=application/xml"; | ||
|
||
let $inputDoc := (doc(request:get-attribute('transform.doc')), request:get-data())[1] | ||
let $footer := config:get-property('footer') => config:replace-properties() => serialize(<output:serialization-parameters><output:method>xml</output:method></output:serialization-parameters>) | ||
|
||
return transform:transform($inputDoc, doc(request:get-attribute('transform.stylesheet')), <parameters> | ||
<param name="xslt.resources-endpoint" value="{config:get-property('exist_endpoint')}/resources"/> | ||
<param name="xslt.exist-endpoint-seen-from-orbeon" value="{$config:exist-endpoint-seen-from-orbeon}"/> | ||
<param name="xslt.orbeon-endpoint" value="{$config:orbeon-endpoint}"/> | ||
<param name="xslt.server-name" value="{config:get-property('exist_endpoint')}"/> | ||
<param name="xslt.document-root" value="/data/"/> | ||
<param name="xslt.footer" value="{$footer}"/> | ||
</parameters>, <attributes></attributes>, "method=xml media-type=application/xml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Dedicated CSS file for styling of footer | ||
* to be used both in list view and forms | ||
*/ | ||
div.footer, p.footer { | ||
margin: 0 -20px 20px -20px; | ||
padding: 10px 20px; | ||
} | ||
|
||
.footer, .footer a:link, .footer a:visited, .footer a:active { | ||
color: #ccc; | ||
} | ||
|
||
div.footer .version { | ||
margin-top: 12px; | ||
float:right; | ||
} | ||
|
||
div.footer div.dev{ | ||
margin-top: 10px; | ||
} | ||
|
||
div.footer img{ | ||
vertical-align: middle; | ||
margin-left: 10px; | ||
} | ||
|
||
div.footer #dcm-logo{ | ||
height:30px; | ||
} | ||
|
||
div.footer #github-contributors{ | ||
height: 23px; | ||
} | ||
|
||
.footer .nav { | ||
text-align:center; | ||
} | ||
|
||
.footer .nav ul { | ||
padding:0; | ||
} | ||
|
||
.footer .nav li { | ||
list-style-type:none; | ||
margin: 0 2em; | ||
display:inline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters