"That's actually the easy part. It's as simple as this test: <xsl:if test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request '][@qualifier='URI']='handle/123456789/123'"> <!-- code specific for collection with handle 123456789/123 does here --> </xsl:if>"
So this will be done within item-view.xsl, and in this way, all things will be displayed regularly (default display) except for that particular collection, right? Also, I saw all the existing xsl:if clauses are within the individual filed templates. Does this mean that I also need to create the above xsl:if clauses within all the individual filed templates for detail view or is there a way to use a single xsl:if clause for all the fields of a particular collection? So what I am trying to say is if it's possible (desirable) to divide the item-view.xsl file to two parts, one for the default collection, and another for a new collection. Sorry for too many questions. Thanks. helix84 wrote: >On Mon, Nov 21, 2011 at 21:05, Shaw Yu <[email protected]> wrote: > > >> Thanks helix84. You are very helpful. Yes, we use Mirage. I will try to >>modify item-view.xsl to see if I can created the needed display. If I >>understand correctly, I basically need to use the templates for the fields >>of summery view to replace the default template for detail view. >> >> > >That's correct - if what you want to do is display only some items >instead all items in the detail view. > > > >> Where I got lost is about how to create a collection-specific display. >> >>"By default global, but of course you can also make a different >>override for different collections as you wish. To detect the >>currently displayed template you would use <metadata element="request" >>qualifier="URI"> from the pageMeta section of DRI." >> >> Could you please explain further? I am not sure what are the files >>involved? What are the steps? Does it require to create a new theme? Is >>there any documentation about this? >> >> >>Thanks. >> >> > >That's actually the easy part. It's as simple as this test: > ><xsl:if >test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request >'][@qualifier='URI']='handle/123456789/123'"> > <!-- code specific for collection with handle 123456789/123 does here --> ></xsl:if> > > >Please, keep dspace-tech in CC when replying. > >Regards, >~~helix84 > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

