Document: Meta data
URL: 
https://lenya.zones.apache.org/cms/docu/authoring/docu20/reference/metadata.html
Changed by user: Andreas Hartmann (andreas)


----
Removed: /comment()[1]

  Copyright 1999-2006 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

----
Removed: /comment()[2]
 $Id: metadata.xml 55543 2004-10-26 00:14:59Z gregor $ 
----
Removed: /document/body/section[2]/source/text()
<xconf xpath="/cocoon/meta-data"
    unless="/cocoon/meta-data/component-instance
      [...@name = 'http://apache.org/lenya/metadata/media/1.0']">
  <component-instance name="http://apache.org/lenya/metadata/media/1.0";
    class="org.apache.lenya.cms.metadata.ConfigurableElementSet">
    <element name="filename" multiple="false"/>
    <element name="format" multiple="false"/>
    <element name="extent" multiple="false"/>
    <element name="width" multiple="false"/>
    <element name="height" multiple="false"/>
    <element name="caption" multiple="false" editable="true"/>
  </component-instance>
</xconf>
----
Added: /document/body/section[2]/source/text()
<xconf xpath="/cocoon/meta-data"    
unless="/cocoon/meta-data/component-instance      [...@name = 
'http://apache.org/lenya/metadata/media/1.0']">  <component-instance 
name="http://apache.org/lenya/metadata/media/1.0";    
class="org.apache.lenya.cms.metadata.ConfigurableElementSet">    <element 
name="filename" multiple="false"/>    <element name="format" multiple="false"/> 
   <element name="extent" multiple="false"/>    <element name="width" 
multiple="false"/>    <element name="height" multiple="false"/>    <element 
name="caption" multiple="false" editable="true"/>  </component-instance></xconf>
----
Removed: /document/body/section[3]/source[1]/text()

MetaData meta = document.getMetaData("http://myproject.org/metadata/1.0";);
String description = meta.getFirstValue("description");
String[] references = meta.getValues("references");

----
Added: /document/body/section[3]/source[1]/text()
MetaData meta = 
document.getMetaData("http://myproject.org/metadata/1.0";);String description = 
meta.getFirstValue("description");String[] references = 
meta.getValues("references");
----
Removed: /document/body/section[3]/source[2]/text()

MetaDataRegistry registry = null;
try {
    registry = (MetaDataRegistry) this.manager.lookup(MetaDataRegistry.ROLE);
    String[] namespaces = registry.getNamespaceUris();
    ...
}
finally {
    if (registry != null) {
        this.manager.release(registry);
    }
}      

----
Added: /document/body/section[3]/source[2]/text()
MetaDataRegistry registry = null;try {    registry = (MetaDataRegistry) 
this.manager.lookup(MetaDataRegistry.ROLE);    String[] namespaces = 
registry.getNamespaceUris();    ...}finally {    if (registry != null) {        
this.manager.release(registry);    }}      
----
Removed: /document/body/section[4]/source[1]/text()
<xconf xpath="/cocoon/input-modules"
  unless="/cocoon/input-modules/component-instan...@name = 'mymeta']">
  <component-instance logger="sitemap.modules.input.mymeta" name="mymeta"
    class="org.apache.lenya.cms.cocoon.components.modules.input.MetaDataModule"
    namespace="http://myproject.org/metadata/1.0"/>
</xconf>
----
Added: /document/body/section[4]/source[1]/text()
<xconf xpath="/cocoon/input-modules"  
unless="/cocoon/input-modules/component-instan...@name = 'mymeta']">  
<component-instance logger="sitemap.modules.input.mymeta" name="mymeta"    
class="org.apache.lenya.cms.cocoon.components.modules.input.MetaDataModule"    
namespace="http://myproject.org/metadata/1.0"/></xconf>
----
Removed: /document/body/section[4]/source[2]/text()
<map:transform src="...">
  <map:parameter name="description" value="{mymeta:description}"/>
</map:transform>
----
Added: /document/body/section[4]/source[2]/text()
<map:transform src="...">  <map:parameter name="description" 
value="{mymeta:description}"/></map:transform>
----
Removed: /document/body/section[5]/source[1]/text()
<map:match pattern="**.html.meta">
  <map:generate type="lenyaMetaData">
    <map:parameter name="pubid" value="{page-envelope:publication-id}"/>
    <map:parameter name="area" value="{page-envelope:area}"/>
    <map:parameter name="uuid" value="{page-envelope:document-uuid}"/>
    <map:parameter name="lang" value="{page-envelope:document-language}"/>
  </map:generate>
  <map:serialize type="xml"/>
</map:match>
----
Added: /document/body/section[5]/source[1]/text()
<map:match pattern="**.html.meta">  <map:generate type="lenyaMetaData">    
<map:parameter name="pubid" value="{page-envelope:publication-id}"/>    
<map:parameter name="area" value="{page-envelope:area}"/>    <map:parameter 
name="uuid" value="{page-envelope:document-uuid}"/>    <map:parameter 
name="lang" value="{page-envelope:document-language}"/>  </map:generate>  
<map:serialize type="xml"/></map:match>
----
Removed: /document/body/section[5]/source[2]/text()
<lenya:metadata xmlns:lenya="http://apache.org/cocoon/lenya/metadata/1.0";>
  <elements xmlns="http://purl.org/dc/elements/1.1/";>
    <title>Search</title>
    <date>2006-06-12 13:43:14</date>
    <language>en</language>
    <creator>lenya</creator>
  </elements>
  <elements xmlns="http://apache.org/lenya/metadata/document/1.0";>
    <extension>xml</extension>
    <resourceType>usecase</resourceType>
    <contentType>xml</contentType>
  </elements>
</lenya:metadata>
----
Added: /document/body/section[5]/source[2]/text()
<lenya:metadata xmlns:lenya="http://apache.org/cocoon/lenya/metadata/1.0";>  
<elements xmlns="http://purl.org/dc/elements/1.1/";>    <title>Search</title>    
<date>2006-06-12 13:43:14</date>    <language>en</language>    
<creator>lenya</creator>  </elements>  <elements 
xmlns="http://apache.org/lenya/metadata/document/1.0";>    
<extension>xml</extension>    <resourceType>usecase</resourceType>    
<contentType>xml</contentType>  </elements></lenya:metadata>
----
Removed: /document/body/section[6]/source/text()
<metadata xmlns="http://apache.org/lenya/metadata/1.0";>
  <element-set namespace="http://apache.org/lenya/metadata/media/1.0";>
    <element key="width">
      <value>300</value>
    </element>
    <element key="height">
      <value>374</value>
    </element>
    <element key="extent">
      <value>30291</value>
    </element>
    <element key="filename">
      <value>hello-world.jpg</value>
    </element>
    <element key="format">
      <value>image/jpeg</value>
    </element>
  </element-set>
  <element-set namespace="http://purl.org/dc/elements/1.1/";>
    <element key="creator">
      <value>lenya</value>
    </element>
    <element key="title">
      <value>Hello World</value>
    </element>
    <element key="date">
      <value>2006-07-20 22:44:37</value>
    </element>
    <element key="language">
      <value>en</value>
    </element>
  </element-set>
  <element-set namespace="http://apache.org/lenya/metadata/document/1.0";>
    <element key="extension">
      <value>jpg</value>
    </element>
    <element key="resourceType">
      <value>resource</value>
    </element>
    <element key="contentType">
      <value>xml</value>
    </element>
  </element-set>
</metadata>
 
----
Added: /document/body/section[6]/source/text()
<metadata xmlns="http://apache.org/lenya/metadata/1.0";>  <element-set 
namespace="http://apache.org/lenya/metadata/media/1.0";>    <element 
key="width">      <value>300</value>    </element>    <element key="height">    
  <value>374</value>    </element>    <element key="extent">      
<value>30291</value>    </element>    <element key="filename">      
<value>hello-world.jpg</value>    </element>    <element key="format">      
<value>image/jpeg</value>    </element>  </element-set>  <element-set 
namespace="http://purl.org/dc/elements/1.1/";>    <element key="creator">      
<value>lenya</value>    </element>    <element key="title">      <value>Hello 
World</value>    </element>    <element key="date">      <value>2006-07-20 
22:44:37</value>    </element>    <element key="language">      
<value>en</value>    </element>  </element-set>  <element-set 
namespace="http://apache.org/lenya/metadata/document/1.0";>    <element 
key="extension">      <value>jpg</value>    </element>    <element 
key="resourceType">      <value>resource</value>    </element>    <element 
key="contentType">      <value>xml</value>    </element>  
</element-set></metadata> 
----
Added: /document/body/section[8]
<section> (null)
----
Added: /document/body/section[8]/title
<title> (null)
----
Added: /document/body/section[8]/title/text()
Caching
----
Added: /document/body/section[8]/p
<p> (null)
----
Added: /document/body/section[8]/p/text()[1]
Adjust the 
----
Added: /document/body/section[8]/p/em[1]
<em> (null)
----
Added: /document/body/section[8]/p/em[1]/text()
maxobjects
----
Added: /document/body/section[8]/p/text()[3]
 parameter of the 
----
Added: /document/body/section[8]/p/code[1]
<code> (null)
----
Added: /document/body/section[8]/p/code[1]/text()
MetaDataCacheStore
----
Added: /document/body/section[8]/p/text()[5]
 component in 
----
Added: /document/body/section[8]/p/code[2]
<code> (null)
----
Added: /document/body/section[8]/p/code[2]/text()
$COCOON_HOME/src/webapp/WEB-INF/cocoon.xconf
----
Added: /document/body/section[8]/p/text()[7]
 according to the number of documents contained in your repository. Assuming 
you have no more than 1000 site nodes in the repository with 2 language 
versions each and there are 5 sets of meta data (count the tabs in the "Meta 
Data" section of the site environment), you should set the value of the 
----
Added: /document/body/section[8]/p/em[2]
<em> (null)
----
Added: /document/body/section[8]/p/em[2]/text()
maxobjects
----
Added: /document/body/section[8]/p/text()[9]
 parameter to 1000 × 2 × 5 = 10000. As a rule of thumb, you can expect a memory 
consumption of 25-50 MB for this value if you don't store large meta data 
values.
----



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to