You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2003/10/05 14:38:26 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/config/menus generic.xsp

michi       2003/10/05 05:38:26

  Modified:    src/webapp/lenya/pubs/default publication-sitemap.xmap
               src/webapp/lenya/pubs/default/config/menus generic.xsp
  Log:
  BXENG added
  
  Revision  Changes    Path
  1.53      +119 -2    cocoon-lenya/src/webapp/lenya/pubs/default/publication-sitemap.xmap
  
  Index: publication-sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/publication-sitemap.xmap,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- publication-sitemap.xmap	3 Oct 2003 13:43:07 -0000	1.52
  +++ publication-sitemap.xmap	5 Oct 2003 12:38:26 -0000	1.53
  @@ -6,7 +6,9 @@
       <map:generators default="file"/>
       <map:matchers default="wildcard"/>
       <map:actions/>
  -    <map:selectors/>
  +    <map:selectors>
  +     <map:selector name="request-method" logger="sitemap.selector.request-method" src="org.apache.cocoon.selection.RequestMethodSelector"/>
  +    </map:selectors>
     </map:components>
     
     <map:views>
  @@ -30,6 +32,121 @@
           <map:mount check-reload="true" reload-method="synchron" src="doctypes.xmap" uri-prefix="lenya-document/"/>
         </map:match>
       </map:pipeline>
  +
  +
  +
  +
  +
  +
  +
  +    <!-- BX Editor: Entries -->
  +    <map:pipeline>
  +      <map:match pattern="**/*-bxeng.html">
  +<!--
  +        <map:act type="reserved-checkout">
  +          <map:generate type="serverpages" src="../../content/rc/{exception}.xsp">
  +            <map:parameter name="user" value="{user}"/>
  +            <map:parameter name="filename" value="{filename}"/>
  +            <map:parameter name="date" value="{date}"/>
  +          </map:generate>
  +          <map:transform src="../../xslt/rc/rco-exception.xsl"/>
  +          <map:call resource="style-cms-page"/>
  +          <map:serialize type="html"/>
  +        </map:act>
  +-->
  +        <map:aggregate element="bxeng">
  +          <map:part src="../../resources/misc/bxeng/index.xhtml"/>
  +          <map:part src="../unizh/resources/misc/bxeng/content-namespaces.xml"/>
  +        </map:aggregate>
  +        <map:transform src="../../xslt/bxeng/aggregate.xsl"/>
  +        <map:transform src="../../xslt/bxeng/index-xhtml.xsl">
  +          <map:parameter name="configfile" value="./{2}-config-bxeng.xml"/>
  +        </map:transform>
  +        <map:serialize type="xhtml-iso-8859-1"/>
  +      </map:match>
  +    </map:pipeline>
  +    <map:pipeline>
  +      <map:match pattern="**/*-config-bxeng.xml">
  +        <map:generate src="../../resources/misc/bxeng/inc/config.xml"/>
  +        <map:transform src="../../xslt/bxeng/config-xml.xsl">
  +          <map:parameter name="BX_xmlfile" value="{2}-bxeng.xml"/>
  +<!--      Instead of an xsl we use the xhtml file to provide the basic layout
  +          <map:parameter name="BX_xslfile" value="{2}.xsl"/>
  +-->
  +          <map:parameter name="BX_xhtmlfile" value="{2}.xhtml"/>
  +          <map:parameter name="BX_validationfile" value="xhtml.rng"/>
  +          <map:parameter name="css" value="content-bxeng.css"/>
  +          <map:parameter name="BX_exitdestination" value="{2}.html?lenya.usecase=checkin&amp;lenya.step=checkin"/>
  +        </map:transform>
  +        <map:serialize type="xml"/>
  +      </map:match>
  +    </map:pipeline>
  +    <!-- GET and PUT -->
  +    <map:pipeline type="noncaching">
  +      <map:match pattern="*/**_*-bxeng.xml">
  +        <map:select type="request-method">
  +          <map:when test="PUT">
  +<!--
  +                <map:act type="reserved-checkout-test">
  +              <map:generate type="serverpages" src="../../content/rc/{exception}.xsp">
  +                    <map:parameter name="user" value="{user}"/>
  +                <map:parameter name="filename" value="{filename}"/>
  +                    <map:parameter name="date" value="{date}"/>
  +              </map:generate>
  +                  <map:transform src="../../xslt/rc/rco-exception.xsl"/>
  +                  <map:call resource="style-cms-page"/>
  +              <map:serialize type="html"/>
  +                </map:act>
  +-->
  +            <map:generate type="stream"/>
  +            <map:transform src="../../xslt/authoring/edit/addSourceTags.xsl">
  +              <map:parameter name="source" value="content/{1}/{2}/index_{3}.xml"/>
  +            </map:transform>
  +            <map:transform src="../unizh/xslt/authoring/bxeng-change-object-path-back.xsl">
  +              <map:parameter name="documentid" value="{2}"/>
  +            </map:transform>
  +            <map:transform type="write-source"/>
  +            <map:act type="workflow">
  +              <map:parameter name="area" value="{1}"/>
  +              <map:parameter name="document-id" value="/{2}"/>
  +              <map:parameter name="language" value="{3}"/>
  +              <map:parameter name="event" value="edit"/>
  +            </map:act>
  +            <map:serialize type="xml" status-code="204"/>
  +          </map:when>
  +          <map:otherwise> <!-- GET -->
  +            <map:generate src="content/{1}/{2}/index_{3}.xml"/>
  +            <map:transform src="../unizh/xslt/authoring/bxeng-change-object-path.xsl">
  +              <map:parameter name="documentid" value="{2}"/>
  +            </map:transform>
  +            <map:serialize type="xml"/>
  +          </map:otherwise>
  +        </map:select>
  +      </map:match>
  +      <map:handle-errors type="500"/>
  +    </map:pipeline>
  +    <!-- /GET and PUT -->
  +    <map:pipeline>
  +      <map:match pattern="**/content-bxeng.xsl">
  +        <map:generate src="../unizh/xslt/content-bxeng.xsl"/>
  +        <map:serialize type="xml"/>
  +      </map:match>
  +      <map:match pattern="**/*.rng">
  +        <map:generate src="../unizh/config/doctypes/schemas/{2}.rng"/>
  +        <map:serialize type="xml"/>
  +      </map:match>
  +      <map:match pattern="**/content-bxeng.css">
  +        <map:read src="../unizh/resources/css/main.css" mime-type="text/css"/>
  +      </map:match>
  +      <map:handle-errors type="500"/>
  +    </map:pipeline>
  +    <!-- /BX Editor: Entries -->
  +
  +
  +
  +
  +
  +
       
       <!-- Edit Article with Xopus2 -->
       <map:pipeline>
  
  
  
  1.31      +13 -0     cocoon-lenya/src/webapp/lenya/pubs/default/config/menus/generic.xsp
  
  Index: generic.xsp
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/config/menus/generic.xsp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- generic.xsp	2 Oct 2003 22:17:13 -0000	1.30
  +++ generic.xsp	5 Oct 2003 12:38:26 -0000	1.31
  @@ -17,6 +17,7 @@
         String xmlSource = <input:get-attribute as="string" module="page-envelope" name="document-url"/>.replaceFirst(".html", replacementString);
         String sourcesParameter = "sources=" + xmlSource;
         String urisParameter = "uris=" + <input:get-attribute as="string" module="page-envelope" name="document-url"/>;
  +      String documentId = <input:get-attribute module="page-envelope" as="string" name="context-prefix"/> + "/" + <input:get-attribute module="page-envelope" as="string" name="publication-id"/> + "/authoring" + <input:get-attribute module="page-envelope" as="string" name="document-id"/> + "_" + <input:get-attribute module="page-envelope" as="string" name="document-language"/>;
       </xsp:logic>
           
       <menus>
  @@ -41,12 +42,24 @@
         <menu label="Search" name="Edit">
           <block>
             <item href="?lenya.step=open&amp;doctype=simple" uc:usecase="edit" wf:event="edit">Edit&#160;with&#160;Forms</item>
  +        </block>
   <!--
  +        <block>
             <item href="?lenya.step=open" uc:usecase="midas" wf:event="edit">Edit&#160;with&#160;Midas</item>
             <item wf:event="edit"><xsp:attribute name="href"><xsp-request:get-context-path/>/authoring/xopus2<xsp:expr>xmlSource</xsp:expr>?documentid=<xsp:expr>xmlSource</xsp:expr></xsp:attribute>Edit&#160;with&#160;Xopus</item>
             <item wf:event="edit"><xsp:attribute name="href"><xsp-request:get-context-path/>/bitflux/index.html?url-xml=<xsp:expr>bitflux_prefix+xmlSource+"&amp;url-xslt="+bitflux_prefix+"/stylesheets/simple.xsl&amp;url-xsd="+bitflux_prefix+"/schemas/simple.xsd&amp;url-css="+bitflux_prefix+"/css/simple.css&amp;url-post="+bitflux_prefix+"/save"+xmlSource+"&amp;url-back="+<xsp-request:get-context-path/>+"/authoring"+<input:get-attribute as="string" module="page-envelope" name="document-url"/></xsp:expr></xsp:attribute>Edit with Bitflux</item>
  +        </block>
   -->
  +<!--
  +        <block>
  +          <item><xsp:attribute name="href"><xsp:expr>documentId + "-bxeng.html"</xsp:expr></xsp:attribute>HTML&#160;for&#160;BXENG</item>
  +          <item><xsp:attribute name="href"><xsp:expr>documentId + "-config-bxeng.xml"</xsp:expr></xsp:attribute>Config&#160;for&#160;BXENG</item>
  +          <item><xsp:attribute name="href"><xsp:expr>documentId + "-bxeng.xml"</xsp:expr></xsp:attribute>XML&#160;for&#160;BXENG</item>
  +          <item href="content-bxeng.xsl">XSLT&#160;for&#160;BXENG</item>
  +          <item href="content-bxeng.css">CSS&#160;for&#160;BXENG</item>
  +          <item href="xhtml.rng">RelaxNG&#160;for&#160;BXENG</item>
           </block>
  +-->
         </menu>
         
         <menu label="Help" name="Tools">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org