diff --git a/islandora_collection/composer.json b/islandora_collection/composer.json new file mode 100644 index 00000000..1bb86d51 --- /dev/null +++ b/islandora_collection/composer.json @@ -0,0 +1,14 @@ +{ + "name": "drupal/islandora_collection", + "type": "drupal-module", + "description": "Islandora Collection", + "keywords": ["Drupal"], + "license": "GPL-2.0+", + "homepage": "https://www.drupal.org/project/islandora_collection", + "minimum-stability": "dev", + "support": { + "issues": "http://drupal.org/project/issues/islandora_collection", + "source": "http://cgit.drupalcode.org/islandora_collection" + }, + "require": { } +} diff --git a/islandora_collection/config/install/field.field.fedora_resource.collection.field_description.yml b/islandora_collection/config/install/field.field.fedora_resource.collection.field_description.yml new file mode 100644 index 00000000..65faeb0b --- /dev/null +++ b/islandora_collection/config/install/field.field.fedora_resource.collection.field_description.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.fedora_resource.field_description + - islandora.fedora_resource_type.collection + enforced: + module: + - islandora_collection + module: + - text +id: fedora_resource.collection.field_description +field_name: field_description +entity_type: fedora_resource +bundle: collection +label: description +description: 'Description about the collection' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + display_summary: false +field_type: text_with_summary + diff --git a/islandora_collection/config/install/field.field.fedora_resource.collection.field_memberof.yml b/islandora_collection/config/install/field.field.fedora_resource.collection.field_memberof.yml new file mode 100644 index 00000000..045046fd --- /dev/null +++ b/islandora_collection/config/install/field.field.fedora_resource.collection.field_memberof.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.fedora_resource.field_memberof + - islandora.fedora_resource_type.collection + enforced: + module: + - islandora_collection +id: fedora_resource.collection5.field_memberof +field_name: field_memberof +entity_type: fedora_resource +bundle: collection +label: memberOf +description: 'Other collections or bundles this collection is member of.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:fedora_resource' + handler_settings: + target_bundles: + collection: collection + sort: + field: _none + auto_create: false + auto_create_bundle: '' +field_type: entity_reference + diff --git a/islandora_collection/config/install/field.storage.fedora_resource.field_description.yml b/islandora_collection/config/install/field.storage.fedora_resource.field_description.yml new file mode 100644 index 00000000..e32f1bec --- /dev/null +++ b/islandora_collection/config/install/field.storage.fedora_resource.field_description.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + module: + - islandora + - text + enforced: + module: + - islandora_collection +id: fedora_resource.field_description +field_name: field_description +entity_type: fedora_resource +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/islandora_collection/config/install/field.storage.fedora_resource.field_memberof.yml b/islandora_collection/config/install/field.storage.fedora_resource.field_memberof.yml new file mode 100644 index 00000000..59517206 --- /dev/null +++ b/islandora_collection/config/install/field.storage.fedora_resource.field_memberof.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - islandora + enforced: + module: + - islandora_collection +id: fedora_resource.field_memberof +field_name: field_memberof +entity_type: fedora_resource +type: entity_reference +settings: + target_type: fedora_resource +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false + diff --git a/islandora_collection/config/install/islandora.fedora_resource_type.collection.yml b/islandora_collection/config/install/islandora.fedora_resource_type.collection.yml new file mode 100644 index 00000000..7d47b276 --- /dev/null +++ b/islandora_collection/config/install/islandora.fedora_resource_type.collection.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - islandora_collection +id: collection +label: Collection +description: 'Islandora Collection' \ No newline at end of file diff --git a/islandora_collection/config/install/rdf.mapping.fedora_resource_type.collection.yml b/islandora_collection/config/install/rdf.mapping.fedora_resource_type.collection.yml new file mode 100644 index 00000000..25d05a00 --- /dev/null +++ b/islandora_collection/config/install/rdf.mapping.fedora_resource_type.collection.yml @@ -0,0 +1,47 @@ +langcode: en +status: true +dependencies: + config: + - islandora.fedora_resource_type.collection + module: + - islandora + enforced: + module: + - islandora_collection +id: fedora_resource.collection +targetEntityType: fedora_resource +bundle: collection +types: + - 'schema:Thing' + - 'ldp:RDFSource' + - 'ldp:Container' +fieldMappings: + field_description: + properties: + - 'dc:description' + field_memberof: + properties: + - 'dc:isPartOf' + name: + properties: + - 'dc:title' + - 'rdf:label' + created: + properties: + - 'schema:dateCreated' + - 'dc:created' + datatype_callback: + callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' + changed: + properties: + - 'schema:dateModified' + datatype_callback: + callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' + rdf_type: + properties: + - 'rdf:type' + uid: + properties: + - 'schema:author' + mapping_type: rel + diff --git a/islandora_collection/islandora_collection.info.yml b/islandora_collection/islandora_collection.info.yml new file mode 100644 index 00000000..063e17dd --- /dev/null +++ b/islandora_collection/islandora_collection.info.yml @@ -0,0 +1,5 @@ +name: islandora_collection +type: module +description: Islandora Collection +core: 8.x +package: islandora diff --git a/islandora_collection/islandora_collection.module b/islandora_collection/islandora_collection.module new file mode 100644 index 00000000..3d82c1ba --- /dev/null +++ b/islandora_collection/islandora_collection.module @@ -0,0 +1,24 @@ +' . t('About') . ''; + $output .= '

' . t('Islandora Collection') . '

'; + return $output; + + default: + } +}