helix84,

Thank you for your patience with me on this.  I have made changes to the
xsl when I can find the place to make the change.  But in genera, my
problem is finding the place to put my change.  For example, every time I
need to change something for the item display, I got to item-view.xsl, and
the same for the listing of items, I to to item-list.xsl.  No problems at
all.  But in this case I have no idea where to go.

Presently, we have have run our html pages through an accessibility
assessor, and it has told us that where we have a select widget we need to
add:

<label for="select_name" style="display:none">select label:</label>

So if I knew where the select is rendered (in all cases) in the xsl, I
could add the xslt to create this.  For now my approach has been to find
the selects in the aspects and add the dri element that would render this
on the html page just above the select.

How would you locate the place in xsl to make this change in Mirage?

-Jose

On Tue, Oct 9, 2012 at 5:58 PM, helix84 <[email protected]> wrote:

> On Tue, Oct 9, 2012 at 7:08 PM, Jose Blanco <[email protected]> wrote:
> > I would like to add to an aspect file the code to render this in the
> htlm:
> >
> > <label for=\"sort_by\" style=\"display:none\">Sort By:</label>
> >
> > Could someone share the code that does that.
>
> Hi Jose,
>
> I risk sounding like a broken record, but this is just so trivial to
> do in XSLT as opposed to an Aspect.
>
> Anyway, if you insist on putting things into DRI, here's an extensive
> collection of examples:
>
> https://github.com/DSpace/DSpace/tree/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/xmltest/
>
> You have to remember that DRI is not HTML (even though it has some
> elements with the same name, they're not the same, e.g. they don't
> accept the same attributes). So I doubt that putting the label element
> into DRI (even if there are methods to do that) will do what you think
> it will.
>
> Regards,
> ~~helix84
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to