2019-10-28 12:51:00 +01:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
< meta property = "og:title" content = "CGSpace CG Core v2 Migration" / >
< meta property = "og:description" content = "Possible changes to CGSpace metadata fields to align more with DC, QDC, and DCTERMS as well as CG Core v2." / >
< meta property = "og:type" content = "article" / >
< meta property = "og:url" content = "https://alanorth.github.io/cgspace-notes/cgspace-cgcorev2-migration/" / >
< meta property = "article:published_time" content = "2019-10-28T13:27:35+02:00" / >
2020-04-13 16:24:05 +02:00
< meta property = "article:modified_time" content = "2020-04-13T15:30:24+03:00" / >
2019-10-28 12:51:00 +01:00
< meta name = "twitter:card" content = "summary" / >
< meta name = "twitter:title" content = "CGSpace CG Core v2 Migration" / >
< meta name = "twitter:description" content = "Possible changes to CGSpace metadata fields to align more with DC, QDC, and DCTERMS as well as CG Core v2." / >
2020-08-06 08:00:37 +02:00
< meta name = "generator" content = "Hugo 0.74.3" / >
2019-10-28 12:51:00 +01:00
< script type = "application/ld+json" >
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "CGSpace CG Core v2 Migration",
2020-04-02 09:55:42 +02:00
"url": "https://alanorth.github.io/cgspace-notes/cgspace-cgcorev2-migration/",
2019-12-22 11:14:25 +01:00
"wordCount": "555",
2019-10-28 12:51:00 +01:00
"datePublished": "2019-10-28T13:27:35+02:00",
2020-04-13 16:24:05 +02:00
"dateModified": "2020-04-13T15:30:24+03:00",
2019-10-28 12:51:00 +01:00
"author": {
"@type": "Person",
"name": "Alan Orth"
},
"keywords": "Notes, Migration",
"description": "Possible changes to CGSpace metadata fields to align more with DC, QDC, and DCTERMS as well as CG Core v2."
}
< / script >
< link rel = "canonical" href = "https://alanorth.github.io/cgspace-notes/cgspace-cgcorev2-migration/" >
< title > CGSpace CG Core v2 Migration | CGSpace Notes< / title >
<!-- combined, minified CSS -->
2020-01-23 19:19:38 +01:00
2020-01-28 11:01:42 +01:00
< link href = "https://alanorth.github.io/cgspace-notes/css/style.6da5c906cc7a8fbb93f31cd2316c5dbe3f19ac4aa6bfb066f1243045b8f6061e.css" rel = "stylesheet" integrity = "sha256-baXJBsx6j7uT8xzSMWxdvj8ZrEqmv7Bm8SQwRbj2Bh4=" crossorigin = "anonymous" >
2019-10-28 12:51:00 +01:00
2020-01-28 11:01:42 +01:00
<!-- minified Font Awesome for SVG icons -->
2020-04-02 09:55:42 +02:00
< script defer src = "https://alanorth.github.io/cgspace-notes/js/fontawesome.min.f3d2a1f5980bab30ddd0d8cadbd496475309fc48e2b1d052c5c09e6facffcb0f.js" integrity = "sha256-89Kh9ZgLqzDd0NjK29SWR1MJ/EjisdBSxcCeb6z/yw8=" crossorigin = "anonymous" > < / script >
2020-01-28 11:01:42 +01:00
2019-10-28 12:51:00 +01:00
<!-- RSS 2.0 feed -->
< / head >
< body >
< div class = "blog-masthead" >
< div class = "container" >
< nav class = "nav blog-nav" >
< a class = "nav-link " href = "https://alanorth.github.io/cgspace-notes/" > Home< / a >
< / nav >
< / div >
< / div >
< header class = "blog-header" >
< div class = "container" >
< h1 class = "blog-title" dir = "auto" > < a href = "https://alanorth.github.io/cgspace-notes/" rel = "home" > CGSpace Notes< / a > < / h1 >
< p class = "lead blog-description" dir = "auto" > Documenting day-to-day work on the < a href = "https://cgspace.cgiar.org" > CGSpace< / a > repository.< / p >
< / div >
< / header >
< div class = "container" >
< div class = "row" >
< div class = "col-sm-8 blog-main" >
< article class = "blog-post" >
< header >
< h2 class = "blog-post-title" dir = "auto" > < a href = "https://alanorth.github.io/cgspace-notes/cgspace-cgcorev2-migration/" > CGSpace CG Core v2 Migration< / a > < / h2 >
2020-04-02 09:55:42 +02:00
< p class = "blog-post-meta" > < time datetime = "2019-10-28T13:27:35+02:00" > Mon Oct 28, 2019< / time > by Alan Orth in
2020-01-28 11:01:42 +01:00
< span class = "fas fa-folder" aria-hidden = "true" > < / span > < a href = "/cgspace-notes/categories/notes/" rel = "category tag" > Notes< / a >
2019-10-28 12:51:00 +01:00
2020-01-28 11:01:42 +01:00
< span class = "fas fa-tag" aria-hidden = "true" > < / span > < a href = "/cgspace-notes/tags/migration/" rel = "tag" > Migration< / a >
2019-10-28 12:51:00 +01:00
< / p >
< / header >
< p > Possible changes to CGSpace metadata fields to align more with DC, QDC, and DCTERMS as well as CG Core v2.< / p >
< p > With reference to < a href = "https://agriculturalsemantics.github.io/cg-core/cgcore.html" > CG Core v2 draft standard< / a > by Marie-Angélique as well as < a href = "http://www.dublincore.org/specifications/dublin-core/dcmi-terms/" > DCMI DCTERMS< / a > .< / p >
< ul >
< li > < a href = "#proposed-changes" > Proposed Changes< / a > < / li >
< li > < a href = "#fields-to-create" > Fields to Create< / a > < / li >
< li > < a href = "#fields-to-delete" > Fields to Delete< / a > < / li >
< li > < a href = "#implementation-progress" > Implementation Progress< / a > < / li >
< / ul >
< h2 id = "proposed-changes" > Proposed Changes< / h2 >
2019-12-22 11:14:25 +01:00
< p > As of 2019-12-22 the scope of the changes includes the following fields:< / p >
2019-10-28 12:51:00 +01:00
< ul >
< li > cg.creator.id→cg.creator.identifier
< ul >
< li > ORCID identifiers< / li >
2019-11-28 16:30:45 +01:00
< / ul >
< / li >
2019-10-28 12:51:00 +01:00
< li > dc.format.extent→dcterms.extent< / li >
< li > dc.date.issued→dcterms.issued< / li >
< li > dc.description.abstract→dcterms.abstract< / li >
< li > dc.description→dcterms.description< / li >
< li > dc.description.sponsorship→cg.contributor.donor
< ul >
< li > values from CrossRef or Grid.ac if possible< / li >
2019-11-28 16:30:45 +01:00
< / ul >
< / li >
2019-12-22 11:14:25 +01:00
< li > dc.description.version→cg.review-status< / li >
2019-10-28 12:51:00 +01:00
< li > cg.fulltextstatus→cg.howpublished
< ul >
< li > CGSpace uses values like “ Formally Published” or “ Grey Literature” < / li >
2019-11-28 16:30:45 +01:00
< / ul >
< / li >
2019-10-28 12:51:00 +01:00
< li > dc.identifier.citation→dcterms.bibliographicCitation< / li >
< li > cg.identifier.status→dcterms.accessRights
< ul >
< li > current values are “ Open Access” and “ Limited Access” < / li >
< li > future values are possibly “ Open” and “ Restricted” ?< / li >
2019-11-28 16:30:45 +01:00
< / ul >
< / li >
2019-10-28 12:51:00 +01:00
< li > dc.language.iso→dcterms.language
< ul >
< li > current values are ISO 639-1 (aka Alpha 2)< / li >
< li > future values are possibly ISO 639-3 (aka Alpha 3)?< / li >
2019-11-28 16:30:45 +01:00
< / ul >
< / li >
2019-10-28 12:51:00 +01:00
< li > cg.link.reference→dcterms.relation< / li >
< li > dc.publisher→dcterms.publisher< / li >
< li > dc.relation.ispartofseries→dcterms.isPartOf< / li >
< li > dc.rights→dcterms.license
< ul >
< li > Using < a href = "https://spdx.org/licenses/" > SPDX license identifiers< / a > if possible< / li >
2019-11-28 16:30:45 +01:00
< / ul >
< / li >
2019-10-28 12:51:00 +01:00
< li > dc.source→cg.journal< / li >
< li > dc.subject→dcterms.subject< / li >
< li > dc.type→dcterms.type< / li >
< li > dc.identifier.isbn→cg.isbn< / li >
< li > dc.identifier.issn→cg.issn< / li >
2019-12-22 11:14:25 +01:00
< li > cg.targetaudience→dcterms.audience< / li >
2019-10-28 12:51:00 +01:00
< / ul >
< p > The following fields are currently out of the scope of this migration because they are used internally by DSpace 5.x/6.x and would be difficult to change without significant modifications to the core of the code:< / p >
< ul >
2019-10-29 15:23:43 +01:00
< li > dc.title (< code > IncludePageMeta.java< / code > only considers DC when building pageMeta, which we rely on in XMLUI because of XSLT from DRI)< / li >
2019-10-28 15:54:05 +01:00
< li > dc.title.alternative< / li >
2019-10-28 12:51:00 +01:00
< li > dc.date.available< / li >
< li > dc.date.accessioned< / li >
2019-10-29 15:23:43 +01:00
< li > dc.identifier.uri (hard coded for Handle assignment upon item submission)< / li >
2019-10-28 12:51:00 +01:00
< li > dc.description.provenance< / li >
2019-10-29 15:23:43 +01:00
< li > dc.contributor.author (< code > IncludePageMeta.java< / code > only considers DC when building pageMeta, which we rely on in XMLUI because of XSLT from DRI)< / li >
2019-10-28 12:51:00 +01:00
< / ul >
< h2 id = "fields-to-create" > Fields to Create< / h2 >
< p > Make sure the following fields exist:< / p >
2019-11-28 16:30:45 +01:00
< ul >
2020-03-22 13:35:20 +01:00
< li > < input checked = "" disabled = "" type = "checkbox" > cg.creator.identifier (242)< / li >
< li > < input checked = "" disabled = "" type = "checkbox" > cg.contributor.donor (243)< / li >
< li > < input checked = "" disabled = "" type = "checkbox" > cg.review-status (244)< / li >
< li > < input checked = "" disabled = "" type = "checkbox" > cg.howpublished (245)< / li >
< li > < input checked = "" disabled = "" type = "checkbox" > cg.journal (246)< / li >
< li > < input checked = "" disabled = "" type = "checkbox" > cg.isbn (247)< / li >
< li > < input checked = "" disabled = "" type = "checkbox" > cg.issn (248)< / li >
2019-10-28 12:51:00 +01:00
< / ul >
< h2 id = "fields-to-delete" > Fields to delete< / h2 >
< p > Fields to delete after migration:< / p >
2019-11-28 16:30:45 +01:00
< ul >
2020-03-22 13:35:20 +01:00
< li > < input disabled = "" type = "checkbox" > cg.creator.id< / li >
< li > < input disabled = "" type = "checkbox" > cg.fulltextstatus< / li >
< li > < input disabled = "" type = "checkbox" > cg.identifier.status< / li >
< li > < input disabled = "" type = "checkbox" > cg.link.reference< / li >
< li > < input disabled = "" type = "checkbox" > cg.targetaudience< / li >
2019-10-28 12:51:00 +01:00
< / ul >
< h2 id = "implementation-progress" > Implementation Progress< / h2 >
< p > Tally of the status of the implementation of the new fields in the CGSpace < code > 5_x-cgcorev2< / code > branch.< / p >
< table >
< thead >
< tr >
< th > Field Name< / th >
< th align = "center" > migrate-fields.sh< / th >
< th align = "center" > Input Forms< / th >
< th align = "center" > XMLUI Themes¹< / th >
< th align = "center" > dspace.cfg< / th >
< th align = "center" > Discovery< / th >
< th align = "center" > Atmire Modules< / th >
< th align = "center" > Crosswalks< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td > cg.creator.identifier< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.extent< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.issued< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ?< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.abstract< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.description< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > cg.contributor.donor< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
2019-12-22 11:14:25 +01:00
< td > cg.review-status< / td >
2019-10-28 12:51:00 +01:00
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > cg.howpublished< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.bibliographicCitation< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.accessRights< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.language< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.relation< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.publisher< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.isPartOf< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.license< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > cg.journal< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.subject< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > dcterms.type< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > cg.isbn< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
< tr >
< td > cg.issn< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
2019-12-22 11:14:25 +01:00
< tr >
< td > dcterms.audience< / td >
< td align = "center" > ✓< / td >
< td align = "center" > ✓< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > -< / td >
< td align = "center" > ✓< / td >
< td align = "center" > < / td >
< / tr >
2019-10-28 12:51:00 +01:00
< / tbody >
< / table >
< p > There are a few things that I need to check once I get a deployment of this code up and running:< / p >
< ul >
< li > Assess the XSL changes to see if things like < code > not(@qualifier)]< / code > still make sense after we move fields from DC to DCTERMS, as some fields will no longer have qualifiers< / li >
2020-04-13 16:24:05 +02:00
< li > Do I need to edit crosswalks that we are not using, like < a href = "https://wiki.lyrasis.org/display/DSDOC5x/DSpace+AIP+Format#DSpaceAIPFormat-MODSSchema" > MODS< / a > ?< / li >
2019-10-28 12:51:00 +01:00
< li > There is potentially a lot of work in the OAI metadata formats like DIM, METS, and QDC (see < code > dspace/config/crosswalks/oai/*.xsl< / code > )< / li >
< / ul >
2019-11-28 16:30:45 +01:00
< hr >
2020-01-27 15:20:44 +01:00
< p > ¹ Not committed yet because I don’ t want to have to make minor adjustments in multiple commits. Re-apply the gauntlet of fixes with the sed script:< / p >
2019-11-17 14:39:10 +01:00
< pre > < code > $ find dspace/modules/xmlui-mirage2/src/main/webapp/themes -iname " *.xsl" -exec sed -i -f ./cgcore-xsl-replacements.sed {} \;
2019-10-28 12:51:00 +01:00
< / code > < / pre >
< / article >
< / div > <!-- /.blog - main -->
< aside class = "col-sm-3 ml-auto blog-sidebar" >
< section class = "sidebar-module" >
< h4 > Recent Posts< / h4 >
< ol class = "list-unstyled" >
2020-09-03 12:50:56 +02:00
< li > < a href = "/cgspace-notes/2020-09/" > September, 2020< / a > < / li >
2020-08-06 09:56:13 +02:00
< li > < a href = "/cgspace-notes/2020-08/" > August, 2020< / a > < / li >
2020-08-02 21:14:16 +02:00
2020-07-01 14:37:20 +02:00
< li > < a href = "/cgspace-notes/2020-07/" > July, 2020< / a > < / li >
2020-06-02 14:12:32 +02:00
< li > < a href = "/cgspace-notes/2020-06/" > June, 2020< / a > < / li >
2020-05-02 09:08:14 +02:00
2020-06-02 14:12:32 +02:00
< li > < a href = "/cgspace-notes/2020-05/" > May, 2020< / a > < / li >
2020-06-01 16:08:25 +02:00
2019-10-28 12:51:00 +01:00
< / ol >
< / section >
< section class = "sidebar-module" >
< h4 > Links< / h4 >
< ol class = "list-unstyled" >
< li > < a href = "https://cgspace.cgiar.org" > CGSpace< / a > < / li >
< li > < a href = "https://dspacetest.cgiar.org" > DSpace Test< / a > < / li >
< li > < a href = "https://github.com/ilri/DSpace" > CGSpace @ GitHub< / a > < / li >
< / ol >
< / section >
< / aside >
< / div > <!-- /.row -->
< / div > <!-- /.container -->
< footer class = "blog-footer" >
< p dir = "auto" >
Blog template created by < a href = "https://twitter.com/mdo" > @mdo< / a > , ported to Hugo by < a href = 'https://twitter.com/mralanorth' > @mralanorth< / a > .
< / p >
< p >
< a href = "#" > Back to top< / a >
< / p >
< / footer >
< / body >
< / html >