Welcome, Guest. Please Login or Register
WebLab - An SOA Platform for media mining. News:
Documentation has been updated, see here for more information
  HomeHelpSearchLoginRegister
 
Pages: 1
Send Topic Print
[Resolved] DocViewerPortlet Legend (Read 16 times)
Joker - Groupe Jaune
Junior WebLab Member
**
Offline

I Love WebLab

Posts: 24

[Resolved] DocViewerPortlet Legend
22.02.2010 at 16:10:42
 
Hello
I know that we have a method called getLegend() that create legend with mediaUnit but it doesen ‘t work (LegendFactory.getLegend(unit))
For exempel in xml files, in the demo we have :
<rdf:type rdf:resource="http://weblab-project.org/core/model/property/processing/demo#company"/&gt;
Who can join a legend of type « company » to an annotation.
Or if the type dosen't exist yet, what is the procedure to create a new instance in legend in DocViewPortlet?

thanks a lot
Back to top
 
« Last Edit: 03.03.2010 at 11:48:31 by Yann Mombrun »  
  IP Logged
Emilien
EADS IPCC Team
*****
Offline

I Love WebLab

Posts: 23

Gender: male
Re: DocViewerPortlet Legend
Reply #1 - 22.02.2010 at 17:49:29
 
Hello,

The method getLegend() in the LegendFactory() construct a legend from MediaUnit's annotations (using the "wl:RefersTo" property). This method doesn't consider any properties files.
Otherwise, if you want to add a new field in the legend, construct a new LegendField and add it to the legend using setFields() method or declare more fields in the weblab_demo_legend.xml.

Emilien
Back to top
 
 
  IP Logged
Joker - Groupe Jaune
Junior WebLab Member
**
Offline

I Love WebLab

Posts: 24

Re: DocViewerPortlet Legend
Reply #2 - 24.02.2010 at 09:28:51
 
We have edited weblab_demo_legend.xml and it's work, but don't forget to edit properties files which contain traductions docview_portlet_fr_properties.xml and docview_portlet_en_properties.xml

thanks a lot
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print