Still struggling with this, but have some progress to report.
In the Manakin Submission aspect, DescribeStep.java has comments that a twobox
type must be taken care of in the theme:
// We don't have a twobox field, instead it's just a
// one box field that the theme can render in two columns.
// Both onebox and twobox consist a free form text field
// that the user may enter any value. The difference between
// the two is that a onebox should be rendered in one column
// as twobox should be listed in a two column format. Since this
// decision is not something the Aspect can effect we merely place
// as a render hint.
So, looking to a JSP interface as an example, I was guessing that the text
boxes should be named dc_subject_0 and dc_subject_1 . So I placed the following
in the theme:
<!-- Make TwoBox for dc_subject fields -->
<input>
<!-- <xsl:attribute
name="id">submission_StepTransformer_field_dc_subject</xsl:attribute> -->
<xsl:attribute name="class">ds-text-field submit-text</xsl:attribute>
<xsl:attribute name="name">dc_subject_0</xsl:attribute>
<xsl:attribute name="type">text</xsl:attribute>
<!-- <xsl:attribute name="value"></xsl:attribute> -->
</input>
<input>
<!-- <xsl:attribute
name="id">submission_StepTransformer_field_dc_subject</xsl:attribute> -->
<xsl:attribute name="class">ds-text-field submit-text</xsl:attribute>
<xsl:attribute name="name">dc_subject_1</xsl:attribute>
<xsl:attribute name="type">text</xsl:attribute>
<!-- <xsl:attribute name="value"></xsl:attribute> -->
</input>
But this didn't do the trick (with or without id's). After some experimenting
I came up with the following results.
dc_subject_0, dc_subject_1 -> Values not display after Add button, Values not
retained.
dc_subject, dc_subject_0 -> Only dc_subject displayed and retained.
dc_subject, dc_subject_1 -> Both displayed, Only dc_subject_1 retained.
Could someone explain what is happening or point out a better way to get a
twobox display in Manakin?
Thanks,
Andy
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smith, Andrew J
Sent: Monday, June 09, 2008 11:59 AM
To: [email protected]
Subject: [Dspace-tech] Manakin twobox
Hello,
Has anyone run into Manakin 1.1 not properly handling the input type of twobox
from the input-forms.xml? I have a couple of instances in which the JSP
interface properly shows a twobox field with two text boxs and an Add, while
only one text box and the Add button occur in the manakin interface.
Thanks,
Andy
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech