[daisy] [JIRA] Commented: (DSY-88) Field value labels for styling

Olivier Lange (JIRA) issues at cocoondev.org
Thu Jun 5 19:57:27 CEST 2008


    [ http://issues.cocoondev.org//browse/DSY-88?page=comments#action_13647 ] 

Olivier Lange commented on DSY-88:
----------------------------------

I apologize, I mistyped my last phrase. One should read: there are no 'formattedValue' attributes holding the labels...

> Field value labels for styling
> ------------------------------
>
>          Key: DSY-88
>          URL: http://issues.cocoondev.org//browse/DSY-88
>      Project: Daisy
>         Type: Improvement
>     Versions: 1.0
>     Reporter: Olivier Lange
>     Priority: Minor
>      Fix For: 1.1

>
> To style a document having specific fields, we need to display the label of the field value (defined in the field selection list), rather than the formatted value.
> We need the localized labels in the XML input, which are missing for now, the XML input provides only the field value.
> For instance, for a CourseProfessor field, the input XML may look like that:
>  <ns:field xmlns:ns="http://outerx.org/daisy/1.0" typeid="2"
>     valueformatted="hgenberg" label="Professor" name="CourseProfessor">
>       <ns:string>hgenberg</ns:string>
>  </ns:field>
> (there's just the value, no label.)
> The field definition is as follows:
>  Name: CourseProfessor
>  Label: Professor
>  Type: STRING
>  Selection value list (value, default label) =
>  [
>    ( "hgenberg", "Prof. H. Genberg"),
>    ( "jdoe, "Prof. J. Doe"),
>    ...
>  ]
> Bruno suggested the following implementation:
>  * add a SelectionList.getLabel(value) method
>  * adjust PublisherImpl.annotateFields to take that label
>    if the fieldtype has a selection list defined.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list