Mark,

Thanks for your reply.
Let me see if I understand the construction of the options list then.

Observations:
Each aspect has a Navigation.java class
  Each Navigation.java class has a method addOptions
    One of the main functions of the addOptions method (sometimes the only
function) is to add things to the options wing element though the
"options.addList()" method  from "org.dspace.app.xmlui.wing.element.Options"
      The addList method adds a new org.dspace.app.xmlui.wing.element.List
to "contents" which is a straight-up
java.util.ArrayList<AbstractWingElements>

Supposition from here:
    These Lists are mergable and will probably merge with a
org.dspace.app.xmlui.wing.element.List previously entered into "contents"
    So one way to change the order of the options is to change the order
that lists are first put into "contents"
    1) One way to change the order would be to change the order you load
aspects in the xmlui.xconf
      I tested this by putting the discovery aspect first.  This changed the
order of the sidebar sections, however it also changed the order other main
content elements were displayed.
    2) Another way to change the order (Which I fully admit is just a hack.)
is to modify the Navigation.java class for the first aspect added in the
xmlui.xconf file.  In most cases this will be "ViewArtifacts"
      I also tested this in a module ovelay.  I modified Navigation.java
class of View Artifacts.  Specifically the addOptions() method -- I changed
the order lists were added to "options.addList()" such that it looked like
the following.
        options.addList("account");
        options.addList("discovery");
        options.addList("browse");
        options.addList("context");
        options.addList("administrative");
      This reordered the sections in the sidebar without changing the order
of other main content elements

Like I said, the second method is a hack, but I wanted to share just in case
someone tackled ordering the sidebar elements in the future.

-Joseph













On Fri, Aug 19, 2011 at 13:23, Mark Diggory <[email protected]> wrote:

> Its hardcoded in the Navigation.java classes in all the aspects...
>  Something we really want to undo so that they can be more easily ordered.
>
> Mark
>
> On Fri, Aug 19, 2011 at 7:02 AM, Joseph <[email protected]> wrote:
>
>> Dear DSpace-devel,
>>
>> What determines the order of the sidebar sections (or ds-option-set s)?
>>  Is there any way to change them?
>>
>> I'm working with Dspace-1.7.2
>> XMLUI
>> Modified Mirage Theme
>> Discovery enabled.
>>
>> Thanks,
>> Joseph
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
>> user administration capabilities and model configuration. Take
>> the hassle out of deploying and managing Subversion and the
>> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
>> _______________________________________________
>> Dspace-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-devel
>>
>>
>
>
> --
> Mark R. Diggory
> @mire - www.atmire.com
> 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
> Esperantolaan 4 - Heverlee 3001 - Belgium
>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to