metadata element="identifier" qualifier="handle" is missing in pageMeta or DRI

82 views
Skip to first unread message

euler

unread,
Jan 16, 2020, 4:46:27 AM1/16/20
to DSpace Technical Support
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!

euler

unread,
Jan 16, 2020, 10:13:44 PM1/16/20
to DSpace Technical Support
Dear All,

I tried rebuilding using mvn -U clean package but I still don't see the '<metadata element="identifier" qualifier="handle">' in the DRI document under the //dri:meta/dri:pageMeta/dri:metadata structure.

Please help on how I could resolve this.

Thank you so much in advance!

Paul Münch

unread,
Feb 7, 2020, 3:01:38 AM2/7/20
to dspac...@googlegroups.com
Hello,

in the 'dri:pageMeta' you will only find information about the displayed document, not about the item's metadata (cf. https://wiki.lyrasis.org/display/DSDOC6x/DRI+Schema+Reference#DRISchemaReference-pageMeta)

In 'item-view.xsl' you can directly select metadata values from the 'dim:field' of item's metadata mets.xml ([dspace-url]/metadata/handle/[...]/mets.xml). Take a look at the xsl:templates used there.

I hope this helps and kind regards,

Paul Münch

Am 16.01.20 um 10:46 schrieb euler:
--
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...@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.

euler

unread,
May 19, 2020, 6:46:13 PM5/19/20
to DSpace Technical Support
Dear All,

I would like to reiterate my query about why there is no metadata element="identifier" qualifier="handle" in the pageMeta of my items. I got a response from Paul, thanks Paul but it did not address why it is missing. I am aware that I can select metadata values from the 'dim:field' of the item's metadata mets.xml. What I would really like to know is why it is missing and how to make the metadata element="identifier" qualifier="handle" appear in the pageMeta. I assumed that this is supposed to exist because it is being referenced in the global-variables.xsl in Mirage theme.

Even in my local instance using the default 6.3 version without any customizations, it is still missing. I looked for many repositories of others to see if the element="identifier" qualifier="handle" is also missing and I found an example here: https://iris.paho.org/DRI/handle/10665.2/52154 although it is using the 6.4-SNAPSHOT version.

If anybody could shed light on this and how to resolve and what to look for would be really appreciated.

Thanks in advance!
Euler


On Thursday, January 16, 2020 at 5:46:27 PM UTC+8, euler wrote:

Bill Tantzen

unread,
May 20, 2020, 10:16:08 AM5/20/20
to euler, DSpace Technical Support
Well, I can't specifically answer your question, but I can verify that this element exists in v5.10 in the <pageMeta>!

--
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...@googlegroups.com.


--
Human wheels spin round and round
While the clock keeps the pace... -- John Mellencamp
________________________________________________________________
Bill Tantzen    University of Minnesota Libraries
612-626-9949 (U of M)    612-325-1777 (cell)

Shaun donovan

unread,
May 20, 2020, 11:04:14 AM5/20/20
to Bill Tantzen, euler, DSpace Technical Support

I will add that it is also present in v5.5 and v6.3 but on Mirage (don't know about Mirage2).

Reply all
Reply to author
Forward
0 new messages