|
|
@@ -16,6 +16,7 @@
|
|
|
|
|
|
|
|
|
<xsl:param name="PROCES_INIT_tree.ditamap" select="'PROCES_INIT_tree.ditamap'"/> <!-- file behind will be created dita files -->
|
|
|
+ <xsl:param name="TargetNamespaceBindings" select="'https://biuro.biall-net.pl'"/>
|
|
|
<!-- <xsl:param name="temp" required="yes"/>
|
|
|
<xsl:param name="uuid" required="yes"/>-->
|
|
|
|
|
|
@@ -41,7 +42,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <xsl:template match="CRM_IMAGE_CRM_PROCES" mode="postprocess_images">
|
|
|
+ <xsl:template match="CRM_IMAGE_CRM_PROCES|CRM_IMAGE_CRM_LISTA_ZASOBOW" mode="postprocess_images">
|
|
|
<xsl:variable name="ext" select="substring-after(TYPE,'/')"/>
|
|
|
<base64_to_image srcfile="{$temp}/{$uuid}/{ID}_image.base64.{$ext}" dstfile="{$temp}/{$uuid}/{ID}_image.{$ext}" />
|
|
|
</xsl:template>
|
|
|
@@ -59,7 +60,7 @@
|
|
|
<xsl:apply-templates mode="#current"/>
|
|
|
</xsl:template>-->
|
|
|
|
|
|
- <xsl:template match="PROCES_TREE|PROCES_INIT" mode="ditamap_root">
|
|
|
+ <xsl:template match="PROCES_TREE|PROCES_INIT|PROCES_GROUP_1|PROCES_GROUP_2" mode="ditamap_root">
|
|
|
<map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:map.xsd">
|
|
|
<title>
|
|
|
@@ -125,7 +126,26 @@
|
|
|
<image href="{ID}_image.{$ext}" width="{WIDTH}"></image>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
-
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="IF_TRUE_GOTO" mode="example">
|
|
|
+ <xsl:variable name="text" select="text()"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="text() = '0'"/>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="//PROCES_INIT[ID/text()= $text]"><note>Wyzwala procedurę: <xref href="{text()}_topic.dita"/></note></xsl:when>
|
|
|
+ <xsl:when test="//PROCES[ID/text()= $text]"><note>Odniesienie do kroku: <xref href="#task_{text()}" format="dita"/></note></xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <note>Wyzwala do procedurę <xsl:value-of select="$text"/> (niewidoczna w tym opracowaniu)
|
|
|
+ <xref
|
|
|
+ href="{$TargetNamespaceBindings}/SE/version-git/procesy5.php?task=PROCES_VIEW_LIST&HIDE_PANEL=1&id_proces={text()}"
|
|
|
+ format="html" scope="external"/>
|
|
|
+ </note>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="*|text()|comment()" mode="example"/>
|
|
|
@@ -153,14 +173,23 @@
|
|
|
<xsl:apply-templates select="$system_cache__appinfo:escaped_html_to_xml" mode="system_cache__appinfo:extract_text"/>
|
|
|
<!--<xsl:value-of select="DESC"/>-->
|
|
|
</title>
|
|
|
- <shortdesc><!--<xsl:value-of select="OPIS"/>-->
|
|
|
+ <!--<shortdesc><!-\-<xsl:value-of select="OPIS"/>-\->
|
|
|
<xsl:variable name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
- <xsl:call-template name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
+ <!-\-<xsl:call-template name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
+ <xsl:with-param name="html" select="OPIS"/>
|
|
|
+ </xsl:call-template>-\->
|
|
|
+ <xsl:call-template name="escaped_html_to_xml_and_surrounded_enter">
|
|
|
+ <xsl:with-param name="enter_surround_to" select="'p'"/>
|
|
|
<xsl:with-param name="html" select="OPIS"/>
|
|
|
</xsl:call-template>
|
|
|
+
|
|
|
+ <xsl:apply-templates mode="enter_to_ph" select="OPIS">
|
|
|
+ <xsl:with-param name="element" select="'bodydiv'"/>
|
|
|
+ <xsl:with-param name="count" select="2"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
</xsl:variable>
|
|
|
<xsl:apply-templates select="$system_cache__appinfo:escaped_html_to_xml" mode="system_cache__appinfo:extract_text"/>
|
|
|
- </shortdesc>
|
|
|
+ </shortdesc>-->
|
|
|
<prolog>
|
|
|
<author><xsl:value-of select="A_RECORD_CREATE_AUTHOR"/> w <xsl:value-of select="A_RECORD_CREATE_DATE"/></author>
|
|
|
<!--<change-historylist>
|
|
|
@@ -172,16 +201,41 @@
|
|
|
</change-historylist>-->
|
|
|
</prolog>
|
|
|
<taskbody>
|
|
|
+
|
|
|
<!--<context>
|
|
|
<p></p>
|
|
|
</context>-->
|
|
|
+
|
|
|
+ <example>
|
|
|
+ <xsl:variable name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
+ <xsl:call-template name="escaped_html_to_xml_and_surrounded_enter" exclude-result-prefixes="#all">
|
|
|
+ <xsl:with-param name="enter_surround_to" select="'p'"/>
|
|
|
+ <xsl:with-param name="html" select="OPIS"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph" select="$system_cache__appinfo:escaped_html_to_xml//text()" exclude-result-prefixes="#all">
|
|
|
+ <xsl:with-param name="element" select="'bodydiv'"/>
|
|
|
+ <xsl:with-param name="count" select="1"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:for-each select="//IF_TRUE_GOTO[ text()= current()/ID/text()]">
|
|
|
+ <note>Procedura wyzwalana z <xref href="{ ancestor::node()[ name()='PROCES_INIT'][1]/ID}_topic.dita#task_{ ../ID}"/></note>
|
|
|
+ </xsl:for-each>
|
|
|
+ </example>
|
|
|
+
|
|
|
+
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="CRM_WSKAZNIK">
|
|
|
<postreq>zasoby:
|
|
|
- <ol>
|
|
|
- <li/>
|
|
|
+ <xsl:variable name="task_resources_info">
|
|
|
<xsl:apply-templates mode="task_resources_info"/>
|
|
|
- </ol>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$task_resources_info/*">
|
|
|
+ <ol>
|
|
|
+ <xsl:copy-of select="$task_resources_info"/>
|
|
|
+ </ol>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
</postreq>
|
|
|
</xsl:when>
|
|
|
</xsl:choose>
|
|
|
@@ -237,14 +291,7 @@
|
|
|
</xsl:variable>
|
|
|
<xsl:apply-templates select="$system_cache__appinfo:escaped_html_to_xml" mode="system_cache__appinfo:extract_text"/>
|
|
|
</title>
|
|
|
- <shortdesc><!--<xsl:value-of select="OPIS"/>-->
|
|
|
- <xsl:variable name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
- <xsl:call-template name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
- <xsl:with-param name="html" select="OPIS"/>
|
|
|
- </xsl:call-template>
|
|
|
- </xsl:variable>
|
|
|
- <xsl:apply-templates select="$system_cache__appinfo:escaped_html_to_xml" mode="system_cache__appinfo:extract_text"/>
|
|
|
- </shortdesc>
|
|
|
+
|
|
|
<prolog>
|
|
|
<author><xsl:value-of select="A_RECORD_CREATE_AUTHOR"/></author>
|
|
|
<!--<change-historylist>
|
|
|
@@ -257,15 +304,36 @@
|
|
|
</prolog>
|
|
|
<taskbody>
|
|
|
<example>
|
|
|
- <xsl:apply-templates mode="example"/>
|
|
|
+
|
|
|
+ <xsl:variable name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
+ <xsl:call-template name="escaped_html_to_xml_and_surrounded_enter" exclude-result-prefixes="#all">
|
|
|
+ <xsl:with-param name="enter_surround_to" select="'p'"/>
|
|
|
+ <xsl:with-param name="html" select="OPIS"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:apply-templates mode="enter_to_ph" select="$system_cache__appinfo:escaped_html_to_xml//text()" exclude-result-prefixes="#all">
|
|
|
+ <xsl:with-param name="element" select="'bodydiv'"/>
|
|
|
+ <xsl:with-param name="count" select="1"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ <xsl:for-each select="//IF_TRUE_GOTO[ text()= current()/ID/text()]">
|
|
|
+ <note>Odwołanie wewnętrzne do procedury wyzwalane z <xref href="{ ancestor::node()[ name()='PROCES_INIT'][1]/ID}_topic.dita#task_{ ../ID}"/></note>
|
|
|
+ </xsl:for-each>
|
|
|
+
|
|
|
+ <xsl:apply-templates mode="example"/> <!-- obslugije m.in wyzwalane procedury -->
|
|
|
</example>
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="CRM_WSKAZNIK">
|
|
|
+ <xsl:variable name="task_resources_info">
|
|
|
+ <xsl:apply-templates mode="task_resources_info"/>
|
|
|
+ </xsl:variable>
|
|
|
<postreq>zasoby:
|
|
|
- <ol>
|
|
|
- <li/>
|
|
|
- <xsl:apply-templates mode="task_resources_info"/>
|
|
|
- </ol>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$task_resources_info/*">
|
|
|
+ <ol>
|
|
|
+ <xsl:copy-of select="$task_resources_info"/>
|
|
|
+ </ol>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
</postreq>
|
|
|
</xsl:when>
|
|
|
</xsl:choose>
|
|
|
@@ -431,6 +499,7 @@
|
|
|
|
|
|
<xsl:template mode="task_resources_info" match="CRM_LISTA_ZASOBOW">
|
|
|
<xsl:comment>#432 match="CRM_LISTA_ZASOBOW" mode="task_resources_info" </xsl:comment>
|
|
|
+ <xsl:apply-templates mode="example"/>
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="TYPE='KOMORKA'">
|
|
|
<p>
|
|
|
@@ -441,7 +510,11 @@
|
|
|
<xsl:with-param name="html" select="OPIS[1]"/>
|
|
|
</xsl:call-template>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="not(DESC/text()=DESC_PL/text())"><ph> <xsl:value-of select="DESC_PL"/></ph></xsl:if>
|
|
|
+ <xsl:if test="not(DESC/text()=DESC_PL/text())"><ph> <!--<xsl:value-of select="DESC_PL"/>-->
|
|
|
+ <xsl:call-template name="system_cache__appinfo:escaped_html_to_xml">
|
|
|
+ <xsl:with-param name="html" select="DESC_PL"/>
|
|
|
+ </xsl:call-template>
|
|
|
+ </ph></xsl:if>
|
|
|
</codeblock>
|
|
|
</p>
|
|
|
</xsl:when>
|