Changeset 5786 for cats


Ignore:
Timestamp:
11/09/14 07:49:27 (10 years ago)
Author:
Menzo Windhouwer
Message:

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

  • more complete ISOcat dump

M mod-ISOcat-site/pub/isocat.pub

  • fixed DCIF schema reference
Location:
cats/ISOcat/trunk
Files:
14 edited

Legend:

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

    r5761 r5786  
    4646                    <operand>var:res</operand>
    4747                    <operator>
    48                         <xpath>/fls/dir/(text())[1]='datcat'</xpath>
     48                        <xpath>/fls/dir/(text())[1]='rest'</xpath>
    4949                    </operator>
    5050                    <target>this:cond</target>
     
    5757                        <ex>
    5858                            <id>ISOcat[BAD REQUEST]</id>
    59                             <message>Dump directory already contains a filled datcat directory!</message>
     59                            <message>Dump directory already contains a filled rest directory!</message>
    6060                        </ex>
    6161                    </operand>
     
    7373            </else>
    7474        </if>
     75        <!-- Data Categories -->
    7576        <instr>
    7677            <type>ISOcat.access.data.query</type>
     
    9091            <type>sloot.xquery</type>
    9192            <operator>
    92                 <idoc>{
    93                     for $id in $dcs//row/id return
    94                         for $ext in ('.dcif','.html','.rdf') return
    95                             <instr>
    96                                 <type>copy</type>
    97                                 <operand>ffcpl:/isocat/rest/dc/{string($id)}{$ext}+method@data:text/plain,GET</operand>
    98                                 <target>file://{string($dir)}/datcat/DC-{string($id)}{$ext}</target>
    99                             </instr>
    100                 }</idoc>
     93                <idoc>
     94                            {
     95                                for $id in $dcs//row/id return
     96                                    for $ext in ('.dcif','.html','.rdf') return
     97                    <instr>
     98                        <type>copy</type>
     99                        <operand>ffcpl:/isocat/rest/dc/{string($id)}{$ext}+method@data:text/plain,GET</operand>
     100                        <target>file://{string($dir)}/rest/dc/{string($id)}{$ext}</target>
     101                    </instr>
     102                            }
     103                            {
     104                                for $id in $dcs//row/id return
     105                                <instr>
     106                                        <type>xslt2</type>
     107                                        <operand>ffcpl:/isocat/rest/dc/{string($id)}.dcif+dcif-cleanup@data:text/plain,false+method@data:text/plain,GET</operand>
     108                                        <operator>
     109                                                <xsl:stylesheet
     110                                                        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     111                                                        version="2.0">
     112                                                        <xsl:output method="xml" encoding="utf-8"/>
     113                                                       
     114                                                        <xsl:template match="@*|node()">
     115                                                                <xsl:copy>
     116                                                                        <xsl:apply-templates select="@*|node()"/>
     117                                                                </xsl:copy>
     118                                                        </xsl:template>
     119                                                       
     120                                                        <xsl:template match="/html/head/link/@href" priority="1">
     121                                                                <xsl:copy>
     122                                                                        <xsl:value-of select="replace(.,'.*/interface/','/interface/')"/>
     123                                                                </xsl:copy>
     124                                                        </xsl:template>
     125
     126                                                        <xsl:template match="/html/head/script/@src" priority="1">
     127                                                                <xsl:copy>
     128                                                                        <xsl:value-of select="replace(.,'.*/interface/','/interface/')"/>
     129                                                                </xsl:copy>
     130                                                        </xsl:template>
     131                                                       
     132                                                </xsl:stylesheet>
     133                                               
     134                                        </operator>
     135                                        <target>file://{string($dir)}/rest/dc/{string($id)}.html</target>
     136                                </instr>
     137                        }
     138                        {
     139                                for $id in $dcs//row/id return
     140                        <instr>
     141                                <type>copy</type>
     142                                <operand>ffcpl:/isocat/rest/dc/{string($id)}.dcif+dcif-cleanup@data:text/plain,false+method@data:text/plain,GET</operand>
     143                                <target>file://{string($dir)}/rest/dc/{string($id)}.cat</target>
     144                        </instr>
     145                        }
     146                        <instr>
     147                                <type>copy</type>
     148                                <operand>ffcpl:/interface/JSXAPPS/ISOcat/css/style.css</operand>
     149                                <target>file://{string($dir)}/interface/JSXAPPS/ISOcat/css/style.css</target>
     150                            </instr>
     151                        <instr>
     152                                <type>copy</type>
     153                                <operand>ffcpl:/interface/addins/jquery/js/jquery-1.6.4.js</operand>
     154                                <target>file://{string($dir)}/interface/addins/jquery/js/jquery-1.6.4.js</target>
     155                        </instr>
     156                </idoc>
    101157            </operator>
    102158            <dir>var:dir</dir>
     
    113169            <type>dpml</type>
    114170            <operand>var:dpml</operand>
    115             <target>this:response</target>
    116         </instr>
    117         <instr>
     171            <target>var:void</target>
     172        </instr>
     173        <!-- Data Category Selections -->
     174        <instr>
     175                <type>ISOcat.access.data.query</type>
     176                <query>
     177                        <sql>
     178                                SELECT
     179                                        id
     180                                FROM
     181                                        core_data_category_selection
     182                                --LIMIT 1
     183                                ;
     184                        </sql>
     185                </query>
     186                <target>var:dcss</target>
     187        </instr>
     188        <instr>
     189                <type>sloot.xquery</type>
     190                <operator>
     191                        <idoc>
     192                                {
     193                                                for $id in $dcss//row/id return
     194                                                for $ext in ('.dcif','.xml','.html') return
     195                                <instr>
     196                                        <type>copy</type>
     197                                        <operand>ffcpl:/isocat/rest/dcs/{string($id)}{$ext}+method@data:text/plain,GET</operand>
     198                                        <target>file://{string($dir)}/rest/dcs/{string($id)}{$ext}</target>
     199                                </instr>
     200                                }
     201                        </idoc>
     202                </operator>
     203                <dir>var:dir</dir>
     204                <dcss>var:dcss</dcss>
     205                <target>var:dpml</target>
     206        </instr>
     207        <accessor-debug>
     208                <instr>
     209                        <type>log</type>
     210                        <operand>var:dpml</operand>
     211                </instr>
     212        </accessor-debug>
     213        <instr>
     214                <type>dpml</type>
     215                <operand>var:dpml</operand>
     216                <target>var:void</target>
     217        </instr>
     218        <!-- Profiles -->
     219        <instr>
     220                <type>ISOcat.access.data.query</type>
     221                <query>
     222                        <sql>
     223                                SELECT
     224                                id
     225                                FROM
     226                                core_profile
     227                                --LIMIT 1
     228                                ;
     229                        </sql>
     230                </query>
     231                <target>var:profs</target>
     232        </instr>
     233        <instr>
     234                <type>sloot.xquery</type>
     235                <operator>
     236                        <idoc>
     237                                {
     238                                        for $id in $profs//row/id return
     239                                                for $ext in ('.dcif','.xml','.html') return
     240                                <instr>
     241                                        <type>copy</type>
     242                                        <operand>ffcpl:/isocat/rest/profile/{string($id)}{$ext}+method@data:text/plain,GET</operand>
     243                                        <target>file://{string($dir)}/rest/profile/{string($id)}{$ext}</target>
     244                                </instr>
     245                                }
     246                        </idoc>
     247                </operator>
     248                <dir>var:dir</dir>
     249                <profs>var:profs</profs>
     250                <target>var:dpml</target>
     251        </instr>
     252        <accessor-debug>
     253                <instr>
     254                        <type>log</type>
     255                        <operand>var:dpml</operand>
     256                </instr>
     257        </accessor-debug>
     258        <instr>
     259                <type>dpml</type>
     260                <operand>var:dpml</operand>
     261                <target>var:void</target>
     262        </instr>
     263        <!-- Schemas -->
     264        <instr>
     265                <type>sloot.xquery</type>
     266                <operator>
     267                        <idoc>
     268                                {
     269                                                for $schema in ('DCIF','DCIF-1_3_2','DCIF-1_3_1','DCIF-1_3','DCIF-1_2_1','DCIF-1_2','DCIF-1_1_2','DCIF-1_1_1','DCIF-1_1','DCIF-1_0','DCR','DCR-1_2','DCR-1_1','DCR-1_0') return
     270                                                for $ext in ('.html','.rng','.rnc') return
     271                                <instr>
     272                                        <type>copy</type>
     273                                        <operand>ffcpl:/isocat/12620/schemas/{string($schema)}{$ext}</operand>
     274                                        <target>file://{string($dir)}/12620/schemas/{string($schema)}{$ext}</target>
     275                                </instr>
     276                                }
     277                        </idoc>
     278                </operator>
     279                <dir>var:dir</dir>
     280                <target>var:dpml</target>
     281        </instr>
     282        <accessor-debug>
     283                <instr>
     284                        <type>log</type>
     285                        <operand>var:dpml</operand>
     286                </instr>
     287        </accessor-debug>
     288        <instr>
     289                <type>dpml</type>
     290                <operand>var:dpml</operand>
     291                <target>var:void</target>
     292        </instr>
     293        <instr>
    118294            <type>copy</type>
    119295            <operand>
    120296                <html>
    121297                    <head>
    122                         <title>TODO</title>
     298                        <title>ISOcat dump</title>
     299                        <meta http-equiv="refresh" content="1;URL=/introspect/pluginpanel+plugin@ep:mod_ISOcat_manage_system_plugin"/>
    123300                    </head>
    124                     <body>TODO</body>
     301                    <body>DONE</body>
    125302                </html>
    126303            </operand>
  • cats/ISOcat/trunk/mod-ISOcat-manage-system/module.xml

    r5650 r5786  
    131131            <to>active:sloot.accessor+operand@ffcpl:/manage/import-batch.acc$1</to>
    132132        </rewrite>
    133         <import>
    134             <uri>urn:isocat:interface:rest</uri>
    135         </import>
    136         <this>
    137             <match>ffcpl:/.*</match>
     133        <import>
     134                <uri>urn:isocat:interface:rest</uri>
     135        </import>
     136        <import>
     137                <uri>urn:isocat:interface:gi</uri>
     138        </import>
     139        <this>
     140            <match>ffcpl:/(?!isocat).*</match>
    138141        </this>
    139142        <import>
     
    176179            <uri>urn:isocat:access:system</uri>
    177180        </import>
    178         <super/>
     181        <import>
     182                <uri>urn:isocat:site</uri>
     183        </import>
     184        <super/>
    179185    </mapping>
    180186</module>
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index.html

    r5277 r5786  
    9393background="index_files/image552.png" style='margin:0'>
    9494<!--[if gte vml 1]><v:background id="_x0000_s3073" o:bwmode="white"
    95  fillcolor="#dbe1e5" o:targetscreensize="1680,902">
     95 fillcolor="#dbe1e5" o:targetscreensize="1680,912">
    9696 <v:fill focus="100%" type="gradient"/>
    9797</v:background><![endif]-->
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/12620.html

    r5277 r5786  
    6262style='margin:0'>
    6363<!--[if gte vml 1]><v:background id="_x0000_s3073" o:bwmode="white"
    64  fillcolor="#e0e6e6" o:targetscreensize="1680,902">
     64 fillcolor="#e0e6e6" o:targetscreensize="1680,912">
    6565 <v:fill color2="white [7]" focus="100%" type="gradient"/>
    6666</v:background><![endif]-->
     
    961961  <p class=MsoNormal><span lang=en-US style='font-family:Verdana;language:en-US'>[2014-3-31] Version 1.3.2 </span><span
    962962  lang=en-US style='font-size:8.0pt;font-family:Verdana;language:en-US'>(</span><a
    963   href="$site$12620/schemas/DCIF-1_3_1.html"><span lang=en-US style='font-size:
     963  href="$site$12620/schemas/DCIF-1_3_2.html"><span lang=en-US style='font-size:
    964964  8.0pt;font-family:Verdana;text-decoration:underline;language:en-US'>HTML</span></a><span
    965965  lang=en-US style='font-size:8.0pt;font-family:Verdana;language:en-US'>, </span><a
    966   href="$site$12620/schemas/DCIF-1_3_1.rnc"><span lang=en-US style='font-size:
     966  href="$site$12620/schemas/DCIF-1_3_2.rnc"><span lang=en-US style='font-size:
    967967  8.0pt;font-family:Verdana;text-decoration:underline;language:en-US'>RNC</span></a><span
    968968  lang=en-US style='font-size:8.0pt;font-family:Verdana;language:en-US'>, </span><a
    969   href="$site$12620/schemas/DCIF-1_3_1.rng"><span lang=en-US style='font-size:
     969  href="$site$12620/schemas/DCIF-1_3_2.rng"><span lang=en-US style='font-size:
    970970  8.0pt;font-family:Verdana;text-decoration:underline;language:en-US'>RNG</span></a><span
    971971  lang=en-US style='font-size:8.0pt;font-family:Verdana;language:en-US'>)</span><span
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/TDGs.html

    r5392 r5786  
    6464<body link=blue vlink=purple bgcolor="#DAE1EB" style='margin:0'>
    6565
    66 <div style='position:absolute;width:7.-71in;height:31.-1750in'>
     66<div style='position:absolute;width:7.-71in;height:31.-1876in'>
    6767<!--[if gte vml 1]><v:rect id="_x0000_s1516" style='position:absolute;left:234pt;
    6868 top:231pt;width:336pt;height:336pt;z-index:69;mso-wrap-distance-left:2.88pt;
     
    904904 <o:lock v:ext="edit" shapetype="t"/>
    905905</v:shapetype><v:shape id="_x0000_s1566" type="#_x0000_t201" style='position:absolute;
    906  left:175.5pt;top:175.5pt;width:525.48pt;height:2110.41pt;z-index:76;
     906 left:175.5pt;top:175.5pt;width:525.48pt;height:2109.5pt;z-index:76;
    907907 mso-wrap-distance-left:2.88pt;mso-wrap-distance-top:2.88pt;
    908908 mso-wrap-distance-right:2.88pt;mso-wrap-distance-bottom:2.88pt' stroked="f"
     
    922922
    923923<table v:shapes="_x0000_s1566" cellpadding=0 cellspacing=0 width=701
    924  height=2814 border=0 dir=ltr style='width:525.48pt;height:2110.41pt;
    925  border-collapse:collapse;position:absolute;top:175.5pt;left:175.5pt;
    926  z-index:76'>
     924 height=2813 border=0 dir=ltr style='width:525.48pt;height:2109.5pt;border-collapse:
     925 collapse;position:absolute;top:175.5pt;left:175.5pt;z-index:76'>
    927926 <tr>
    928927  <td width=102 height=26 bgcolor=black style='width:76.5pt;height:19.5pt;
     
    13871386 </tr>
    13881387 <tr>
    1389   <td width=701 height=35 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
    1390   height:26.2479pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
     1388  <td width=701 height=34 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
     1389  height:25.339pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
    13911390  padding-bottom:1.5pt;background:#E0E6E6;border-left:solid black 6.0pt;
    13921391  border-top:solid black .25pt;border-right:solid black 2.0pt;border-bottom:
     
    14211420 </tr>
    14221421 <tr>
    1423   <td width=701 height=66 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
     1422  <td width=701 height=65 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
    14241423  height:49.2459pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
    14251424  padding-bottom:1.5pt;background:#E0E6E6;border-left:solid black 6.0pt;
     
    14551454 </tr>
    14561455 <tr>
    1457   <td width=701 height=253 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
     1456  <td width=701 height=254 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
    14581457  height:190.3437pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
    14591458  padding-bottom:1.5pt;background:#E0E6E6;border-left:solid black 6.0pt;
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/feedback.html

    r5277 r5786  
    6565style='margin:0'>
    6666<!--[if gte vml 1]><v:background id="_x0000_s3073" o:bwmode="white"
    67  fillcolor="#dbe1e5" o:targetscreensize="1680,902">
     67 fillcolor="#dbe1e5" o:targetscreensize="1680,912">
    6868 <v:fill focus="100%" type="gradient"/>
    6969</v:background><![endif]-->
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/issues.html

    r5277 r5786  
    6262style='margin:0'>
    6363<!--[if gte vml 1]><v:background id="_x0000_s3073" o:bwmode="white"
    64  fillcolor="#dbe1e5" o:targetscreensize="1680,902">
     64 fillcolor="#dbe1e5" o:targetscreensize="1680,912">
    6565 <v:fill focus="100%" type="gradient"/>
    6666</v:background><![endif]-->
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/manual.html

    r5277 r5786  
    6262style='margin:0'>
    6363<!--[if gte vml 1]><v:background id="_x0000_s3073" o:bwmode="white"
    64  fillcolor="#dbe1e5" o:targetscreensize="1680,902">
     64 fillcolor="#dbe1e5" o:targetscreensize="1680,912">
    6565 <v:fill focus="100%" type="gradient"/>
    6666</v:background><![endif]-->
Note: See TracChangeset for help on using the changeset viewer.