Dear All,

I wonder, if I view the DRI of an item, there is no metadata 
element="identifier" qualifier="handle" in the DRI 
or //dri:meta/dri:pageMeta/dri:metadata. I asked because I created a 
variable name identifier_handle in the global-variables.xsl which will be 
used by Altmetrics template in item-view.xsl.

    <!-- item metadata reference -->
    <xsl:variable name='identifier_doi'
                  
select='//dri:meta/dri:pageMeta/dri:metadata[@element="citation_doi"]'/>
    <xsl:variable name='identifier_handle'
                  
select='//dri:meta/dri:pageMeta/dri:metadata[@element="identifier" and 
@qualifier="handle"]'/>

Below is a snippet of my altmetrics template where the variable 
identifier_handle is called:

                <xsl:choose>    <!-- data-doi data-handle data-arxiv-id 
data-pmid -->
                    <xsl:when test='$identifier_doi'>
                        <xsl:attribute name='data-doi'><xsl:value-of 
select='$identifier_doi'/></xsl:attribute>
                    </xsl:when>
                    <xsl:when test='$identifier_handle'>
                        <xsl:attribute name='data-handle'><xsl:value-of 
select='$identifier_handle'/></xsl:attribute>
                    </xsl:when>
                </xsl:choose>

Since there is no value for identifier_handle because it is missing in 
dri:pageMeta/dri:metadata, the Altmetrics badge is not shown. Altmetrics is 
shown for items with doi by the way since it is present in pageMeta.

My question now is how can I make the handle appear in pageMeta and what 
file should I modify? I am using DSpace version 6.3 Mirage2. I did not edit 
any *.java files in this repository, since when I tried to look where 
pageMeta was generated, I assumed that it is generated by ItemViewer.java 
(please correct me if I'm wrong) which I did not modify.

In other repositories that I am working on (with almost the exact 
customizations), the handle is there in pageMeta.

Thanks in advance!

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/7939a996-befc-44d4-8484-2bc732bb24b3%40googlegroups.com.

Reply via email to