To display DWC only for some images.
* Ingest dummy model islandora:sp_large_image_dwc_cmodel
<?xml version="1.0" encoding="UTF-8"?> <foxml:digitalObject VERSION="1.1" PID="islandora:sp_large_image_dwc_cmodel" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd"> <foxml:objectProperties> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Islandora Large Image DWC Content Model"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> </foxml:objectProperties> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Fedora Object to Object Relationship Metadata." CREATED="2016-06-15T13:41:36.310Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="464"> <foxml:xmlContent> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:islandora="http://islandora.ca/ontology/relsext#"> <rdf:Description rdf:about="info:fedora/islandora:sp_large_image_dwc_cmodel"> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"></fedora-model:hasModel> </rdf:Description> </rdf:RDF> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="DS-COMPOSITE-MODEL" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastreamVersion ID="DS-COMPOSITE-MODEL.0" LABEL="DS-COMPOSITE-MODEL" CREATED="2016-06-15T13:41:36.310Z" MIMETYPE="application/xml" SIZE="1273"> <foxml:xmlContent> <dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#"> <dsTypeModel ID="DC"> <form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="application/xml"></form> </dsTypeModel> <dsTypeModel ID="RELS-EXT" optional="true"> <form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="application/rdf+xml"></form> </dsTypeModel> <dsTypeModel ID="RELS-INT" optional="true"> <form FORMAT_URI="info:fedora/fedora-system:FedoraRELSInt-1.0" MIME="application/rdf+xml"></form> </dsTypeModel> <dsTypeModel ID="MODS" optional="true"> <form FORMAT_URI="http://www.loc.gov/mods/v3" MIME="application/xml"></form> </dsTypeModel> <dsTypeModel ID="OBJ" optional="true"> <form MIME="image/tiff"></form> <form MIME="image/jp2"></form> </dsTypeModel> <dsTypeModel ID="TN" ORDERED="false"> <form MIME="image/jpeg"></form> <form MIME="image/png"></form> <form MIME="image/gif"></form> </dsTypeModel> <dsTypeModel ID="JPG" ORDERED="false"> <form MIME="image/jpeg"></form> </dsTypeModel> <dsTypeModel ID="JP2" ORDERED="false"> <form MIME="image/jp2"></form> </dsTypeModel> <dsTypeModel ID="TECHMD"> <form MIME="application/xml"></form> </dsTypeModel> <dsTypeModel ID="DWC" optional="true"> <form FORMAT_URI="http://rs.tdwg.org/dwc/xsd/simpledarwincore/" MIME="application/xml"></form> </dsTypeModel> </dsCompositeModel> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2016-06-15T13:41:36.310Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="419"> <foxml:xmlContent> <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> <dc:title>Islandora Large Image DWC Content Model</dc:title> <dc:identifier>islandora:sp_large_image_dwc_cmodel</dc:identifier> </oai_dc:dc> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> </foxml:digitalObject>
* Edit object datastream RELS-EXT and add the dummy model
+ <fedora-model:hasModel rdf:resource="info:fedora/islandora:sp_large_image_dwc_cmodel"></fedora-model:hasModel>
* Add DWC datastream to the object
<?xml version="1.0" encoding="UTF-8"?> <dwr:SimpleDarwinRecordSet xmlns:dwr="http://rs.tdwg.org/dwc/xsd/simpledarwincore/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dwc="http://rs.tdwg.org/dwc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rs.tdwg.org/dwc/xsd/simpledarwincore/ http://rs.tdwg.org/dwc/xsd/tdwg_dwc_simple.xsd"> <dwr:SimpleDarwinRecord> <dcterms:type>StillImage</dcterms:type> <dcterms:modified>1942</dcterms:modified> <dcterms:language>it</dcterms:language> <dcterms:rights>Creative Commons license: Attribution-NonCommercial-NoDerivatives 4.0 International(CC BY-NC-ND 4.0)</dcterms:rights> <dcterms:rightsHolder>Istituto di Studi Adriatici, Osservatorio per la Pesca Marittima di Venezia </dcterms:rightsHolder> <dcterms:accessRights>not-for-profit use only</dcterms:accessRights> <dwc:scientificName>Nome scientifico</dwc:scientificName> <dwc:vernacularName>Nome comune</dwc:vernacularName> </dwr:SimpleDarwinRecord> </dwr:SimpleDarwinRecordSet>
* Configure Solr Metadata to display DWC elements for model islandora:sp_large_image_dwc_cmodel