On Fri, Jan 11, 2013 at 11:16 PM, Charles Kinney <[email protected]>
wrote:
> Recent submissions display appears to default to three Dublin Core
elements:
> dc.title,dc.contributor.*,dc.date.issued
>
> I would like to add another element to this display. How do I do so?
I've
> looked at the discovery.xml file. A simple example of how to do so would
> help.
Hi Charles,
it's not a configuration option, but you can customize the template quite
easily. Which XMLUI theme are you using? You didn't specify thet, so I'll
assume Mirage.
Because the template that renders the list is also used to render other
item lists, we will need to distinguish between these two uses, so we'll
fill this variable (you can put it directly to your theme's stylesheet,
outside any templates):
<xsl:variable name="recent-submissions_displayed"
select="/dri:document/dri:body/dri:div/dri:div[@id='aspect.artifactbrowser.CommunityRecentSubmissions.div.community-recent-submission']"
/>
The list itself is rendered in the itemSummaryList-DIM-metadata template,
so copy it over to your theme's stylesheet in order to override it. The
template is here:
https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-list.xsl#L151
So, e.g. if you wanted to add ISSN to the list, you would select the value
like this:
<xsl:value-of select="dim:field[@element='identifier' and
@qualifier='issn'][1]/node()"/>
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette