Hi,

I am working on a date period selection mechanism for our local
statistics. I want to have a page in DSpace where the user kan select a
date period and see the statistics for that period. The period has of
course a start and end date. Now, in code I want to make only an
indication of the date selection control, so I can generate it in XSLT.
This way, we can change the control easily without messing with the code
(that was xmlui suppost to do, isn't it?)

So I want the generate something like this:

<item id="...">
  <field id=".." rend="dateperiodselection">
    <params>
      <param name="start">2008-01-01</param>
      <param name="end">2011-03-01</param>
      <param name="selected_start">2010-01-01</param>
      <param name="selected_end">2011-01-01</param>
    </params>
    <label>
       Date selection
    </label>
  </field>
</item>

I then will write XSLT to make this into a nice date selection control.

I have some java code to generate XML, like this:

Composite startDateComposite =
list.addItem("startdate","date").addComposite("datecomp");
            startDateComposite.setLabel(T_stats_start);

But I cannot figure out how to fill the params.

Can anybody help? Or can you point me in the direction of documentation
about wing/xmlui?

Thanks,
Lucas
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to