Changeset 5870 for cats


Ignore:
Timestamp:
12/01/14 10:29:12 (9 years ago)
Author:
Menzo Windhouwer
Message:

M mod-ISOcat-manage-system/manage/dump.acc

  • fixes to the DC and workspace dump
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-manage-system/manage/dump.acc

    r5845 r5870  
    9393                            {
    9494                                for $id in $dcs//row/id return
    95                                     for $ext in ('.dcif','.rdf','/context.html','/context.xml','/history.xml','/history.html','/history.atom') return
     95                                    for $ext in ('.dcif','.rdf') return
    9696                    <instr>
    9797                        <type>copy</type>
     
    102102                            {
    103103                                for $id in $dcs//row/id return
     104                                        for $ext in ('context.html','context.xml','history.xml','history.html') return
     105                        <instr>
     106                                <type>copy</type>
     107                                <operand>ffcpl:/isocat/rest/dc/{string($id)}/{$ext}+method@data:text/plain,GET</operand>
     108                                <target>file://{string($dir)}/rest/dc/{string($id)}-{$ext}</target>
     109                        </instr>
     110                        }
     111                        {
     112                                for $id in $dcs//row/id return
    104113                                <instr>
    105114                                        <type>xslt2</type>
     
    108117                                                <xsl:stylesheet
    109118                                                        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    110                                                         version="2.0"
    111                                                         xpath-default-namespace="http://www.w3.org/1999/xhtml"
    112                                                         xmlns="http://www.w3.org/1999/xhtml">
     119                                                        version="2.0">
    113120                                                        <xsl:output method="xml" encoding="utf-8"/>
    114121                                                       
     
    124131                                                                                <xsl:when test="matches(.,'.^*/interface/.*$')">
    125132                                                                                        <xsl:value-of select="replace(.,'^.*(/interface/.*)$','$1')"/>
     133                                                                                </xsl:when>
     134                                                                                <xsl:when test="matches(.,'.^*/history$')">
     135                                                                                        <xsl:value-of select="replace(.,'/history','-history')"/>
     136                                                                                </xsl:when>
     137                                                                                <xsl:when test="matches(.,'.^*/context')">
     138                                                                                        <xsl:value-of select="replace(.,'/context','-context')"/>
    126139                                                                                </xsl:when>
    127140                                                                                <xsl:otherwise>
     
    144157                                                                </xsl:attribute>
    145158                                                        </xsl:template>
    146                                                        
    147                                                         <xsl:template match="tr[td='View']"/>
    148159                                                       
    149160                                                        <xsl:template match="a[@target='forum']" priority="1">
     
    502513                                <instr>
    503514                                        <type>copy</type>
    504                                         <operand>ffcpl:/rest/user/guest/workspace{$ext}</operand>
     515                                        <operand>ffcpl:/rest/user/guest/workspace{$ext}+method@data:text/plain,GET</operand>
    505516                                        <target>file://{string($dir)}/rest/user/guest/workspace{$ext}</target>
    506517                                </instr>
Note: See TracChangeset for help on using the changeset viewer.