Browse Source

Coder

7.x-2.x
Daniel Lamb 10 years ago
parent
commit
1213389b8d
  1. 4
      islandora/include/rdf_mapping.inc
  2. 16
      islandora_collection/islandora_collection.module

4
islandora/include/rdf_mapping.inc

@ -13,7 +13,7 @@
* @param string $rdf_type
* The RDF type to associate with the bundle.
*
* return array
* @return array
* The default RDF mapping for Islandora content types.
*/
function islandora_get_default_rdf_mapping($bundle, $rdf_type) {
@ -25,7 +25,7 @@ function islandora_get_default_rdf_mapping($bundle, $rdf_type) {
'rdftype' => array($rdf_type),
'uuid' => array(
'predicates' => array('dc11:identifier'),
'datatype' => 'xsd:ID'
'datatype' => 'xsd:ID',
),
ISLANDORA_FEDORA_HAS_PARENT => array(
'predicates' => array('fedora:hasParent'),

16
islandora_collection/islandora_collection.module

@ -50,24 +50,12 @@ function islandora_collection_rdf_mapping() {
* Implements hook_insert().
*/
function islandora_collection_insert($node) {
/*
if (isset($_SERVER['HTTP_IGNORE_HOOKS']) && strcmp(strtolower($_SERVER['HTTP_IGNORE_HOOKS']), "true") == 0) {
dd("IGNORING SAVING THE COLLECTION");
}
dd("SAVING A COLLECTION");
dd($node);
*/
}
/**
* Implements hook_update().
*/
function islandora_collection_update($node) {
/*
if (isset($_SERVER['HTTP_IGNORE_HOOKS']) && strcmp(strtolower($_SERVER['HTTP_IGNORE_HOOKS']), "true") == 0) {
dd("IGNORING UPDATING THE COLLECTION");
}
dd("UPDATING A COLLECTION");
dd($node);
*/
}

Loading…
Cancel
Save