Browse Source

ISLANDORA-214 Update Newspaper issue content model to allow ingest.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
74b204b5f8
  1. 9
      plugins/islandora_newspaper/islandora_newspaper.module
  2. 2
      plugins/islandora_newspaper/newspapers_issueCModel_islandoracm.xml

9
plugins/islandora_newspaper/islandora_newspaper.module

@ -12,11 +12,12 @@ function islandora_newspaper_required_fedora_objects() {
'title' => 'Islandora Newspaper', 'title' => 'Islandora Newspaper',
'objects' => array( 'objects' => array(
array( array(
'foxml_file' => "$module_path/newspapers_issueCModel.xml", //'foxml_file' => "$module_path/newspapers_issueCModel.xml",
'pid' => 'newspapers:issueCModel', 'pid' => 'newspapers:issueCModel',
'dsid' => NULL, 'dsid' => 'ISLANDORACM',
'datastream_file' => NULL, 'cmodel' => 'fedora-system:ContentModel-3.0',
'dsversion' => NULL, 'datastream_file' => "$module_path/islandora_issueCModel_islandoracm.xml",
'dsversion' => 2,
), ),
array( array(
'foxml_file' => "$module_path/newspapers_pageCModel.xml", 'foxml_file' => "$module_path/newspapers_pageCModel.xml",

2
plugins/islandora_newspaper/newspapers_issueCModel_islandoracm.xml

@ -1,4 +1,4 @@
<content_model name="Newspaper" xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <content_model name="Newspaper" xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd" version="2">
<mimetypes> <mimetypes>
<type>text/xml</type> <type>text/xml</type>
</mimetypes> </mimetypes>

Loading…
Cancel
Save