Browse Source

Adds prefix for dcterms to module (#757)

fixes: https://github.com/Islandora/documentation/issues/1412
pull/758/head
B. Seeger 5 years ago committed by GitHub
parent
commit
82097d5307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      islandora.module
  2. 2
      tests/src/Functional/JsonldSelfReferenceReactionTest.php

1
islandora.module

@ -51,6 +51,7 @@ function islandora_rdf_namespaces() {
return [ return [
'ldp' => 'http://www.w3.org/ns/ldp#', 'ldp' => 'http://www.w3.org/ns/ldp#',
'dc11' => 'http://purl.org/dc/elements/1.1/', 'dc11' => 'http://purl.org/dc/elements/1.1/',
'dcterms' => 'http://purl.org/dc/terms/',
'nfo' => 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.1/', 'nfo' => 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.1/',
'ebucore' => 'http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#', 'ebucore' => 'http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#',
'fedora' => 'http://fedora.info/definitions/v4/repository#', 'fedora' => 'http://fedora.info/definitions/v4/repository#',

2
tests/src/Functional/JsonldSelfReferenceReactionTest.php

@ -28,7 +28,7 @@ class JsonldSelfReferenceReactionTest extends IslandoraFunctionalTestBase {
->setBundleMapping(['types' => $types]) ->setBundleMapping(['types' => $types])
->setFieldMapping('created', $created_mapping) ->setFieldMapping('created', $created_mapping)
->setFieldMapping('title', [ ->setFieldMapping('title', [
'properties' => ['dc:title'], 'properties' => ['dcterms:title'],
'datatype' => 'xsd:string', 'datatype' => 'xsd:string',
]) ])
->save(); ->save();

Loading…
Cancel
Save