Ben is correct,

        if (showFullItem(objectModel))
        {
            Para showfullPara = parentDiv*.addPara("name",
"rendering-hint");*
            String link = contextPath + "/handle/" + item.getHandle();
            showfullPara.addXref(link).addContent(T_show_simple);

        }
        else
        {
            Para showfullPara = parentDiv*.addPara("name",
"some-other-rendering-hint");*
            String link = contextPath + "/handle/" + item.getHandle()
                    + "?show=full";
            showfullPara.addXref(link).addContent(T_show_full);
        }


On Fri, Jul 20, 2012 at 1:44 PM, Benjamin Ryan <
[email protected]> wrote:

> DRI does have a "rend" attribute for "p" elements that is " A rendering
> hint used to override the default display of the element" and this is used
> in CSS files to link a style to a class attribute.
>
> Hope this helps.
>
> Ben
>
> ------------------------------------------------------------------
> Dr Ben Ryan
> Jorum Technical Coordinator (Services)
>
> 5.12 Roscoe Building
> The University of Manchester
> Oxford Road
> Manchester
> M13 9PL
> Tel: 0160 275 6039
> E-mail: [email protected]
> ------------------------------------------------------------------
>
>
> -----Original Message-----
> From: helix84 [mailto:[email protected]]
> Sent: 20 July 2012 20:24
> To: Jose Blanco
> Cc: Dspace-Tech
> Subject: Re: [Dspace-tech] question about a div and a class
>
> I'm not sure if it's possible from Java. Certainly it's not designed that
> way, DRI shouldn't have the concept of classes - it's not HTML.
> I'd just do that from XSL.
>
> If you really want to do that from Java, maybe I overlooked something, you
> can look at:
>
> http://grepcode.com/file/repo1.maven.org/maven2/org.dspace/dspace-xmlui-wing/1.7.1/org/dspace/app/xmlui/wing/element/Para.java
> and at sample code in
>
> dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/xmltest/
>
> Regards,
> ~~helix84
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>



-- 
[image: @mire Inc.]
*Mark Diggory *(Schedule a Meeting <https://tungle.me/markdiggory>)
*2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
http://www.atmire.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to