Commit ec4d43f3 authored by Stephan Kreutzer's avatar Stephan Kreutzer

Initial commit.

parents
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2019 Stephan Kreutzer
This file is part of Activities.
Activities is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
Activities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with Activities. If not, see <http://www.gnu.org/licenses/>.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:src="htx-scheme-id://org.groupware-systems.20190227T133048Z/activities#20190512T211200Z" exclude-result-prefixes="src">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<html version="-//W3C//DTD XHTML 1.1//EN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<xsl:text>&#x0A;</xsl:text>
<xsl:comment> This file was created by activities-now-1.xsl of Activities, which is free software licensed under the GNU Affero General Public License 3 or any later version (see https://gitlab.com/groupware-systems/activities/ and http://www.groupware-systems.org). </xsl:comment>
<xsl:text>&#x0A;</xsl:text>
<title>Now</title>
<meta content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" name="viewport"/>
<style type="text/css">
body
{
font-family: sans-serif;
}
.active
{
color: #FFA500;
}
.complete
{
color: #008000;
text-decoration: line-through;
}
</style>
</head>
<body>
<div>
<h1>Now</h1>
<xsl:if test="./src:activities/src:activity[@status='active']">
<ul>
<xsl:apply-templates select="./src:activities/src:activity[@status='active']"/>
</ul>
</xsl:if>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="src:activity[@status='active']">
<li>
<span class="active">
<xsl:apply-templates select="./src:title"/>
</span>
<xsl:if test="./src:sub-activities/src:activity[@status='active']">
<ul>
<xsl:apply-templates select="./src:sub-activities/src:activity[@status='active']"/>
</ul>
</xsl:if>
</li>
</xsl:template>
<xsl:template match="//src:activity/src:title//text()">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="//src:activity/src:title//src:a">
<a href="{@href}"><xsl:value-of select=".//text()"/></a>
</xsl:template>
<xsl:template match="//src:activity/src:description//src:a">
<a href="{@href}"><xsl:value-of select=".//text()"/></a>
</xsl:template>
<xsl:template match="text()"/>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018-2019 Stephan Kreutzer
This file is part of Activities.
Activities is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
Activities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with Activities. If not, see <http://www.gnu.org/licenses/>.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:src="htx-scheme-id://org.groupware-systems.20190227T133048Z/activities#20190512T211200Z" exclude-result-prefixes="src">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<html version="-//W3C//DTD XHTML 1.1//EN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<xsl:text>&#x0A;</xsl:text>
<xsl:comment> This file was created by activities-xhtml-1.xsl of Activities, which is free software licensed under the GNU Affero General Public License 3 or any later version (see https://gitlab.com/groupware-systems/activities/ and http://www.groupware-systems.org). </xsl:comment>
<xsl:text>&#x0A;</xsl:text>
<xsl:comment>
Copyright (C) 2018-2019 Stephan Kreutzer
This program is part of Activities.
Activities is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
Activities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with Activities. If not, see &lt;http://www.gnu.org/licenses/&gt;.
The textual content in the &lt;div id="content"/&gt; is not part of this
program, it's user data that is only processed. A different license may apply.
</xsl:comment>
<xsl:text>&#x0A;</xsl:text>
<title>Activities</title>
<meta content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" name="viewport"/>
<style type="text/css">
body
{
font-family: sans-serif;
}
.active
{
color: #FFA500;
}
.complete
{
color: #008000;
text-decoration: line-through;
}
#content-pane
{
float: left;
width: 50%;
position: relative;
}
#description-pane
{
right: 0;
width: 50%;
border-left: 2px solid black;
box-sizing: border-box;
position: fixed;
}
/*
#content-target
{
padding: 2em;
text-align: justify;
}
*/
#description-target
{
padding: 2em;
text-align: justify;
}
#descriptions
{
display: none;
}
</style>
<script type="text/javascript">
"use strict";
function showDescription(id)
{
hideDescription();
let description = document.getElementsByClassName(id);
if (description == null)
{
return -1;
}
if (description.length &lt;= 0)
{
return -1;
}
let parent = document.getElementById('description-target');
if (parent == null)
{
return -1;
}
let destination = document.createElement("div");
parent.appendChild(destination);
for (let i = 0; i &lt; description.length; i++)
{
let element = description[i].cloneNode(true);
// Otherwise DOM would update description.length as the nodes would
// be cloned with their class attribute, leading to an infinite loop.
element.removeAttribute("class");
destination.appendChild(element);
}
return 0;
}
function hideDescription()
{
let parent = document.getElementById('description-target');
if (parent == null)
{
return -1;
}
let description = parent.getElementsByTagName("div");
// Stupid JavaScript has a cloneNode(deep), but no removeNode(deep).
let removeNode = function(element, parent)
{
while (element.hasChildNodes == true)
{
removeNode(element.lastChild, element);
}
parent.removeChild(element);
}
for (let i = 0; i &lt; description.length; i++)
{
removeNode(description[i], parent);
}
return 0;
}
</script>
</head>
<body>
<div id="content">
<xsl:comment> The textual content in this element and sub-elements is not part of this program, it's user data and might be under a different license than this program. This program also doesn't depend on it or link it as a library, it's only processed. </xsl:comment>
<div id="content-pane">
<h2>Activities</h2>
<div id="content-target">
<xsl:if test="./src:activities/src:activity">
<ul>
<xsl:apply-templates select="./src:activities/src:activity"/>
</ul>
</xsl:if>
</div>
</div>
<div id="description-pane">
<h2>Activity Description</h2>
<div id="description-target">
<div>
<p>
Click an activity item marked with an asterisk (*) at its end to view its description.
</p>
</div>
</div>
</div>
<div id="descriptions" class="descriptions">
<h2>Descriptions</h2>
<xsl:apply-templates select=".//src:description"/>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="src:activity">
<li>
<span>
<xsl:attribute name="onclick">
<xsl:text>showDescription('term-</xsl:text>
<xsl:number format="1" level="any" count="src:activity"/>
<xsl:text>');</xsl:text>
</xsl:attribute>
<xsl:choose>
<xsl:when test="@status='active'">
<xsl:attribute name="class"><xsl:text>active</xsl:text></xsl:attribute>
</xsl:when>
<xsl:when test="@status='complete'">
<xsl:attribute name="class"><xsl:text>complete</xsl:text></xsl:attribute>
<xsl:if test="@completed">
<xsl:value-of select="@completed"/>
<xsl:text>: </xsl:text>
</xsl:if>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="./src:title"/>
</span>
<xsl:if test="./src:description">
<xsl:text>&#x00A0;*</xsl:text>
</xsl:if>
<xsl:if test="./src:sub-activities/src:activity">
<ul>
<xsl:apply-templates select="./src:sub-activities/src:activity"/>
</ul>
</xsl:if>
</li>
</xsl:template>
<xsl:template match="//src:activity/src:title//text()">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="//src:activity/src:title//src:a">
<a href="{@href}"><xsl:value-of select=".//text()"/></a>
</xsl:template>
<xsl:template match="src:description">
<p>
<xsl:attribute name="class">
<xsl:text>term-</xsl:text>
<xsl:number format="1" level="any" count="src:activity"/>
</xsl:attribute>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="//src:activity/src:description//text()">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="//src:activity/src:description//src:a">
<a href="{@href}"><xsl:value-of select=".//text()"/></a>
</xsl:template>
<xsl:template match="text()"/>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2019 Stephan Kreutzer
This file is part of Activities.
Activities is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
Activities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with Activities. If not, see <http://www.gnu.org/licenses/>.
-->
<activities xmlns="htx-scheme-id://org.groupware-systems.20190227T133048Z/activities#20190512T211200Z" xml:lang="en">
<activity status="active" priority="3">
<title>Activity Format</title>
<description>
<p>
A semantic format to make activities/progress transparent. In a first version, no creation or start timestamps are recorded, so no matter how long things took, only completion is tracked for small and big activities alike. No privisions (yet?) regarding filing future activities or archiving completed activities. The project repository can be found at <a href="https://gitlab.com/groupware-systems/activities/">https://gitlab.com/groupware-systems/activities/</a>, the project website is <a href="http://groupware-systems.org">groupware-systems.org</a>.
</p>
</description>
<sub-activities>
<activity status="complete" completed="2019-05-12T21:12:00Z">
<title>Create an activity format and publish my activities</title>
</activity>
<activity status="complete" completed="2019-05-13T21:53:00Z">
<title>Generate renderings/visualizations from the format</title>
</activity>
<activity status="active">
<title>Prepare and publish a GitLab repository for the generator workflow</title>
</activity>
<activity status="filed">
<title>Implement an endpoint that reads/filters the format and allows clients the selection of a particular format/rendering/language via HTTP Header Content-Type/Language negotiation (and alternatively GET-parameters)</title>
</activity>
</sub-activities>
</activity>
</activities>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015-2019 Stephan Kreutzer
This file is part of xml_xslt_transformator_1, a submodule of the
digital_publishing_workflow_tools package.
xml_xslt_transformator_1 is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
xml_xslt_transformator_1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with xml_xslt_transformator_1. If not, see <http://www.gnu.org/licenses/>.
-->
<xml-xslt-transformator-1-jobfile>
<job input-file="./activities.xml" entities-resolver-config-file="./digital_publishing_workflow_tools/xml_xslt_transformator/xml_xslt_transformator_1/entities/config_empty.xml" stylesheet-file="./activities-xhtml-1.xsl" output-file="./activities.xhtml"/>
<job input-file="./activities.xml" entities-resolver-config-file="./digital_publishing_workflow_tools/xml_xslt_transformator/xml_xslt_transformator_1/entities/config_empty.xml" stylesheet-file="./activities-now-1.xsl" output-file="./activities_now.xhtml"/>
</xml-xslt-transformator-1-jobfile>
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This file is part of Activities.
#
# Activities is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# Activities is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with Activities. If not, see <http://www.gnu.org/licenses/>.
java -cp ./digital_publishing_workflow_tools/xml_xslt_transformator/xml_xslt_transformator_1/ xml_xslt_transformator_1 ./jobfile_xml_xslt_transformator_1.xml ./resultinfo_xml_xslt_transformator_1.xml
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This file is part of Activities.
#
# Activities is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# Activities is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with Activities. If not, see <http://www.gnu.org/licenses/>.
java -cp ./digital_publishing_workflow_tools/xml_xslt_transformator/xml_xslt_transformator_1/ xml_xslt_transformator_1 ./jobfile_xml_xslt_transformator_1.xml ./resultinfo_xml_xslt_transformator_1.xml > out.log 2>&1
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This file is part of Activities.
#
# Activities is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# Activities is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with Activities. If not, see <http://www.gnu.org/licenses/>.
# sudo apt-get install wget unzip make openjdk-8-jdk
wget https://gitlab.com/publishing-systems/digital_publishing_workflow_tools/-/archive/master/digital_publishing_workflow_tools-master.zip
unzip ./digital_publishing_workflow_tools-master.zip
mv ./digital_publishing_workflow_tools-master/ ./digital_publishing_workflow_tools/
cd ./digital_publishing_workflow_tools/
make
java -cp ./workflows/setup/setup_1/ setup_1
cd ..
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This file is part of Activities.
#
# Activities is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# Activities is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with Activities. If not, see <http://www.gnu.org/licenses/>.
# sudo apt-get install wget unzip make openjdk-8-jdk
OUTLOG="${PWD}/out.log"
java -version >$OUTLOG 2>&1
wget https://gitlab.com/publishing-systems/digital_publishing_workflow_tools/-/archive/master/digital_publishing_workflow_tools-master.zip >>$OUTLOG 2>&1
unzip ./digital_publishing_workflow_tools-master.zip >>$OUTLOG 2>&1
mv ./digital_publishing_workflow_tools-master/ ./digital_publishing_workflow_tools/ >>$OUTLOG 2>&1
cd ./digital_publishing_workflow_tools/ >>$OUTLOG 2>&1
make >>$OUTLOG 2>&1
java -cp ./workflows/setup/setup_1/ setup_1 >>$OUTLOG 2>&1
cd .. >>$OUTLOG 2>&1
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