Commit 4f40da90 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

Merge branch 'feature/new-release-info-#33' into 'develop'

Add a draft for info about new stuff (closes #33)

Closes #33

See merge request !45
parents 98de6560 38472b47
......@@ -19,8 +19,8 @@
</filterset>
</copy>
<mkdir dir="${build.dir}"/>
<zip basedir="." destfile="${destfile}"
excludes="${build.dir}/*,${test.dir}/*"/>
<zip basedir="." destfile="${destfile}" defaultexcludes="no"
excludes=".git/,${build.dir}/,${test.dir}/"/>
</target>
<target name="cleanup">
......
......@@ -11,12 +11,14 @@ import module namespace config="https://sade.textgrid.de/ns/config" at "config.x
import module namespace templates="http://exist-db.org/xquery/templates" ;
import module namespace functx="http://www.functx.com";
declare namespace expath="http://expath.org/ns/pkg";
declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
declare namespace repo="http://exist-db.org/xquery/repo";
declare namespace tei="http://www.tei-c.org/ns/1.0";
declare namespace test="http://exist-db.org/xquery/xqsuite";
declare namespace tgmd="http://textgrid.info/namespaces/metadata/core/2010";
declare namespace tgrel="http://textgrid.info/relation-ns#";
declare namespace expath="http://expath.org/ns/pkg";
declare namespace xhtml="http://www.w3.org/1999/xhtml";
declare namespace xqdoc="http://www.xqdoc.org/1.0";
declare variable $app:expath := doc($config:app-root || "/expath-pkg.xml");
......@@ -469,6 +471,27 @@ if(not($newpw)) then () else
</div>
};
declare function app:current-version($node as node(), $model as map(*)) {
string($config:expath-descriptor/@version)
};
declare function app:new-features($node as node(), $model as map(*)) {
<div class="alert alert-light" role="alert">
<h4>The current version encompasses the following <strong>new features</strong>:</h4>
{$config:repo-descriptor//repo:change
[@version = string($config:expath-descriptor/@version)]
//xhtml:li[@class="feat"]/*}
</div>,
<div class="alert alert-light" role="alert">
<h4>The following <strong>bugs</strong> have been seen to:</h4>
{$config:repo-descriptor//repo:change
[@version = string($config:expath-descriptor/@version)]
//xhtml:li[@class="bugs"]/*}
</div>
};
declare function local:check-dba()
as xs:boolean {
sm:id()//*:username => string() => sm:is-dba()
......
......@@ -65,6 +65,7 @@ declare function config:key-available($key as xs:string) as xs:boolean {
: A function to query the app repo config.
: @param $key – the name of the element to query for
: :)
declare function config:repoget($key as xs:string){
declare function config:repoget($key as xs:string)
as xs:string? {
$config:repo-descriptor//*[local-name() = $key] ! string(.)
};
......@@ -13,5 +13,35 @@
<target>sade</target>
<prepare>pre-install.xq</prepare>
<finish>post-install.xq</finish>
<changelog>
<change version="4.0.0">
<ul xmlns="http://www.w3.org/1999/xhtml">
<li class="feat">Features
<ul>
<li>Updated third party software (e.g. Bootstrap, jQuery, TEI stylesheets, ...)</li>
<li>Added an environment for easy local testing</li>
<li>Added a server sided mechanism for displaying TEI encoding</li>
<li>Added the possibility to generate call graphs for developing, docs, ...</li>
<li>Increased the overall frontend usability</li>
<li>Ensured compatibility to Windows</li>
<li>Updated the technical info page</li>
<li>Updated the documentation</li>
<li>Added a contribution guide</li>
<li>Slight changes in the navigation bar</li>
</ul>
</li>
<li class="bugs">Bugs
<ul>
<li>Incompatibilities between TEI's CSS and SADE's</li>
<li>enable IIIF short URLs</li>
<li>Minor bugs in the Confluence wiki parser</li>
<li>Minor bugs in the publish/forking process</li>
<li>Minor bugs in the search</li>
</ul>
</li>
</ul>
</change>
</changelog>
<deployed>2017-11-20T08:57:24.135+01:00</deployed>
</meta>
......@@ -128,8 +128,21 @@
</div> <!-- / .row -->
</div> <!-- / .container -->
<!-- NEW FEATURES OF THE CURRENT RELEASE
================================================== -->
<div class="container" id="featured">
<div class="row">
<div class="col-sm-12">
<h1 class="block-header">
<span>What's new in <span data-template="app:current-version"/></span>
</h1>
</div>
</div>
<div class="row" data-template="app:new-features"/>
</div>
<!-- FEATRUED WORKS
<!-- FEATURED WORKS
================================================== -->
<div class="container" id="featured">
<div class="row">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment