Hello,

I am fighting with strange problem in my custom class. Perhaps someone
has some idea what could be wrong here.

First the problem: In the documents table, the Autor column for my
custom class is always shown as empty like this:

  Title                Last modification date    Author          Life
cycle 
  ------------------   ----------------------    -------------
----------
  F1040                18/10/2007 09:52                          Project

  Test word document   18/10/2007 09:59          Administrator   Project

Here F1040 is my custom document type and second document is MSWord
document.
Both of them have been added throw "import file" operation.

According to "nuxeo.war/incl/documents_table.xhtml" The column Author
should be extracted from the dublincore schema field "creator".

      <!--  Author -->
      <h:column>
        <f:facet name="header">
          <h:panelGroup>
          <h:commandLink immediate="true"
action="#{sortActions.repeatSearch}"
              rendered="#{provider.sortable}" >
            <h:outputText
value="#{messages['label.content.header.author']}" />
            <f:param name="providerName" value="#{providerName}" />
            <f:param name="sortColumn" value="dc:creator" />
            <h:panelGroup rendered="#{provider.sortInfo.sortColumn ==
'dc:creator' }" >
              <h:graphicImage value="/icons/arrow_down.gif"
                rendered="#{provider.sortInfo.sortAscending}" />
              <h:graphicImage value="/icons/arrow_up.gif"
                rendered="#{!provider.sortInfo.sortAscending}" />
            </h:panelGroup>
          </h:commandLink>
          <h:outputText
value="#{messages['label.content.header.author']}"
            rendered="#{!provider.sortable}" />
          </h:panelGroup>
        </f:facet>
        <h:outputText value="#{row.data.dublincore.creator}" />
      </h:column>

Now if I export both definitions via restAPI I see the following:

Custom file F1040:

  <?xml version="1.0" encoding="UTF-8" ?> 
- <document id="bb400608-bd1f-4133-ad21-1477edbd8836">
- <system>
  <type>snapform</type> 
  <path>/default-domain/workspaces/avw/arbeitgebermeldung/f1040</path> 
  <lifecycle-state>project</lifecycle-state> 
  <lifecycle-policy>default</lifecycle-policy> 
+ <access-control>
  </system>
- <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/";
name="dublincore">
  <dc:valid /> 
  <dc:issued /> 
  <dc:coverage /> 
  <dc:title>F1040</dc:title> 
  <dc:modified>Thu Oct 18 09:52:13 CEST 2007</dc:modified> 
  <dc:creator>Administrator</dc:creator> 
- <dc:subjects>
  <item>U.S. Individual Income Tax Return</item> 
  </dc:subjects>
  <dc:rights /> 
  <dc:language>EN</dc:language> 
  <dc:expired /> 
- <dc:contributors>
  <item>Administrator</item> 
  </dc:contributors>
  <dc:created>Thu Oct 18 09:52:13 CEST 2007</dc:created> 
  <dc:source /> 
  <dc:description /> 
  <dc:format>QDF/A</dc:format> 
  </schema>
+ <schema xmlns="http://www.nuxeo.org/ecm/schemas/file/"; name="file">
+ <schema xmlns="http://project.nuxeo.com/geide/schemas/uid/";
name="uid">
+ <schema xmlns:qdf="http://project.nuxeo.org/sample/schemas/sample/";
name="snapform">
+ <schema xmlns="http://www.nuxeo.org/ecm/schemas/common/";
name="common">
  </document>

Second file has similar structure:
  <?xml version="1.0" encoding="UTF-8" ?> 
- <document id="82726a43-0996-4c78-b770-fb954d2eb86e">
- <system>
  <type>File</type> 
 
<path>/default-domain/workspaces/avw/arbeitgebermeldung/test-document</p
ath> 
  <lifecycle-state>project</lifecycle-state> 
  <lifecycle-policy>default</lifecycle-policy> 
+ <access-control>
  </system>
+ <schema xmlns="http://www.nuxeo.org/ecm/schemas/files/"; name="files">
- <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/";
name="dublincore">
  <dc:valid /> 
  <dc:issued /> 
  <dc:coverage /> 
  <dc:title>Test document</dc:title> 
  <dc:modified>Thu Oct 18 09:59:34 CEST 2007</dc:modified> 
  <dc:creator>Administrator</dc:creator> 
  <dc:subjects /> 
  <dc:rights /> 
  <dc:language /> 
  <dc:expired /> 
- <dc:contributors>
  <item>Administrator</item> 
  </dc:contributors>
  <dc:created>Thu Oct 18 09:59:34 CEST 2007</dc:created> 
  <dc:source /> 
  <dc:description /> 
  <dc:format /> 
  </schema>
+ <schema xmlns="http://www.nuxeo.org/ecm/schemas/file/"; name="file">
+ <schema xmlns="http://project.nuxeo.com/geide/schemas/uid/";
name="uid">
+ <schema xmlns="http://www.nuxeo.org/ecm/schemas/common/";
name="common">
  </document>

In both cases dc:creator fields are set to the same value.
Interesting that filed dc:modified from the same schema is displayed
correctly.

Does someone know the possible reason for such weird behavior?

Sorry for long post,
Yuri Nadestin  

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to