Hi euler,

are you sure the rights section isn't showing in the mets.xml *as it
appears to the theme*? That said, when I did this for a repository I was
supporting at the time, apparently I had to copy the logic to append the
URL parameter into <xsl:template match="dri:reference" mode="detailView">
in common.xsl to look the same as in the <xsl:template match="dri:reference"
mode="summaryView"> template - so the detailView and summaryView templates
in that file now look essentially identical, other than passing the
respective mode through in their first apply-templates call.

cheers,
Andrea

On Fri, 31 Jul 2020 at 12:30, euler <[email protected]> wrote:

> Hi Andrea,
>
> You are right, I just found out about this when I read from an old thread
> asked by helix here: bitstream access rights in DRI?
> <https://groups.google.com/d/msg/dspace-tech/-GH8uRm9lHI/devO-eDzBgAJ> My
> question now is, if this is already done in common.xsl file, and it is
> called or being imported by the theme.xsl, why is it that the METSRIGHTS is
> not displaying in the mets.xml? Should I just copy the xsl:template
> match="dri:reference" mode="summaryView" where the append is happening from
> common.xsl file into the item-view.xsl?
>
> Thanks in advance!
> euler
>
> On Friday, July 31, 2020 at 7:54:52 AM UTC+8, Andrea Schweer wrote:
>>
>> Hi,
>>
>> it's not a bug - you need to append ?rightsMDTypes=METSRIGHTS to the
>> mets.xml URL in order to see the section. You can see how this is appended
>> in the aspect/artifactbrowser/common.xsl file.
>>
>> cheers,
>> Andrea
>>
>> On Thu, 30 Jul 2020 at 19:00, euler <[email protected]> wrote:
>>
>>> Dear All,
>>>
>>> This is in relation to my other question: How to check if bitstream is
>>> readable by a specific group
>>> <https://groups.google.com/d/msg/dspace-tech/jnQJOoK4lS0/5gcx90EeCAAJ>.
>>> We are using DSpace version 6.3 and Mirage2 as theme. I've read here:
>>> https://wiki.lyrasis.org/display/DSDOC6x/Mirage+2+Configuration+and+Customization
>>>  and
>>> it states that:
>>>
>>> When METSRIGHT is included in
>>>> plugin.named.org.dspace.content.crosswalk.DisseminationCrosswalk  the
>>>> item page will display those rights.
>>>
>>>
>>> I've checked my dspace.cfg and 
>>> org.dspace.content.crosswalk.METSRightsCrosswalk
>>> = METSRIGHTS is there, but when I view the mets file of an item (eg
>>> https://repository.seafdec.org.ph/metadata/handle/10862/2142/mets.xml),
>>> the METSRIGHTS section is not there. There is also no instance of @ADMID
>>> attribute in the mets:file section which is used as a test condition to
>>> call the template name "display-rights" found in item.xsl:
>>> https://github.com/DSpace/DSpace/blob/dspace-6.3/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/item-view.xsl#L644-L654
>>> .
>>>
>>>             <div class="file-link col-xs-6 col-xs-offset-6 col-sm-2
>>> col-sm-offset-0">
>>>                 <xsl:choose>
>>>                     <xsl:when test="@ADMID">
>>>                         <xsl:call-template name="display-rights"/>
>>>                     </xsl:when>
>>>                     <xsl:otherwise>
>>>                         <xsl:call-template name="view-open"/>
>>>                     </xsl:otherwise>
>>>                 </xsl:choose>
>>>             </div>
>>>         </div>
>>>
>>> I also checked an item in demo.dspace.org particularly
>>> http://demo.dspace.org/xmlui/metadata/handle/10673/5/mets.xml and there
>>> is also no @ADMID in the mets:file section although I'm not sure if
>>> METSRIGHTS is enabled in the demo site. I'm starting to think that the
>>> template name "display-rights" was never called because no @ADMID
>>> exists in the mets file. I've also checked other repositories and I haven't
>>> found one that is displaying the METSRIGHTS data in its mets:file section.
>>> I however found in CGspace that has the PERMISSION and READRIGHTS attribute
>>> in its mets file but they are using version 5.8.
>>>
>>> Any advice on how to enable or display METSRIGHTS? Is this a bug? Or I
>>> am just missing something in my configuration which needs to be enabled?
>>>
>>> Thanks in advance and best regards,
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/dspace-tech/e03b2910-10d5-4a86-9186-795669ae039fo%40googlegroups.com
>>> <https://groups.google.com/d/msgid/dspace-tech/e03b2910-10d5-4a86-9186-795669ae039fo%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>>
>>
>>
>> *Dr Andrea Schweer **| Research Technologies Manager*
>> * ITS Programme & Commercial* *|** University of Waikato*
>> *Private Bag 3105*  *|*  *Hamilton 3240*  *|*
>> *New Zealand **waikato.ac.nz <http://www.waikato.ac.nz/>*   *|*  *ddi  +
>> 64 7 837 9253*
>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/d9f23606-3f10-4055-a6aa-473a2cf32f07o%40googlegroups.com
> <https://groups.google.com/d/msgid/dspace-tech/d9f23606-3f10-4055-a6aa-473a2cf32f07o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 



*Dr Andrea Schweer **| Research Technologies Manager*
* ITS Programme & Commercial* *|** University of Waikato*
*Private Bag 3105*  *|*  *Hamilton 3240*  *|*
*New Zealand **waikato.ac.nz <http://www.waikato.ac.nz/>*   *|*  *ddi  + 64
7 837 9253*

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAEyLpBpmnapr-MNOG3DuJPGJ-hOXcZM_4YwM1jvsONft%2BNbUvg%40mail.gmail.com.

Reply via email to