dspace

How to show custom metadata in DSpace's summary view?

梦想与她 提交于 2019-12-11 03:56:00
问题 I just "inherited" this repository in my office. I have no experience at all with it and I've been asked to show custom metadata below an item's title in the summary view. The custom metadata has already been registered (it is called dc.magazine.title) and I managed to edit the input forms so that all the new metadata can be registered in the database. The repository is using the default mirage theme with XMLUI. I have changed some code in the file DIM-Handler.xsl trying to emulate how the

DSpace version 4.x Adding Facet, which messages.xml file should I edit?

和自甴很熟 提交于 2019-12-11 00:46:01
问题 After editing Discovery.xml located in C:\dspace-4.2-release\dspace\config\spring\api to add facet, which messages.xml should be edited to add a key, <message key="xmlui.ArtifactBrowser.SimpleSearch.filter.type">Type</message because I realized there are 10 messages.xml files in C:\dspace-4.2-release folder. Does anyone know which messages.xml should I add the key? This is for XMLUI Interface. 回答1: Given the following facet <bean id="searchFilterCourse" class="org.dspace.discovery

How to display thumbnails from harvested items in DSpace?

徘徊边缘 提交于 2019-12-10 10:18:19
问题 I am trying to display the thumbnails from harvested items. The settings I have for the harvesting options is Harvest metadata and references to bitstreams (requires ORE support) . When looking for the code on how DSpace displays the filenames and file sizes of the bitstreams of the harvested items in simple view, I found that in https://github.com/DSpace/DSpace/blob/dspace-6.1/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/item-view.xsl#L375-L378 <!-- Special case for

How can I capture current or active locale in DSpace XMLUI?

£可爱£侵袭症+ 提交于 2019-12-08 03:24:14
问题 I have this setting in dspace.cfg webui.supported.locales = en, fr, zh . I wonder why I can't get the active or current locale if I use: <xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='page'][@qualifier='currentLocale']"/> in my item-view.xsl ? Viewing the page eg http://localhost:8080/DRI/handle/123456789/10476?locale-attribute=fr , it is obviously there in: <metadata element="page" qualifier="currentLocale">fr</metadata> Am I missing something? 回答1:

How to reorder DRI divs in DSpace XMLUI

不问归期 提交于 2019-12-08 01:52:49
问题 I need to modify it to the home's div's order, the default current DRI is <div id="aspect.artifactbrowser.CommunityBrowser.div.comunity-browser" rend="primary" n="comunity-browser">...</div> <div id="aspect.discovery.SiteRecentSubmissions.div.site-home" rend="primary repository" n="site-home">...</div> And I need to be <div id="aspect.discovery.SiteRecentSubmissions.div.site-home" rend="primary repository" n="site-home"> <div id="aspect.artifactbrowser.CommunityBrowser.div.comunity-browser"

How can I capture current or active locale in DSpace XMLUI?

流过昼夜 提交于 2019-12-06 05:40:16
I have this setting in dspace.cfg webui.supported.locales = en, fr, zh . I wonder why I can't get the active or current locale if I use: <xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='page'][@qualifier='currentLocale']"/> in my item-view.xsl ? Viewing the page eg http://localhost:8080/DRI/handle/123456789/10476?locale-attribute=fr , it is obviously there in: <metadata element="page" qualifier="currentLocale">fr</metadata> Am I missing something? Apparently, declaring this in a variable in the global-variables.xsl eg <xsl:variable name="active-locale" select="

How to display thumbnails from harvested items in DSpace?

南楼画角 提交于 2019-12-05 18:38:38
I am trying to display the thumbnails from harvested items. The settings I have for the harvesting options is Harvest metadata and references to bitstreams (requires ORE support) . When looking for the code on how DSpace displays the filenames and file sizes of the bitstreams of the harvested items in simple view, I found that in https://github.com/DSpace/DSpace/blob/dspace-6.1/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/item-view.xsl#L375-L378 <!-- Special case for handling ORE resource maps stored as DSpace bitstreams --> <xsl:when test="//mets:fileSec/mets:fileGrp[@USE=

Override recently added list in home page

大城市里の小女人 提交于 2019-12-04 05:10:59
问题 I wonder if it's possible to override the Recently Added list in the home page. The default behavior is that any new submitted items are displayed in the list regardless of its issue date. Is there a way to override it such that only the latest submitted publications issued for example within two years (or a conditional if dc.date.issued => 2014 ) are displayed? I am using DSpace 5.3 Mirage 2 theme. UPDATE Using @terry's answer, here is the code I tried: <xsl:template match="dri:referenceSet[

How to display appropriate language labels for items that have non-english version

夙愿已清 提交于 2019-12-02 10:44:51
问题 I have an item with URI http://hdl.handle.net/10862/717 in our local language that has an english version: http://hdl.handle.net/10862/152. <dim:field element="relation" qualifier="hasversion" language="en" mdschema="dc">http://hdl.handle.net/10862/152</dim:field> My xsl template below: <xsl:template name="itemSummaryView-DIM-HASVERSION"> <xsl:if test="dim:field[@element='relation' and @qualifier='hasversion' and descendant::text()]"> <div class="simple-item-view-uri item-page-field-wrapper

How to display appropriate language labels for items that have non-english version

☆樱花仙子☆ 提交于 2019-12-02 06:32:54
I have an item with URI http://hdl.handle.net/10862/717 in our local language that has an english version: http://hdl.handle.net/10862/152 . <dim:field element="relation" qualifier="hasversion" language="en" mdschema="dc">http://hdl.handle.net/10862/152</dim:field> My xsl template below: <xsl:template name="itemSummaryView-DIM-HASVERSION"> <xsl:if test="dim:field[@element='relation' and @qualifier='hasversion' and descendant::text()]"> <div class="simple-item-view-uri item-page-field-wrapper table"> <h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item-hasversion</i18n:text></h5> <span> <xsl:for-each