AnsweredAssumed Answered

Issue with metadata extraction

Question asked by dtsimbal on Jun 17, 2008
Hi, everyone!
Could You help me to resolve a little problem. I've created a custom model and metadata extractor, when I'm trying to use properties of aspect defined in my model (during metadata extracting) custom properties stays empty (I'm using Alfresco Node Browser to review them), when I'm using "cm:description" property to store all extracted data everything works fine, extracted data is being stored in it.
The model itself works fine, I can create rules, use types, aspects defined in it.

here is aspects defined in my model:

      <!–[Geo Files]–>
      <aspect name="xcc:geoable">
         <title>Geoable</title>
         <properties>
            <property name="xcc:longitude">
              <title>Longitude</title>
              <type>d:double</type>
            </property>
            <property name="xcc:latitude">
              <title>Latitude</title>
              <type>d:double</type>
            </property>
            <property name="xcc:altitude">
              <title>Altitude</title>
              <type>d:double</type>
            </property>
            <property name="xcc:azimuth">
              <title>Azimuth</title>
              <type>d:double</type>
            </property>
            <property name="xcc:speed">
              <title>Speed</title>
              <type>d:double</type>
            </property>
          </properties>
      </aspect>

      <!–[EXIF Files]–>
      <aspect name="xcc:exifable">
         <title>EXIFable</title>
         <properties>
            <property name="xcc:exifkey">
              <title>EXIF Key</title>
              <type>d:text</type>
              <multiple>true</multiple>
            </property>
            <property name="xcc:exifvalue">
              <title>EXIF Value</title>
              <type>d:text</type>
              <multiple>true</multiple>
            </property>
          </properties>
      </aspect>

here is .properties file which is used by extractor:

# Namespaces
namespace.prefix.xcc=http://xyz.com/alfresco/model/xccmodel/1.0
namespace.prefix.cm=http://www.alfresco.org/model/content/1.0

#Mappings

#EXIF
exifkey    = xcc:exifkey
exifvalue   = xcc:exifvalue

#GEO DATA
longitude    = xcc:longitude 
latitude    = xcc:latitude
altitude    = xcc:altitude
azimuth    = xcc:azimuth
speed        = xcc:speed
        
#This field is used in debug mode
description   = cm:description

Outcomes