Skip to content

Commit 96b8f31

Browse files
committed
Merge pull request #117 from ruebot/7.x-ISLANDORA-962
DESTROY ISLANDORACM!!!
2 parents 63bfc50 + 0d563a6 commit 96b8f31

File tree

3 files changed

+1
-96
lines changed

3 files changed

+1
-96
lines changed

includes/collection_policy.inc

+1-2
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ EOT;
110110
public function addContentModel($pid, $name, $namespace) {
111111
$content_models_element = $this->xml->getElementsByTagName('content_models');
112112
$content_model_element = $content_models_element->item(0)->getElementsByTagName('content_model');
113-
114113
$content_model_element = $this->xml->createElement('content_model');
115114
$content_model_element->setAttribute('name', $name);
116-
$content_model_element->setAttribute('dsid', variable_get('Islandora_Content_Model_DSID', 'ISLANDORACM'));
115+
$content_model_element->setAttribute('dsid', variable_get('Islandora_Content_Model_DSID', ''));
117116
$content_model_element->setAttribute('namespace', $namespace);
118117
$content_model_element->setAttribute('pid', $pid);
119118
$content_models_element->item(0)->appendChild($content_model_element);

islandora_basic_collection.module

-6
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ function islandora_basic_collection_islandora_required_objects(IslandoraTuque $c
157157
$collection_content_model->owner = 'fedoraAdmin';
158158
$collection_content_model->label = 'Islandora Collection Content Model';
159159
$collection_content_model->models = 'fedora-system:ContentModel-3.0';
160-
// ISLANDORACM Datastream.
161-
$datastream = $collection_content_model->constructDatastream('ISLANDORACM', 'X');
162-
$datastream->label = 'Islandora content model';
163-
$datastream->mimetype = 'text/xml';
164-
$datastream->setContentFromFile("$module_path/xml/islandora_basic_collection_content_model.xml", FALSE);
165-
$collection_content_model->ingestDatastream($datastream);
166160
// DS-COMPOSITE-MODEL Datastream.
167161
$datastream = $collection_content_model->constructDatastream('DS-COMPOSITE-MODEL', 'X');
168162
$datastream->label = 'DS-COMPOSITE-MODEL';

xml/islandora_basic_collection_content_model.xml

-88
This file was deleted.

0 commit comments

Comments
 (0)