Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No licence data in DSpace #14

Open
2 of 4 tasks
steven1350 opened this issue Mar 28, 2018 · 2 comments
Open
2 of 4 tasks

No licence data in DSpace #14

steven1350 opened this issue Mar 28, 2018 · 2 comments
Labels
book info related to the book info admin page, book metadata, or the relevant sections of a book's homepage bug third party related to third party tools, services, integrations or plugins

Comments

@steven1350
Copy link

steven1350 commented Mar 28, 2018

Prerequisites

Check the boxes below by changing them from [ ] to [x].

Description

License data is not submitted into Dspace metadata when the book is exported

Steps to Reproduce

  1. Set the license of your book under the Copyright heading in the "Book Info" tab
  2. Submit the book to DSpace

Expected behavior: License data is included in the metadata

Actual behavior: License data is missing from the metadata

@dac514
Copy link
Contributor

dac514 commented Apr 5, 2018

The packaging format we use alledgedly supports: http://dublincore.org/documents/dcmi-terms/#terms-rights

In excalibur\inc\dspace\class-deposit.php look for the commented out code:

// Information about rights held in and over the resource.
// $package->addRights( '' );

And change to

// Information about rights held in and over the resource.
$licensing = new \Pressbooks\Licensing();
$rights = $licensing->doLicense( $metadata );
$rights = wp_strip_all_tags( $rights );
$package->addRights( $rights );

Does this do what you expect?

@steven1350
Copy link
Author

steven1350 commented Nov 8, 2018

I have made the changes, and ran into some issues. In the mets.xml files included in the SWORD deposit, there is a field like the following

<epdcx:statement epdcx:propertyURI="http://purl.org/dc/terms/rights">
<epdcx:valueString>Database Design - 2nd Edition  by Adrienne Watt and Nelson Eng is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.</epdcx:valueString>
</epdcx:statement>

The issue is that this field doesn't get added to the record it creates in DSpace

@SteelWagstaff SteelWagstaff added book info related to the book info admin page, book metadata, or the relevant sections of a book's homepage third party related to third party tools, services, integrations or plugins labels Nov 29, 2019
@dac514 dac514 removed their assignment Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
book info related to the book info admin page, book metadata, or the relevant sections of a book's homepage bug third party related to third party tools, services, integrations or plugins
Projects
None yet
Development

No branches or pull requests

4 participants