Browse Source

ISLANDORA-278 Initial pass at making the islandora code conform to the drupal coding standards.

pull/7/head^2
jonathangreen 14 years ago
parent
commit
abfc84457d
  1. 6
      CollectionClass.inc
  2. 235
      CollectionPolicy.inc
  3. 26
      ConnectionHelper.inc
  4. 740
      ContentModel.inc
  5. 362
      MimeClass.inc
  6. 70
      ObjectHelper.inc
  7. 270
      SearchClass.inc
  8. 28
      SecurityClass.inc
  9. 13
      XMLDatastream.inc
  10. 18
      api/dublin_core.inc
  11. 31
      api/fedora_collection.inc
  12. 20
      api/fedora_export.inc
  13. 21
      api/fedora_item.inc
  14. 36
      api/fedora_utils.inc
  15. 59
      api/rels-ext.inc
  16. 10
      api/tagging.inc
  17. 39
      collection_policies/COLLECTION-COLLECTION POLICY.xml
  18. 4
      collection_policies/FLV-COLLECTION POLICY.xml
  19. 38
      collection_policies/JPG-COLLECTION POLICY.xml
  20. 25
      collection_policies/PDF-COLLECTION POLICY.xml
  21. 3
      collection_policies/PERSONAL-COLLECTION-POLICY.xml
  22. 127
      collection_policies/book_collection_policy.xml
  23. 146
      collection_policies/large_image_collection_policy.xml
  24. 79
      collection_policies/qt_collection_policy.xml
  25. 77
      collection_policy.xsd
  26. 470
      collection_views/COLLECTION_VIEW.xml
  27. 119
      collection_views/Coverflow_Collection_View.xsl
  28. 129
      collection_views/Coverflow_PRE_Collection_View.xsl
  29. 427
      collection_views/FLV-COLLECTION VIEW(2).xml
  30. 407
      collection_views/REFWORKS-COLLECTION_VIEW.xml
  31. 431
      collection_views/SIMPLE-COLLECTION_VIEW.xml
  32. 118
      collection_views/SmileyStuff-COLLECTION_VIEW.xml
  33. 114
      collection_views/Video-COLLECTION_VIEW.xml
  34. 287
      collection_views/default-sparqltoHtml.xsl
  35. 6
      collection_views/demo_image_collection_dc_record.xml
  36. 36
      collection_views/simple_list_view.xml
  37. 128
      collection_views/standard_jpeg_collection_view.xml
  38. 20
      collection_views/yui_coverflow/css/test.css
  39. 1704
      collection_views/yui_coverflow/js/CoverFlow.js
  40. 105
      collection_views/yui_coverflow/js/test.js
  41. 14
      content_models/BASIC_AUDIO.xml
  42. 14
      content_models/BASIC_VIDEO.xml
  43. 173
      content_models/COLLECTIONCM.xml
  44. 323
      content_models/FAS_slideCModel.xml
  45. 26
      content_models/REFWORKSCM.xml
  46. 26
      content_models/REFWORKSCM_1.xml
  47. 184
      content_models/STANDARD JPG.xml
  48. 14
      content_models/STANDARD PDF.xml
  49. 14
      content_models/STANDARD_FLVCM.xml
  50. 18
      content_models/STANDARD_IMAGECM.xml
  51. 184
      content_models/STANDARD_JPG.xml
  52. 251
      content_models/STANDARD_QT.xml
  53. 205
      content_models/STRICT_PDFCM.xml
  54. 108
      content_models/demo_Collection.xml
  55. 348
      content_models/demo_CollectionImpl.xml
  56. 130
      content_models/demo_DualResImage.xml
  57. 124
      content_models/demo_DualResImageCollection.xml
  58. 286
      content_models/demo_DualResImageImpl.xml
  59. 108
      content_models/demo_DualResolution.xml
  60. 1282
      content_models/ilives_bookCModel.xml
  61. 124
      content_models/ilives_jp2Sdef.xml
  62. 322
      content_models/ilives_jp2Sdep-pageCModel.xml
  63. 122
      content_models/ilives_tei2htmlSdef.xml
  64. 435
      content_models/ilives_tei2htmlSdep-pageCModel.xml
  65. 122
      content_models/ilives_viewerSdef.xml
  66. 276
      content_models/ilives_viewerSdep-bookCModel.xml
  67. 1118
      content_models/islandora_collectionCModel.xml
  68. 3556
      content_models/islandora_herbCModel.xml
  69. 508
      content_models/islandora_jp2Sdep-slideCModel.xml
  70. 466
      content_models/islandora_largeimages.xml
  71. 672
      content_models/islandora_mapCModel.xml
  72. 172
      content_models/islandora_mods2htmlSdef.xml
  73. 848
      content_models/islandora_mods2htmlSdep.xml
  74. 301
      content_models/islandora_qtCModel.xml
  75. 2838
      content_models/islandora_slideCModel.xml
  76. 524
      content_models/islandora_viewerSdep-slideCModel.xml
  77. 434
      example_collection_views/MHL-sparqltoHtml.xsl
  78. 113
      example_collection_views/critter.xsl
  79. 427
      example_collection_views/flv-sparqltoHtml.xsl
  80. 417
      example_collection_views/mlp-sparqltoHtml.xsl
  81. 298
      example_collection_views/refworks.xsl
  82. 438
      example_collection_views/riri-sparqltoHtml.xsl
  83. 287
      example_collection_views/sparqltoHtml.xsl
  84. 5
      fedora_repository.install
  85. 131
      fedora_repository.module
  86. 10
      fedora_repository.solutionpacks.inc
  87. 27
      formClass.inc
  88. 8
      form_elements/css/copyright.css
  89. 56
      form_elements/css/filechooser.css
  90. 28
      form_elements/css/list.css
  91. 120
      form_elements/css/people.css
  92. 24
      form_elements/css/sticky.css
  93. 64
      form_elements/css/ui-lightness/jquery-ui-1.8.4.custom.css
  94. 300
      form_elements/includes/autocomplete.inc
  95. 119
      form_elements/includes/creative_commons.inc
  96. 148
      form_elements/includes/filechooser.inc
  97. 73
      form_elements/includes/people.inc
  98. 782
      form_elements/islandora_form_elements.module
  99. 122
      form_elements/js/copyright.js
  100. 122
      form_elements/js/filechooser.js
  101. Some files were not shown because too many files have changed in this diff Show More

6
CollectionClass.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
/* /*
* Created on 18-Feb-08 * Created on 18-Feb-08
@ -378,8 +378,8 @@ class CollectionClass {
'pidNamespace' => $pidNameSpace 'pidNamespace' => $pidNameSpace
); );
$object = $soapClient->__soapCall('getNextPID', array( $object = $soapClient->__soapCall('getNextPID', array(
$params $params
)); ));
} catch (exception $e) { } catch (exception $e) {
drupal_set_message(t('Error getting Next PID: !e', array('!e' => $e->getMessage())), 'error'); drupal_set_message(t('Error getting Next PID: !e', array('!e' => $e->getMessage())), 'error');
return FALSE; return FALSE;

235
CollectionPolicy.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
module_load_include('inc', 'fedora_repository', 'XMLDatastream'); module_load_include('inc', 'fedora_repository', 'XMLDatastream');
@ -8,8 +8,7 @@ class CollectionPolicy extends XMLDatastream {
static $SCHEMA_URI = 'http://syn.lib.umanitoba.ca/collection_policy.xsd'; static $SCHEMA_URI = 'http://syn.lib.umanitoba.ca/collection_policy.xsd';
static $DEFAULT_DSID = 'COLLECTION_POLICY'; static $DEFAULT_DSID = 'COLLECTION_POLICY';
private $staging_area = NULL;
private $staging_area=NULL;
/** /**
* Gets the default DSID to use for ContentModel datastreams. * Gets the default DSID to use for ContentModel datastreams.
@ -36,22 +35,21 @@ class CollectionPolicy extends XMLDatastream {
try { try {
if (self::validPid($pid)) { if (self::validPid($pid)) {
$dsid=CollectionPolicy::getDefaultDSID(); $dsid = CollectionPolicy::getDefaultDSID();
if ($preFetch) { if ($preFetch) {
$fedoraItem = new Fedora_Item($pid); $fedoraItem = new Fedora_Item($pid);
$ds = $fedoraItem->get_datastream_dissemination($dsid); $ds = $fedoraItem->get_datastream_dissemination($dsid);
} else {
$ds=null;
} }
else {
$ds = NULL;
}
} }
if (!empty($ds) || !$preFetch) { if (!empty($ds) || !$preFetch) {
$ret=new CollectionPolicy($ds, $pid, $dsid); $ret = new CollectionPolicy($ds, $pid, $dsid);
} }
} } catch (SOAPException $e) {
catch (SOAPException $e) {
$ret = FALSE; $ret = FALSE;
} }
@ -133,7 +131,7 @@ class CollectionPolicy extends XMLDatastream {
*/ */
public static function ingestBlankPolicy($pid, $name, $policyDsid, $model_pid, $model_namespace, $relationship, $searchField, $searchValue) { public static function ingestBlankPolicy($pid, $name, $policyDsid, $model_pid, $model_namespace, $relationship, $searchField, $searchValue) {
$ret = FALSE; $ret = FALSE;
if (($cp = self::loadFromCollection($pid )) === FALSE) { //removed second, non-existant variable if (($cp = self::loadFromCollection($pid)) === FALSE) { //removed second, non-existant variable
module_load_include('inc', 'fedora_repository', 'ContentModel'); module_load_include('inc', 'fedora_repository', 'ContentModel');
if (($cm = ContentModel::loadFromModel($model_pid)) !== FALSE && $cm->validate()) { if (($cm = ContentModel::loadFromModel($model_pid)) !== FALSE && $cm->validate()) {
$newDom = new DOMDocument('1.0', 'utf-8'); $newDom = new DOMDocument('1.0', 'utf-8');
@ -142,7 +140,7 @@ class CollectionPolicy extends XMLDatastream {
$rootEl->setAttribute('name', $name); $rootEl->setAttribute('name', $name);
$rootEl->setAttribute('xmlns', self::$XMLNS); $rootEl->setAttribute('xmlns', self::$XMLNS);
$rootEl->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $rootEl->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
$rootEl->setAttribute('xsi:schemaLocation', self::$XMLNS .' '. self::$SCHEMA_URI); $rootEl->setAttribute('xsi:schemaLocation', self::$XMLNS . ' ' . self::$SCHEMA_URI);
$modelsEl = $newDom->createElement('content_models'); $modelsEl = $newDom->createElement('content_models');
@ -175,13 +173,11 @@ class CollectionPolicy extends XMLDatastream {
$fedoraItem->add_datastream_from_string($cp->dumpXml(), $policyDsid, $name, 'text/xml', 'X'); $fedoraItem->add_datastream_from_string($cp->dumpXml(), $policyDsid, $name, 'text/xml', 'X');
$ret = $cp; $ret = $cp;
} }
} }
return $ret; return $ret;
} }
/** /**
* Constructor * Constructor
* NOTE: Use the static constructor methods whenever possible. * NOTE: Use the static constructor methods whenever possible.
@ -192,8 +188,8 @@ class CollectionPolicy extends XMLDatastream {
* @return XMLDatastream $cm * @return XMLDatastream $cm
*/ */
public function __construct($xmlStr, $pid = NULL, $dsid = NULL) { public function __construct($xmlStr, $pid = NULL, $dsid = NULL) {
parent::__construct($xmlStr,$pid,$dsid); parent::__construct($xmlStr, $pid, $dsid);
$this->name= 'Collection Policy'; $this->name = 'Collection Policy';
} }
/** /**
@ -215,7 +211,7 @@ class CollectionPolicy extends XMLDatastream {
$rootEl->setAttribute('name', $sXml['name']); $rootEl->setAttribute('name', $sXml['name']);
$rootEl->setAttribute('xmlns', self::$XMLNS); $rootEl->setAttribute('xmlns', self::$XMLNS);
$rootEl->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $rootEl->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
$rootEl->setAttribute('xsi:schemaLocation', self::$XMLNS .' '. self::$SCHEMA_URI); $rootEl->setAttribute('xsi:schemaLocation', self::$XMLNS . ' ' . self::$SCHEMA_URI);
$content_modelsEl = $newDom->createElement('content_models'); $content_modelsEl = $newDom->createElement('content_models');
foreach ($sXml->contentmodels->contentmodel as $contentmodel) { foreach ($sXml->contentmodels->contentmodel as $contentmodel) {
@ -233,7 +229,7 @@ class CollectionPolicy extends XMLDatastream {
$termEl = $newDom->createElement('term', $term->value); $termEl = $newDom->createElement('term', $term->value);
$termEl->setAttribute('field', $term->field); $termEl->setAttribute('field', $term->field);
if (strval($sXml->search_terms->default) == $term->field) { if (strval($sXml->search_terms->default) == $term->field) {
$termEl->setAttribute('default', 'true'); $termEl->setAttribute('default', 'true');
} }
$search_termsEl->appendChild($termEl); $search_termsEl->appendChild($termEl);
} }
@ -247,7 +243,6 @@ class CollectionPolicy extends XMLDatastream {
$this->xml = DOMDocument::loadXML($newDom->saveXml()); $this->xml = DOMDocument::loadXML($newDom->saveXml());
} }
/** /**
* Gets the name of the relationship to use * Gets the name of the relationship to use
* for members of this collection. * for members of this collection.
@ -256,14 +251,14 @@ class CollectionPolicy extends XMLDatastream {
* @return string $relationship * @return string $relationship
*/ */
public function getRelationship() { public function getRelationship() {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$ret=trim($this->xml->getElementsByTagName('relationship')->item(0)->nodeValue); $ret = trim($this->xml->getElementsByTagName('relationship')->item(0)->nodeValue);
} }
return $ret; return $ret;
} }
/** /**
* Sets the name of the relationship to use * Sets the name of the relationship to use
* for members of this collection. * for members of this collection.
* Returns FALSE on failure. * Returns FALSE on failure.
@ -272,16 +267,16 @@ class CollectionPolicy extends XMLDatastream {
* @return boolean $ret * @return boolean $ret
*/ */
public function setRelationship($relationship) { public function setRelationship($relationship) {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$relationshipEl=$this->xml->getElementsByTagName('relationship')->item(0); $relationshipEl = $this->xml->getElementsByTagName('relationship')->item(0);
$relationshipEl->nodeValue=trim($relationship); $relationshipEl->nodeValue = trim($relationship);
$ret = TRUE; $ret = TRUE;
} }
return $ret; return $ret;
} }
/** /**
* Gets the path to the staging area to use for this * Gets the path to the staging area to use for this
* collection. By default recurses to the parent collection * collection. By default recurses to the parent collection
* if the staging area is undefined * if the staging area is undefined
@ -290,17 +285,18 @@ class CollectionPolicy extends XMLDatastream {
* @return string $path * @return string $path
*/ */
public function getStagingArea($recurse=TRUE) { public function getStagingArea($recurse=TRUE) {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
if ($this->staging_area === NULL) { if ($this->staging_area === NULL) {
$stagingEl=$this->xml->getElementsByTagName('staging_area'); $stagingEl = $this->xml->getElementsByTagName('staging_area');
if ($stagingEl->length > 0) { if ($stagingEl->length > 0) {
$this->staging_area = trim($stagingEl->item(0)->nodeValue); $this->staging_area = trim($stagingEl->item(0)->nodeValue);
} elseif ($recurse) { }
elseif ($recurse) {
module_load_include('inc', 'fedora_repository', 'api/fedora_item'); module_load_include('inc', 'fedora_repository', 'api/fedora_item');
$item=new Fedora_Item($this->pid); $item = new Fedora_Item($this->pid);
$rels=$item->get_relationships(); $rels = $item->get_relationships();
if (count($rels) > 0) { if (count($rels) > 0) {
foreach ($rels as $rel) { foreach ($rels as $rel) {
$cp = CollectionPolicy::loadFromCollection($rel['object']); $cp = CollectionPolicy::loadFromCollection($rel['object']);
@ -314,12 +310,11 @@ class CollectionPolicy extends XMLDatastream {
} }
$ret = $this->staging_area; $ret = $this->staging_area;
} }
return $ret; return $ret;
} }
/** /**
* Sets the path to the staging area to use for this * Sets the path to the staging area to use for this
* collection. If specified path is blank (or false) it will * collection. If specified path is blank (or false) it will
* remove the staging are path element from the collection policy. * remove the staging are path element from the collection policy.
@ -329,22 +324,22 @@ class CollectionPolicy extends XMLDatastream {
* @return string $relationship * @return string $relationship
*/ */
public function setStagingArea($path) { public function setStagingArea($path) {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$rootEl=$this->xml->getElementsByTagName('collection_policy')->item(0); $rootEl = $this->xml->getElementsByTagName('collection_policy')->item(0);
$stagingEl=$this->xml->getElementsByTagName('staging_area'); $stagingEl = $this->xml->getElementsByTagName('staging_area');
if ($stagingEl->length > 0) { if ($stagingEl->length > 0) {
$stagingEl=$stagingEl->item(0); $stagingEl = $stagingEl->item(0);
if (trim($path) == '') { if (trim($path) == '') {
$rootEl->removeChild($stagingEl); $rootEl->removeChild($stagingEl);
} }
else { else {
$stagingEl->nodeValue=trim($path); $stagingEl->nodeValue = trim($path);
} }
} }
elseif (trim($path) != '') { elseif (trim($path) != '') {
$stagingEl=$this->xml->createElement('staging_area', trim($path)); $stagingEl = $this->xml->createElement('staging_area', trim($path));
$rootEl->appendChild($stagingEl); $rootEl->appendChild($stagingEl);
} }
$ret = TRUE; $ret = TRUE;
@ -352,21 +347,20 @@ class CollectionPolicy extends XMLDatastream {
return $ret; return $ret;
} }
/** /**
* Gets the next available PID for the * Gets the next available PID for the
* content model specified by the DSID * content model specified by the DSID
* parameter. * parameter.
* *
* @param string $dsid * @param string $dsid
* @return string $nextPid * @return string $nextPid
*/ */
public function getNextPid($dsid) { public function getNextPid($dsid) {
$ret = FALSE; $ret = FALSE;
if (self::validDsid($dsid) && $this->validate()) { if (self::validDsid($dsid) && $this->validate()) {
$content_models = $this->xml->getElementsByTagName('content_models')->item(0)->getElementsByTagName('content_model'); $content_models = $this->xml->getElementsByTagName('content_models')->item(0)->getElementsByTagName('content_model');
$namespace = FALSE; $namespace = FALSE;
for ($i=0; $namespace === FALSE && $i<$content_models->length;$i++) { for ($i = 0; $namespace === FALSE && $i < $content_models->length; $i++) {
if (strtolower($content_models->item($i)->getAttribute('dsid')) == strtolower($dsid)) { if (strtolower($content_models->item($i)->getAttribute('dsid')) == strtolower($dsid)) {
$namespace = $content_models->item($i)->getAttribute('namespace'); $namespace = $content_models->item($i)->getAttribute('namespace');
} }
@ -381,32 +375,29 @@ class CollectionPolicy extends XMLDatastream {
} }
/** /**
* Gets a list of ContentModel objects supported by this collection. * Gets a list of ContentModel objects supported by this collection.
* *
* @return ContentModel[] $models * @return ContentModel[] $models
*/ */
function getContentModels() { function getContentModels() {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
module_load_include('inc', 'Fedora_Repository', 'ContentModel'); module_load_include('inc', 'Fedora_Repository', 'ContentModel');
$ret=array(); $ret = array();
$content_models = $this->xml->getElementsByTagName('content_models')->item(0)->getElementsByTagName('content_model'); $content_models = $this->xml->getElementsByTagName('content_models')->item(0)->getElementsByTagName('content_model');
for ($i=0;$i<$content_models->length;$i++) { for ($i = 0; $i < $content_models->length; $i++) {
$cm=ContentModel::loadFromModel($content_models->item($i)->getAttribute('pid'), $cm = ContentModel::loadFromModel($content_models->item($i)->getAttribute('pid'),
$content_models->item($i)->getAttribute('dsid'), $content_models->item($i)->getAttribute('dsid'),
$content_models->item($i)->getAttribute('namespace'), $content_models->item($i)->getAttribute('namespace'),
$content_models->item($i)->getAttribute('name')); $content_models->item($i)->getAttribute('name'));
if ($cm !== FALSE) { if ($cm !== FALSE) {
$ret[]=$cm; $ret[] = $cm;
} }
} }
} }
return $ret; return $ret;
} }
/** /**
* Gets a list of search terms from the Collection Policy. If asArray is set * Gets a list of search terms from the Collection Policy. If asArray is set
* it will return an associative array with the value, field name, and the default value. * it will return an associative array with the value, field name, and the default value.
@ -422,51 +413,50 @@ class CollectionPolicy extends XMLDatastream {
function getSearchTerms($asArray = FALSE, $recurse = FALSE, $cache = FALSE) { function getSearchTerms($asArray = FALSE, $recurse = FALSE, $cache = FALSE) {
$ret = FALSE; $ret = FALSE;
if ($cache == TRUE && ($cache = cache_get('collection_policy_search_terms-'.$this->pid)) !== 0 ) { if ($cache == TRUE && ($cache = cache_get('collection_policy_search_terms-' . $this->pid)) !== 0) {
$ret=$cache->data; $ret = $cache->data;
} else { }
else {
if ($this->xml == NULL) { if ($this->xml == NULL) {
$fedoraItem = new Fedora_Item($this->pid); $fedoraItem = new Fedora_Item($this->pid);
$ds = $fedoraItem->get_datastream_dissemination($this->dsid); $ds = $fedoraItem->get_datastream_dissemination($this->dsid);
$this->xml = DOMDocument::loadXML($ds); $this->xml = DOMDocument::loadXML($ds);
} }
if ($this->validate()) { if ($this->validate()) {
$ret=array(); $ret = array();
$terms= $this->xml->getElementsByTagName('search_terms')->item(0)->getElementsByTagName('term'); $terms = $this->xml->getElementsByTagName('search_terms')->item(0)->getElementsByTagName('term');
for ($i=0;$i<$terms->length;$i++) { for ($i = 0; $i < $terms->length; $i++) {
$default = $terms->item($i)->attributes->getNamedItem('default'); $default = $terms->item($i)->attributes->getNamedItem('default');
$default = ($default !== NULL) ? (strtolower($default->nodeValue) == 'true') : FALSE; $default = ($default !== NULL) ? (strtolower($default->nodeValue) == 'true') : FALSE;
$ret[] = ($asArray)?array( 'value' => $terms->item($i)->nodeValue, $ret[] = ($asArray) ? array('value' => $terms->item($i)->nodeValue,
'field' => $terms->item($i)->getAttribute('field'), 'field' => $terms->item($i)->getAttribute('field'),
'default' => $default): $terms->item($i)->nodeValue; 'default' => $default) : $terms->item($i)->nodeValue;
} }
if ($recurse && count($ret) == 0) {
module_load_include('inc', 'fedora_repository', 'api/fedora_item');
$item=new Fedora_Item($this->pid);
$rels=$item->get_relationships();
if (count($rels) > 0) {
foreach ($rels as $rel) {
$cp = CollectionPolicy::loadFromCollection($rel['object']);
if ($cp !== FALSE) {
$ret = $cp->getSearchTerms($asArray, $recurse);
break;
}
}
}
}
cache_set('collection_policy_search_terms-'.$this->pid, $ret, 'cache', time()+3600);
if ($recurse && count($ret) == 0) {
module_load_include('inc', 'fedora_repository', 'api/fedora_item');
$item = new Fedora_Item($this->pid);
$rels = $item->get_relationships();
if (count($rels) > 0) {
foreach ($rels as $rel) {
$cp = CollectionPolicy::loadFromCollection($rel['object']);
if ($cp !== FALSE) {
$ret = $cp->getSearchTerms($asArray, $recurse);
break;
}
}
}
}
cache_set('collection_policy_search_terms-' . $this->pid, $ret, 'cache', time() + 3600);
} }
} }
return $ret; return $ret;
} }
/** /**
* Adds a search term to the collection policy. * Adds a search term to the collection policy.
* Returns fase on failure. * Returns fase on failure.
@ -476,12 +466,12 @@ class CollectionPolicy extends XMLDatastream {
* @return boolean $success * @return boolean $success
*/ */
function addTerm($field, $value) { function addTerm($field, $value) {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$search_termsEl = $this->xml->getElementsByTagName('search_terms')->item(0); $search_termsEl = $this->xml->getElementsByTagName('search_terms')->item(0);
$terms= $search_termsEl->getElementsByTagName('term'); $terms = $search_termsEl->getElementsByTagName('term');
$found=FALSE; $found = FALSE;
for ($i=0;!$found && $i<$terms->length;$i++) { for ($i = 0; !$found && $i < $terms->length; $i++) {
if ($terms->item($i)->getAttribute('field') == $field) { if ($terms->item($i)->getAttribute('field') == $field) {
$found = TRUE; $found = TRUE;
} }
@ -504,12 +494,12 @@ class CollectionPolicy extends XMLDatastream {
* @return boolean $success * @return boolean $success
*/ */
function removeTerm($field) { function removeTerm($field) {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$search_termsEl = $this->xml->getElementsByTagName('search_terms')->item(0); $search_termsEl = $this->xml->getElementsByTagName('search_terms')->item(0);
$terms = $search_termsEl->getElementsByTagName('term'); $terms = $search_termsEl->getElementsByTagName('term');
$found = FALSE; $found = FALSE;
for ($i=0; !$found && $i < $terms->length; $i++) { for ($i = 0; !$found && $i < $terms->length; $i++) {
if ($terms->item($i)->getAttribute('field') == $field) { if ($terms->item($i)->getAttribute('field') == $field) {
$found = $terms->item($i); $found = $terms->item($i);
} }
@ -523,21 +513,20 @@ class CollectionPolicy extends XMLDatastream {
return $ret; return $ret;
} }
function setDefaultTerm($field) {
function setDefaultTerm($field) {
$ret = FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$search_termsEl = $this->xml->getElementsByTagName('search_terms')->item(0); $search_termsEl = $this->xml->getElementsByTagName('search_terms')->item(0);
$terms= $search_termsEl->getElementsByTagName('term'); $terms = $search_termsEl->getElementsByTagName('term');
$found=FALSE; $found = FALSE;
for ($i=0;!$found && $i<$terms->length;$i++) { for ($i = 0; !$found && $i < $terms->length; $i++) {
if ($terms->item($i)->getAttribute('field') == $field) { if ($terms->item($i)->getAttribute('field') == $field) {
$found = $terms->item($i); $found = $terms->item($i);
} }
} }
if ($found !== FALSE) { if ($found !== FALSE) {
for ($i=0;$i<$terms->length;$i++) for ($i = 0; $i < $terms->length; $i++)
if ($terms->item($i)->attributes->getNamedItem('default') !== NULL) { if ($terms->item($i)->attributes->getNamedItem('default') !== NULL) {
$terms->item($i)->removeAttribute('default'); $terms->item($i)->removeAttribute('default');
} }
@ -548,7 +537,6 @@ class CollectionPolicy extends XMLDatastream {
return $ret; return $ret;
} }
/** /**
* Removes the specified content model from the collection policy. This will only * Removes the specified content model from the collection policy. This will only
* prevent future ingests of the removed model to the collection. $cm should be * prevent future ingests of the removed model to the collection. $cm should be
@ -559,14 +547,14 @@ class CollectionPolicy extends XMLDatastream {
* @return boolean $valid * @return boolean $valid
*/ */
function removeModel($cm) { function removeModel($cm) {
$ret=FALSE; $ret = FALSE;
if ($this->validate() && $cm->validate()) { if ($this->validate() && $cm->validate()) {
$contentmodelsEl = $this->xml->getElementsByTagName('content_models'); $contentmodelsEl = $this->xml->getElementsByTagName('content_models');
$models = $contentmodelsEl->item(0)->getElementsByTagName('content_model'); $models = $contentmodelsEl->item(0)->getElementsByTagName('content_model');
$found = FALSE; $found = FALSE;
for ($i=0; $found === FALSE && $i < $models->length; $i++) { for ($i = 0; $found === FALSE && $i < $models->length; $i++) {
if ($models->item($i)->getAttribute('pid') == $cm->pid) { if ($models->item($i)->getAttribute('pid') == $cm->pid) {
$found=$models->item($i); $found = $models->item($i);
} }
} }
@ -578,16 +566,13 @@ class CollectionPolicy extends XMLDatastream {
return $ret; return $ret;
} }
function addModel($cm, $namespace) { function addModel($cm, $namespace) {
$ret = FALSE; $ret = FALSE;
if (self::validPid($namespace) && $this->validate() && $cm->validate()) { if (self::validPid($namespace) && $this->validate() && $cm->validate()) {
$contentmodelsEl = $this->xml->getElementsByTagName('content_models'); $contentmodelsEl = $this->xml->getElementsByTagName('content_models');
$models = $contentmodelsEl->item(0)->getElementsByTagName('content_model'); $models = $contentmodelsEl->item(0)->getElementsByTagName('content_model');
$found = FALSE; $found = FALSE;
for ($i=0;!$found && $i<$models->length;$i++) { for ($i = 0; !$found && $i < $models->length; $i++) {
if ($models->item($i)->getAttribute('pid') == $cm->pid) if ($models->item($i)->getAttribute('pid') == $cm->pid)
$found = TRUE; $found = TRUE;
} }
@ -607,9 +592,9 @@ class CollectionPolicy extends XMLDatastream {
} }
function getName() { function getName() {
$ret=FALSE; $ret = FALSE;
if ($this->validate()) { if ($this->validate()) {
$ret=$this->xml->getElementsByTagName('collection_policy')->item(0)->getAttribute('name'); $ret = $this->xml->getElementsByTagName('collection_policy')->item(0)->getAttribute('name');
} }
return $ret; return $ret;
} }

26
ConnectionHelper.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/* /*
* Created on Jan 24, 2008 * Created on Jan 24, 2008
@ -9,23 +10,25 @@
*/ */
module_load_include('inc', 'ConnectionHelper', ''); module_load_include('inc', 'ConnectionHelper', '');
class ConnectionHelper { class ConnectionHelper {
function ConnectionHelper() { function ConnectionHelper() {
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
} }
function _fixURL($url, $_name, $_pass) { function _fixURL($url, $_name, $_pass) {
if (empty($url)) { if (empty($url)) {
$url=variable_get('fedora_soap_url', 'http://localhost:8080/fedora/services/access?wsdl'); $url = variable_get('fedora_soap_url', 'http://localhost:8080/fedora/services/access?wsdl');
} }
$creds = urlencode($_name) . ':'. urlencode($_pass); $creds = urlencode($_name) . ':' . urlencode($_pass);
if (strpos($url, 'http://') === 0) { if (strpos($url, 'http://') === 0) {
$new_url = 'http://'. $creds . '@'. substr($url, 7); $new_url = 'http://' . $creds . '@' . substr($url, 7);
} }
elseif (strpos($url, 'https://') === 0) { elseif (strpos($url, 'https://') === 0) {
$new_url = 'https://'. $creds . '@'. substr($url, 8); $new_url = 'https://' . $creds . '@' . substr($url, 8);
} }
else { else {
drupal_set_message(t('Invalid URL: !url', array('!url' => $url))); drupal_set_message(t('Invalid URL: !url', array('!url' => $url)));
@ -37,7 +40,7 @@ class ConnectionHelper {
function getSoapClient($url = NULL, $exceptions = TRUE) { function getSoapClient($url = NULL, $exceptions = TRUE) {
if (empty($url)) { if (empty($url)) {
$url=variable_get('fedora_soap_url', 'http://localhost:8080/fedora/services/access?wsdl'); $url = variable_get('fedora_soap_url', 'http://localhost:8080/fedora/services/access?wsdl');
} }
global $user; global $user;
@ -49,9 +52,8 @@ class ConnectionHelper {
'login' => 'anonymous', 'login' => 'anonymous',
'password' => 'anonymous', 'password' => 'anonymous',
'exceptions' => $exceptions, 'exceptions' => $exceptions,
)); ));
} } catch (SoapFault $e) {
catch (SoapFault $e) {
drupal_set_message(t("!e", array('!e' => $e->getMessage()))); drupal_set_message(t("!e", array('!e' => $e->getMessage())));
return NULL; return NULL;
} }
@ -62,14 +64,14 @@ class ConnectionHelper {
'login' => $user->name, 'login' => $user->name,
'password' => $user->pass, 'password' => $user->pass,
'exceptions' => TRUE, 'exceptions' => TRUE,
)); ));
} } catch (SoapFault $e) {
catch (SoapFault $e) {
drupal_set_message(t("!e", array('!e' => $e->getMessage()))); drupal_set_message(t("!e", array('!e' => $e->getMessage())));
return NULL; return NULL;
} }
} }
return $client; return $client;
} }
} }

740
ContentModel.inc

File diff suppressed because it is too large Load Diff

362
MimeClass.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/** /**
* *
@ -20,177 +21,176 @@
* http://api.drupal.org/api/function/file_default_mimetype_mapping/7 * http://api.drupal.org/api/function/file_default_mimetype_mapping/7
* *
*/ */
class MimeClass { class MimeClass {
private $private_mime_types = array( private $private_mime_types = array(
/** /**
* This is a shortlist of mimetypes which should catch most * This is a shortlist of mimetypes which should catch most
* mimetype<-->extension lookups in the context of Islandora collections. * mimetype<-->extension lookups in the context of Islandora collections.
* *
* It has been cut from a much longer list. * It has been cut from a much longer list.
* *
* Two types of mimetypes should be put in this list: * Two types of mimetypes should be put in this list:
* 1) Special emerging formats which may not yet be expressed in the system * 1) Special emerging formats which may not yet be expressed in the system
* mime.types file. * mime.types file.
* 2) Heavily used mimetypes of particular importance to the Islandora * 2) Heavily used mimetypes of particular importance to the Islandora
* project, as lookups against this list will be quicker and less * project, as lookups against this list will be quicker and less
* resource intensive than other methods. * resource intensive than other methods.
* *
* Lookups are first checked against this short list. If no results are found, * Lookups are first checked against this short list. If no results are found,
* then the lookup function may move on to check other sources, namely the * then the lookup function may move on to check other sources, namely the
* system's mime.types file. * system's mime.types file.
* *
* In most cases though, this short list should suffice. * In most cases though, this short list should suffice.
* *
* If modifying this list, please note that for promiscuous mimetypes * If modifying this list, please note that for promiscuous mimetypes
* (those which map to multiple extensions, such as text/plain) * (those which map to multiple extensions, such as text/plain)
* The function get_extension will always return the *LAST* extension in this list, * The function get_extension will always return the *LAST* extension in this list,
* so you should put your preferred extension *LAST*. * so you should put your preferred extension *LAST*.
* *
* e.g... * e.g...
* "jpeg" => "image/jpeg", * "jpeg" => "image/jpeg",
* "jpe" => "image/jpeg", * "jpe" => "image/jpeg",
* "jpg" => "image/jpeg", * "jpg" => "image/jpeg",
* *
* $this->get_extension('image/jpeg') will always return 'jpg'. * $this->get_extension('image/jpeg') will always return 'jpg'.
* *
*/ */
// openoffice: // openoffice:
'odb' => 'application/vnd.oasis.opendocument.database', 'odb' => 'application/vnd.oasis.opendocument.database',
'odc' => 'application/vnd.oasis.opendocument.chart', 'odc' => 'application/vnd.oasis.opendocument.chart',
'odf' => 'application/vnd.oasis.opendocument.formula', 'odf' => 'application/vnd.oasis.opendocument.formula',
'odg' => 'application/vnd.oasis.opendocument.graphics', 'odg' => 'application/vnd.oasis.opendocument.graphics',
'odi' => 'application/vnd.oasis.opendocument.image', 'odi' => 'application/vnd.oasis.opendocument.image',
'odm' => 'application/vnd.oasis.opendocument.text-master', 'odm' => 'application/vnd.oasis.opendocument.text-master',
'odp' => 'application/vnd.oasis.opendocument.presentation', 'odp' => 'application/vnd.oasis.opendocument.presentation',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
'odt' => 'application/vnd.oasis.opendocument.text', 'odt' => 'application/vnd.oasis.opendocument.text',
'otg' => 'application/vnd.oasis.opendocument.graphics-template', 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
'oth' => 'application/vnd.oasis.opendocument.text-web', 'oth' => 'application/vnd.oasis.opendocument.text-web',
'otp' => 'application/vnd.oasis.opendocument.presentation-template', 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
'ott' => 'application/vnd.oasis.opendocument.text-template', 'ott' => 'application/vnd.oasis.opendocument.text-template',
// staroffice: // staroffice:
'stc' => 'application/vnd.sun.xml.calc.template', 'stc' => 'application/vnd.sun.xml.calc.template',
'std' => 'application/vnd.sun.xml.draw.template', 'std' => 'application/vnd.sun.xml.draw.template',
'sti' => 'application/vnd.sun.xml.impress.template', 'sti' => 'application/vnd.sun.xml.impress.template',
'stw' => 'application/vnd.sun.xml.writer.template', 'stw' => 'application/vnd.sun.xml.writer.template',
'sxc' => 'application/vnd.sun.xml.calc', 'sxc' => 'application/vnd.sun.xml.calc',
'sxd' => 'application/vnd.sun.xml.draw', 'sxd' => 'application/vnd.sun.xml.draw',
'sxg' => 'application/vnd.sun.xml.writer.global', 'sxg' => 'application/vnd.sun.xml.writer.global',
'sxi' => 'application/vnd.sun.xml.impress', 'sxi' => 'application/vnd.sun.xml.impress',
'sxm' => 'application/vnd.sun.xml.math', 'sxm' => 'application/vnd.sun.xml.math',
'sxw' => 'application/vnd.sun.xml.writer', 'sxw' => 'application/vnd.sun.xml.writer',
// k-office: // k-office:
'kil' => 'application/x-killustrator', 'kil' => 'application/x-killustrator',
'kpt' => 'application/x-kpresenter', 'kpt' => 'application/x-kpresenter',
'kpr' => 'application/x-kpresenter', 'kpr' => 'application/x-kpresenter',
'ksp' => 'application/x-kspread', 'ksp' => 'application/x-kspread',
'kwt' => 'application/x-kword', 'kwt' => 'application/x-kword',
'kwd' => 'application/x-kword', 'kwd' => 'application/x-kword',
// ms office 97: // ms office 97:
'doc' => 'application/msword', 'doc' => 'application/msword',
'xls' => 'application/vnd.ms-excel', 'xls' => 'application/vnd.ms-excel',
'ppt' => 'application/vnd.ms-powerpoint', 'ppt' => 'application/vnd.ms-powerpoint',
// office2007: // office2007:
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'docm' => 'application/vnd.ms-word.document.macroEnabled.12', 'docm' => 'application/vnd.ms-word.document.macroEnabled.12',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12', 'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12',
'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12',
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
'potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12', 'potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12',
'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12', 'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
'sldm' => 'application/vnd.ms-powerpoint.slide.macroEnabled.12', 'sldm' => 'application/vnd.ms-powerpoint.slide.macroEnabled.12',
// wordperfect (who cares?): // wordperfect (who cares?):
'wpd' => 'application/wordperfect', 'wpd' => 'application/wordperfect',
// common and generic containers: // common and generic containers:
'pdf' => 'application/pdf', 'pdf' => 'application/pdf',
'eps' => 'application/postscript', 'eps' => 'application/postscript',
'ps' => 'application/postscript', 'ps' => 'application/postscript',
'rtf' => 'text/rtf', 'rtf' => 'text/rtf',
'rtx' => 'text/richtext', 'rtx' => 'text/richtext',
'latex' => 'application/x-latex', 'latex' => 'application/x-latex',
'tex' => 'application/x-tex', 'tex' => 'application/x-tex',
'texi' => 'application/x-texinfo', 'texi' => 'application/x-texinfo',
'texinfo' => 'application/x-texinfo', 'texinfo' => 'application/x-texinfo',
// *ml: // *ml:
'css' => 'text/css', 'css' => 'text/css',
'htm' => 'text/html', 'htm' => 'text/html',
'html' => 'text/html', 'html' => 'text/html',
'wbxml' => 'application/vnd.wap.wbxml', 'wbxml' => 'application/vnd.wap.wbxml',
'xht' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml',
'xhtml' => 'application/xhtml+xml', 'xhtml' => 'application/xhtml+xml',
'xsl' => 'text/xml', 'xsl' => 'text/xml',
'xml' => 'text/xml', 'xml' => 'text/xml',
'csv' => 'text/csv', 'csv' => 'text/csv',
'tsv' => 'text/tab-separated-values', 'tsv' => 'text/tab-separated-values',
'txt' => 'text/plain', 'txt' => 'text/plain',
// images: // images:
"bmp" => "image/bmp", "bmp" => "image/bmp",
"gif" => "image/gif", "gif" => "image/gif",
"ief" => "image/ief", "ief" => "image/ief",
"jpeg" => "image/jpeg", "jpeg" => "image/jpeg",
"jpe" => "image/jpeg", "jpe" => "image/jpeg",
"jpg" => "image/jpeg", "jpg" => "image/jpeg",
"jp2" => "image/jp2", "jp2" => "image/jp2",
"png" => "image/png", "png" => "image/png",
"tiff" => "image/tiff", "tiff" => "image/tiff",
"tif" => "image/tif", "tif" => "image/tif",
"djvu" => "image/vnd.djvu", "djvu" => "image/vnd.djvu",
"djv" => "image/vnd.djvu", "djv" => "image/vnd.djvu",
"wbmp" => "image/vnd.wap.wbmp", "wbmp" => "image/vnd.wap.wbmp",
"ras" => "image/x-cmu-raster", "ras" => "image/x-cmu-raster",
"pnm" => "image/x-portable-anymap", "pnm" => "image/x-portable-anymap",
"pbm" => "image/x-portable-bitmap", "pbm" => "image/x-portable-bitmap",
"pgm" => "image/x-portable-graymap", "pgm" => "image/x-portable-graymap",
"ppm" => "image/x-portable-pixmap", "ppm" => "image/x-portable-pixmap",
"rgb" => "image/x-rgb", "rgb" => "image/x-rgb",
"xbm" => "image/x-xbitmap", "xbm" => "image/x-xbitmap",
"xpm" => "image/x-xpixmap", "xpm" => "image/x-xpixmap",
"xwd" => "image/x-windowdump", "xwd" => "image/x-windowdump",
// videos: // videos:
"mpeg" => "video/mpeg", "mpeg" => "video/mpeg",
"mpe" => "video/mpeg", "mpe" => "video/mpeg",
"mpg" => "video/mpeg", "mpg" => "video/mpeg",
"m4v" => "video/mp4", "m4v" => "video/mp4",
"mp4" => "video/mp4", "mp4" => "video/mp4",
"ogv" => "video/ogg", "ogv" => "video/ogg",
"qt" => "video/quicktime", "qt" => "video/quicktime",
"mov" => "video/quicktime", "mov" => "video/quicktime",
"mxu" => "video/vnd.mpegurl", "mxu" => "video/vnd.mpegurl",
"avi" => "video/x-msvideo", "avi" => "video/x-msvideo",
"movie" => "video/x-sgi-movie", "movie" => "video/x-sgi-movie",
"flv" => "video/x-flv", "flv" => "video/x-flv",
"swf" => "application/x-shockwave-flash", "swf" => "application/x-shockwave-flash",
// audio: // audio:
"mp3" => "audio/mpeg", "mp3" => "audio/mpeg",
"mp4a" => "audio/mp4", "mp4a" => "audio/mp4",
"m4a" => "audio/mp4", "m4a" => "audio/mp4",
"oga" => "audio/ogg", "oga" => "audio/ogg",
"ogg" => "audio/ogg", "ogg" => "audio/ogg",
"flac" => "audio/x-flac", "flac" => "audio/x-flac",
"wav" => "audio/vnd.wave", "wav" => "audio/vnd.wave",
// compressed formats: (note: http://svn.cleancode.org/svn/email/trunk/mime.types) // compressed formats: (note: http://svn.cleancode.org/svn/email/trunk/mime.types)
"tgz" => "application/x-gzip", "tgz" => "application/x-gzip",
"gz" => "application/x-gzip", "gz" => "application/x-gzip",
"tar" => "application/x-tar", "tar" => "application/x-tar",
"gtar" => "application/x-gtar", "gtar" => "application/x-gtar",
"zip" => "application/x-zip", "zip" => "application/x-zip",
// others: // others:
'bin' => 'application/octet-stream', 'bin' => 'application/octet-stream',
); );
private $private_file_extensions; private $private_file_extensions;
private $system_types; private $system_types;
private $system_exts; private $system_exts;
@ -199,13 +199,12 @@ class MimeClass {
public function __construct() { public function __construct() {
// populate the reverse shortlist: // populate the reverse shortlist:
$this->private_file_extensions = array_flip( $this->private_mime_types ); $this->private_file_extensions = array_flip($this->private_mime_types);
// pick up a local mime.types file if it is available // pick up a local mime.types file if it is available
if (is_readable('mime.types') ) { if (is_readable('mime.types')) {
$this->etc_mime_types = 'mime.types'; $this->etc_mime_types = 'mime.types';
} }
} }
/** /**
@ -213,27 +212,27 @@ class MimeClass {
* description: An alias to get_mimetype, * description: An alias to get_mimetype,
* for backwards-compatibility with our old mimetype class. * for backwards-compatibility with our old mimetype class.
*/ */
public function getType( $filename ) { public function getType($filename) {
return $this->get_mimetype( $filename ); return $this->get_mimetype($filename);
} }
/** /**
* function: get_mimetype * function: get_mimetype
* description: returns a mimetype associated with the file extension of $filename * description: returns a mimetype associated with the file extension of $filename
*/ */
public function get_mimetype( $filename, $debug = FALSE ) { public function get_mimetype($filename, $debug = FALSE) {
$file_name_and_extension = explode( '.', $filename ); $file_name_and_extension = explode('.', $filename);
$ext = strtolower( array_pop( $file_name_and_extension ) ); $ext = strtolower(array_pop($file_name_and_extension));
if ( ! empty( $this->private_mime_types[$ext] ) ) { if (!empty($this->private_mime_types[$ext])) {
if ( TRUE === $debug ) if (TRUE === $debug)
return array( 'mime_type' => $this->private_mime_types[$ext], 'method' => 'from_array' ); return array('mime_type' => $this->private_mime_types[$ext], 'method' => 'from_array');
return $this->private_mime_types[$ext]; return $this->private_mime_types[$ext];
} }
if (function_exists('file_get_mimetype')) { if (function_exists('file_get_mimetype')) {
$drupal_mimetype = file_get_mimetype( $filename ); $drupal_mimetype = file_get_mimetype($filename);
if ('application/octet-stream' != $drupal_mimetype) { if ('application/octet-stream' != $drupal_mimetype) {
if (TRUE == $debug) if (TRUE == $debug)
return array('mime_type' => $drupal_mimetype, 'method' => 'file_get_mimetype'); return array('mime_type' => $drupal_mimetype, 'method' => 'file_get_mimetype');
@ -241,42 +240,41 @@ class MimeClass {
} }
} }
if (!isset( $this->system_types)) if (!isset($this->system_types))
$this->system_types = $this->system_extension_mime_types(); $this->system_types = $this->system_extension_mime_types();
if (isset( $this->system_types[$ext])) { if (isset($this->system_types[$ext])) {
if (TRUE == $debug) if (TRUE == $debug)
return array('mime_type' => $this->system_types[$ext], 'method' => 'mime.types'); return array('mime_type' => $this->system_types[$ext], 'method' => 'mime.types');
return $this->system_types[$ext]; return $this->system_types[$ext];
} }
if ( TRUE === $debug ) if (TRUE === $debug)
return array( 'mime_type' => 'application/octet-stream', 'method' => 'last_resort' ); return array('mime_type' => 'application/octet-stream', 'method' => 'last_resort');
return 'application/octet-stream'; return 'application/octet-stream';
} }
/** /**
* function: get_extension * function: get_extension
* description: returns *one* valid file extension for a given $mime_type * description: returns *one* valid file extension for a given $mime_type
*/ */
public function get_extension( $mime_type, $debug = FALSE ) { public function get_extension($mime_type, $debug = FALSE) {
if (!empty( $this->private_file_extensions[$mime_type])) { if (!empty($this->private_file_extensions[$mime_type])) {
if (TRUE == $debug) if (TRUE == $debug)
return array( 'extension' => $this->private_file_extensions[$mime_type], 'method' => 'from_array' ); return array('extension' => $this->private_file_extensions[$mime_type], 'method' => 'from_array');
return $this->private_file_extensions[$mime_type]; return $this->private_file_extensions[$mime_type];
} }
if (!isset ( $this->system_exts)) if (!isset($this->system_exts))
$this->system_exts = $this->system_mime_type_extensions(); $this->system_exts = $this->system_mime_type_extensions();
if (isset( $this->system_exts[$mime_type])) { if (isset($this->system_exts[$mime_type])) {
if (TRUE == $debug) if (TRUE == $debug)
return array( 'extension' => $this->system_exts[$mime_type], 'method' => 'mime.types' ); return array('extension' => $this->system_exts[$mime_type], 'method' => 'mime.types');
return $this->system_exts[$mime_type]; return $this->system_exts[$mime_type];
} }
if (TRUE == $debug) if (TRUE == $debug)
return array( 'extension' => 'bin', 'method' => 'last_resort' ); return array('extension' => 'bin', 'method' => 'last_resort');
return 'bin'; return 'bin';
} }
@ -297,11 +295,11 @@ class MimeClass {
$parts = preg_split('/\s+/', $line); $parts = preg_split('/\s+/', $line);
if (count($parts) == 1) if (count($parts) == 1)
continue; continue;
// A single part means a mimetype without extensions, which we ignore. // A single part means a mimetype without extensions, which we ignore.
$type = array_shift($parts); $type = array_shift($parts);
if (!isset($out[$type])) if (!isset($out[$type]))
$out[$type] = array_shift($parts); $out[$type] = array_shift($parts);
// We take the first ext from the line if many are present. // We take the first ext from the line if many are present.
} }
fclose($file); fclose($file);
return $out; return $out;
@ -324,7 +322,7 @@ class MimeClass {
$parts = preg_split('/\s+/', $line); $parts = preg_split('/\s+/', $line);
if (count($parts) == 1) if (count($parts) == 1)
continue; continue;
// A single part means a mimetype without extensions, which we ignore. // A single part means a mimetype without extensions, which we ignore.
$type = array_shift($parts); $type = array_shift($parts);
foreach ($parts as $part) foreach ($parts as $part)
$out[$part] = $type; $out[$part] = $type;

70
ObjectHelper.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
/* /*
* Created on Feb 1, 2008 * Created on Feb 1, 2008
@ -85,7 +85,8 @@ class ObjectHelper {
if ($label == NULL) { if ($label == NULL) {
$label = $item->datastreams[$dsID]['label']; $label = $item->datastreams[$dsID]['label'];
} }
} else { }
else {
drupal_not_found(); drupal_not_found();
exit(); exit();
} }
@ -95,7 +96,8 @@ class ObjectHelper {
$fedoraUser = 'anonymous'; $fedoraUser = 'anonymous';
$fedoraPass = 'anonymous'; $fedoraPass = 'anonymous';
$contentSize = 0; $contentSize = 0;
} else { }
else {
$fedoraUser = $user->name; $fedoraUser = $user->name;
$fedoraPass = $user->pass; $fedoraPass = $user->pass;
$dataStreamInfo = $item->get_datastream_info($dsID); $dataStreamInfo = $item->get_datastream_info($dsID);
@ -135,7 +137,8 @@ class ObjectHelper {
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch); curl_exec($ch);
fclose($fp); fclose($fp);
} else { }
else {
header("Content-type: $mimeType"); header("Content-type: $mimeType");
if ($contentSize > 0) { if ($contentSize > 0) {
@ -168,12 +171,14 @@ class ObjectHelper {
if ((isset($user) && $user->uid != 0) || $forceSoap || isset($_SERVER['HTTPS'])) { if ((isset($user) && $user->uid != 0) || $forceSoap || isset($_SERVER['HTTPS'])) {
curl_exec($ch); curl_exec($ch);
} else { }
else {
header('Location: ' . $url); header('Location: ' . $url);
} }
} }
curl_close($ch); curl_close($ch);
} else { }
else {
drupal_set_message(t('No curl support.'), 'error'); drupal_set_message(t('No curl support.'), 'error');
} }
} }
@ -264,10 +269,11 @@ class ObjectHelper {
} }
if ($allow) { if ($allow) {
$purgeImage = '<a title="purge datastream ' . $dataStreamValue->label . '" href="' . $base_url . '/fedora/repository/purgeStream/' . $purgeImage = '<a title="purge datastream ' . $dataStreamValue->label . '" href="' . $base_url . '/fedora/repository/purgeStream/' .
$pid . '/' . $dataStreamValue->ID . '/' . $dataStreamValue->label . '"><img src="' . $base_url . '/' . $path . $pid . '/' . $dataStreamValue->ID . '/' . $dataStreamValue->label . '"><img src="' . $base_url . '/' . $path .
'/images/purge.gif" alt="purge datastream" /></a>'; '/images/purge.gif" alt="purge datastream" /></a>';
} }
} else { }
else {
$purgeImage = '&nbsp;'; $purgeImage = '&nbsp;';
} }
$fullPath = base_path() . $path; $fullPath = base_path() . $path;
@ -292,7 +298,7 @@ class ObjectHelper {
$mimeType = $dataStreamValue->MIMEType; $mimeType = $dataStreamValue->MIMEType;
$view = '<a href="' . $base_url . '/fedora/repository/' . drupal_urlencode($pid) . '/' . $id . '/' . drupal_urlencode($label) . $view = '<a href="' . $base_url . '/fedora/repository/' . drupal_urlencode($pid) . '/' . $id . '/' . drupal_urlencode($label) .
'" target="_blank" >' . t('View') . '</a>'; '" target="_blank" >' . t('View') . '</a>';
$action = "$base_url/fedora/repository/object_download/" . drupal_urlencode($pid) . '/' . $id . '/' . drupal_urlencode(preg_replace('/\//i', '${1}_', $label)); // Necessary to handle the case of Datastream labels that contain slashes. Ugh. $action = "$base_url/fedora/repository/object_download/" . drupal_urlencode($pid) . '/' . $id . '/' . drupal_urlencode(preg_replace('/\//i', '${1}_', $label)); // Necessary to handle the case of Datastream labels that contain slashes. Ugh.
$downloadVersion = '<form method="GET" action="' . $action . '"><input type="submit" value="' . t('Download') . '"></form>'; $downloadVersion = '<form method="GET" action="' . $action . '"><input type="submit" value="' . t('Download') . '"></form>';
if (user_access(ObjectHelper :: $EDIT_FEDORA_METADATA)) { if (user_access(ObjectHelper :: $EDIT_FEDORA_METADATA)) {
@ -322,7 +328,6 @@ class ObjectHelper {
if (empty($xmlstr)) { if (empty($xmlstr)) {
return ''; return '';
} }
try { try {
@ -374,14 +379,12 @@ class ObjectHelper {
if ($allow) { if ($allow) {
$output .= '<br /><a title = "' . t('Edit Meta Data') . '" href="' . $base_url . '/fedora/repository/' . 'editmetadata/' . $pid . '/' . $output .= '<br /><a title = "' . t('Edit Meta Data') . '" href="' . $base_url . '/fedora/repository/' . 'editmetadata/' . $pid . '/' .
$dsid . '"><img src="' . $base_url . '/' . $path . '/images/edit.gif" alt="' . t('Edit Meta Data') . '" /></a>'; $dsid . '"><img src="' . $base_url . '/' . $path . '/images/edit.gif" alt="' . t('Edit Meta Data') . '" /></a>';
} }
} }
return $output; return $output;
} }
/** /**
* Gets a list of datastreams from an object using its pid * Gets a list of datastreams from an object using its pid
* *
@ -466,8 +469,6 @@ class ObjectHelper {
return ''; return '';
} }
/** /**
* returns a stream from a fedora object given a pid and dsid * returns a stream from a fedora object given a pid and dsid
* *
@ -572,7 +573,8 @@ class ObjectHelper {
return FALSE; return FALSE;
} }
return $user_access; return $user_access;
} else { }
else {
return FALSE; return FALSE;
} }
} }
@ -629,17 +631,17 @@ class ObjectHelper {
if ($allow) { if ($allow) {
// $ingestObject = '<a title="'. t('Ingest a New object into ') . $collectionName . ' '. $collection_pid . '" href="'. base_path() . // $ingestObject = '<a title="'. t('Ingest a New object into ') . $collectionName . ' '. $collection_pid . '" href="'. base_path() .
$ingestObject = '<a title="' . t('Ingest a New object into !collection_name PID !collection_pid', array('!collection_name' => $collectionName, '!collection_pid' => $collection_pid)) . '" href="' . base_path() . $ingestObject = '<a title="' . t('Ingest a New object into !collection_name PID !collection_pid', array('!collection_name' => $collectionName, '!collection_pid' => $collection_pid)) . '" href="' . base_path() .
'fedora/ingestObject/' . $collection_pid . '/' . $collectionName . '"><img src="' . $base_url . '/' . $path . 'fedora/ingestObject/' . $collection_pid . '/' . $collectionName . '"><img src="' . $base_url . '/' . $path .
'/images/ingest.png" alt="' . t('Add a New Object') . '" class="icon"></a>' . t(' Add to this Collection'); '/images/ingest.png" alt="' . t('Add a New Object') . '" class="icon"></a>' . t(' Add to this Collection');
} }
} }
} else { }
else {
$ingestObject = '&nbsp;'; $ingestObject = '&nbsp;';
} }
} }
$datastreams .= $ingestObject; $datastreams .= $ingestObject;
$output .= $datastreams; $output .= $datastreams;
@ -794,10 +796,10 @@ class ObjectHelper {
// Get pid, title and description for children of object $pid // Get pid, title and description for children of object $pid
$query_string = 'select $o $title from <#ri> ' . $query_string = 'select $o $title from <#ri> ' .
// $query_string = 'select $o $title $desc from <#ri> '. // $query_string = 'select $o $title $desc from <#ri> '.
'where $s <info:fedora/fedora-system:def/relations-external#hasMember> $o ' . 'where $s <info:fedora/fedora-system:def/relations-external#hasMember> $o ' .
'and $o <dc:title> $title ' . 'and $o <dc:title> $title ' .
// 'and $o <dc:description> $desc '. // 'and $o <dc:description> $desc '.
'and ( '; 'and ( ';
foreach ($pids as $pid) { foreach ($pids as $pid) {
$query_string .= '$s <mulgara:is> <info:fedora/' . $pid . '> or '; $query_string .= '$s <mulgara:is> <info:fedora/' . $pid . '> or ';
@ -850,10 +852,11 @@ class ObjectHelper {
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); module_load_include('inc', 'fedora_repository', 'api/fedora_utils');
// Before executing the query, we hve a base case of accessing the top-level collection // Before executing the query, we hve a base case of accessing the top-level collection
global $base_url; global $base_url;
if ($pid == variable_get('fedora_repository_pid', 'islandora:top')){ if ($pid == variable_get('fedora_repository_pid', 'islandora:top')) {
$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); $breadcrumbs[] = l(t('Digital repository'), 'fedora/repository');
$breadcrumbs[] = l(t('Home'), $base_url); $breadcrumbs[] = l(t('Home'), $base_url);
} else { }
else {
$query_string = 'select $parentObject $title $content from <#ri> $query_string = 'select $parentObject $title $content from <#ri>
where (<info:fedora/' . $pid . '> <dc:title> $title where (<info:fedora/' . $pid . '> <dc:title> $title
and $parentObject <fedora-model:hasModel> $content and $parentObject <fedora-model:hasModel> $content
@ -868,17 +871,18 @@ class ObjectHelper {
$url = variable_get('fedora_repository_url', 'http://localhost:8080/fedora/risearch'); $url = variable_get('fedora_repository_url', 'http://localhost:8080/fedora/risearch');
$url .= "?type=tuples&flush=TRUE&format=CSV&limit=1&offset=0&lang=itql&stream=on&query=" . $query_string; $url .= "?type=tuples&flush=TRUE&format=CSV&limit=1&offset=0&lang=itql&stream=on&query=" . $query_string;
$result = preg_split('/[\r\n]+/',do_curl($url)); $result = preg_split('/[\r\n]+/', do_curl($url));
array_shift($result); // throw away first line array_shift($result); // throw away first line
$matches =str_getcsv(join("\n",$result)); $matches = str_getcsv(join("\n", $result));
if ($matches !== FALSE) { if ($matches !== FALSE) {
$parent = preg_replace('/^info:fedora\//','',$matches[0]); $parent = preg_replace('/^info:fedora\//', '', $matches[0]);
$breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid);
if ($parent == variable_get('fedora_repository_pid', 'islandora:top')) { if ($parent == variable_get('fedora_repository_pid', 'islandora:top')) {
$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); $breadcrumbs[] = l(t('Digital repository'), 'fedora/repository');
$breadcrumbs[] = l(t('Home'), $base_url); $breadcrumbs[] = l(t('Home'), $base_url);
} elseif ($level > 0) { }
elseif ($level > 0) {
$this->getBreadcrumbs($parent, $breadcrumbs, $level - 1); $this->getBreadcrumbs($parent, $breadcrumbs, $level - 1);
} }
} }

270
SearchClass.inc

@ -1,16 +1,19 @@
<?php <?php
// $Id$
class SearchClass { class SearchClass {
public static $SEARCH_CLASS_ADVANCED_SEARCH_NUMBER_FIELDS = 5; public static $SEARCH_CLASS_ADVANCED_SEARCH_NUMBER_FIELDS = 5;
function solr_search($query, $startPage=1, $fq = NULL, $dismax = NULL) {
function solr_search($query, $startPage=1, $fq = NULL, $dismax = NULL) {
$solrFile = trim(variable_get('islandora_solr_search_block_handler_file', 'plugins/SolrResults.inc')); $solrFile = trim(variable_get('islandora_solr_search_block_handler_file', 'plugins/SolrResults.inc'));
if (strpos($solrField, '../')) { // Don't let us bust out of fedora_repository modules directory when looking for a handler if (strpos($solrField, '../')) { // Don't let us bust out of fedora_repository modules directory when looking for a handler
drupal_set_message(t('You have illegal characters in your solr handler function in the Islandora solr block config.'), 'error'); drupal_set_message(t('You have illegal characters in your solr handler function in the Islandora solr block config.'), 'error');
} }
$solrClass = trim(variable_get('islandora_solr_search_block_handler_class', 'SolrResults')); $solrClass = trim(variable_get('islandora_solr_search_block_handler_class', 'SolrResults'));
$solrFunction = trim(variable_get('islandora_solr_search_block_handler_function', 'SearchAndDisplay')); $solrFunction = trim(variable_get('islandora_solr_search_block_handler_function', 'SearchAndDisplay'));
require_once(drupal_get_path('module', 'fedora_repository') . '/'. $solrFile); require_once(drupal_get_path('module', 'fedora_repository') . '/' . $solrFile);
try { try {
$implementation = new $solrClass(); $implementation = new $solrClass();
} catch (Exception $e) { } catch (Exception $e) {
@ -19,83 +22,84 @@ class SearchClass {
} }
return $implementation->$solrFunction($query, $startPage, $fq, $dismax); return $implementation->$solrFunction($query, $startPage, $fq, $dismax);
} }
function build_solr_search_form($repeat = NULL, $pathToSearchTerms = NULL, $query = NULL) { function build_solr_search_form($repeat = NULL, $pathToSearchTerms = NULL, $query = NULL) {
$types = $this->get_search_terms_array(NULL, 'solrSearchTerms.xml'); $types = $this->get_search_terms_array(NULL, 'solrSearchTerms.xml');
$queryArray=NULL; $queryArray = NULL;
if (isset($query)) { if (isset($query)) {
$queryArray = explode('AND', $query); $queryArray = explode('AND', $query);
} }
$andOrArray = array( $andOrArray = array(
'AND' => 'and', 'AND' => 'and',
//'OR' => 'or' //removed or for now as it would be a pain to parse //'OR' => 'or' //removed or for now as it would be a pain to parse
); );
$form = array(); $form = array();
if (!isset($repeat)) { if (!isset($repeat)) {
$repeat = variable_get('islandora_solr_search_block_repeat', t('3')); $repeat = variable_get('islandora_solr_search_block_repeat', t('3'));
} }
$var0 = explode(':', $queryArray[0]); $var0 = explode(':', $queryArray[0]);
$var1 = explode(':', $queryArray[1]); $var1 = explode(':', $queryArray[1]);
$form['search_type']['type1'] = array( $form['search_type']['type1'] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#options' => $types, '#options' => $types,
'#default_value' => trim($var0[0]) '#default_value' => trim($var0[0])
); );
$form['fedora_terms1'] = array( $form['fedora_terms1'] = array(
'#size' => '24', '#size' => '24',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
'#required' => TRUE, '#required' => TRUE,
'#default_value' => (count($var0) >= 2 ? trim($var0[1]) : ''), '#default_value' => (count($var0) >= 2 ? trim($var0[1]) : ''),
); );
$form['andor1'] = array( $form['andor1'] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#default_value' => 'AND', '#default_value' => 'AND',
'#options' => $andOrArray '#options' => $andOrArray
); );
$form['search_type']['type2'] = array( $form['search_type']['type2'] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#options' => $types, '#options' => $types,
'#default_value' => (count($var1) >= 2 ? trim($var1[0]) : ''), '#default_value' => (count($var1) >= 2 ? trim($var1[0]) : ''),
); );
$form['fedora_terms2'] = array( $form['fedora_terms2'] = array(
'#size' => '24', '#size' => '24',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
'#default_value' => (count($var1) >= 2 ? $var1[1] : ''), '#default_value' => (count($var1) >= 2 ? $var1[1] : ''),
); );
if ($repeat>2 && $repeat < 9) { //don't want less then 2 or more then 9 if ($repeat > 2 && $repeat < 9) { //don't want less then 2 or more then 9
for ($i = 3; $i < $repeat + 1; $i++) { for ($i = 3; $i < $repeat + 1; $i++) {
$t = $i - 1; $t = $i - 1;
$field_and_term = explode(':', $queryArray[$t]); $field_and_term = explode(':', $queryArray[$t]);
$form["andor$t"] = array( $form["andor$t"] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#default_value' => 'AND', '#default_value' => 'AND',
'#options' => $andOrArray '#options' => $andOrArray
); );
$form['search_type']["type$i"] = array( $form['search_type']["type$i"] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#options' => $types, '#options' => $types,
'#default_value' => trim($field_and_term[0]) '#default_value' => trim($field_and_term[0])
); );
$form["fedora_terms$i"] = array( $form["fedora_terms$i"] = array(
'#size' => '24', '#size' => '24',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
'#default_value' => (count($field_and_term) >= 2 ? trim($field_and_term[1]) : ''), '#default_value' => (count($field_and_term) >= 2 ? trim($field_and_term[1]) : ''),
); );
} }
} }
$form['submit'] = array( $form['submit'] = array(
'#type' => 'submit', '#type' => 'submit',
'#value' => t('search') '#value' => t('search')
); );
return $form; return $form;
} }
@ -103,39 +107,39 @@ class SearchClass {
function build_simple_solr_form() { function build_simple_solr_form() {
//$form = array(); //$form = array();
$form["search_query"] = array( $form["search_query"] = array(
'#size' => '30', '#size' => '30',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
// '#default_value' => (count($field_and_term) >= 2 ? trim($field_and_term[1]) : ''), // '#default_value' => (count($field_and_term) >= 2 ? trim($field_and_term[1]) : ''),
); );
$form['submit'] = array( $form['submit'] = array(
'#type' => 'submit', '#type' => 'submit',
'#value' => t('search') '#value' => t('search')
); );
return $form; return $form;
} }
function theme_solr_search_form($form) { function theme_solr_search_form($form) {
if (!isset($repeat)) { if (!isset($repeat)) {
$repeat = variable_get('islandora_solr_search_block_repeat', t('3')); $repeat = variable_get('islandora_solr_search_block_repeat', t('3'));
} }
$output = drupal_render($form['search_type']['type1']) ; $output = drupal_render($form['search_type']['type1']);
$output .= drupal_render($form['fedora_terms1']) ; $output .= drupal_render($form['fedora_terms1']);
$output .= drupal_render($form['andor1']) . drupal_render($form['search_type']['type2']) ; $output .= drupal_render($form['andor1']) . drupal_render($form['search_type']['type2']);
$output .= drupal_render($form['fedora_terms2']); $output .= drupal_render($form['fedora_terms2']);
if ($repeat>2 && $repeat < 9) { if ($repeat > 2 && $repeat < 9) {
for ($i=3;$i<$repeat+1;$i++) { for ($i = 3; $i < $repeat + 1; $i++) {
$t = $i - 1; $t = $i - 1;
$output .= drupal_render($form["andor$t"]) . drupal_render($form['search_type']["type$i"]) ; $output .= drupal_render($form["andor$t"]) . drupal_render($form['search_type']["type$i"]);
$output .= drupal_render($form["fedora_terms$i"]) ; $output .= drupal_render($form["fedora_terms$i"]);
} }
} }
$output .= drupal_render($form['submit']) ; $output .= drupal_render($form['submit']);
$output .= drupal_render($form); $output .= drupal_render($form);
return $output; return $output;
} }
function quickSearch($type, $query, $showForm = 1, $orderBy = 0, & $userArray) { function quickSearch($type, $query, $showForm = 1, $orderBy = 0, & $userArray) {
module_load_include('inc', 'fedora_repository', 'ObjectHelper'); module_load_include('inc', 'fedora_repository', 'ObjectHelper');
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); module_load_include('inc', 'fedora_repository', 'api/fedora_utils');
@ -146,15 +150,15 @@ class SearchClass {
$keywords = explode(' ', $query); $keywords = explode(' ', $query);
foreach ($keywords as $keyword) { foreach ($keywords as $keyword) {
$luceneQuery .= $type . ':'. $keyword . '+AND+'; $luceneQuery .= $type . ':' . $keyword . '+AND+';
} }
$luceneQuery = substr($luceneQuery, 0, strlen($luceneQuery) - 5); $luceneQuery = substr($luceneQuery, 0, strlen($luceneQuery) - 5);
$indexName = variable_get('fedora_index_name', 'DemoOnLucene'); $indexName = variable_get('fedora_index_name', 'DemoOnLucene');
$keys = htmlentities(urlencode($query)); $keys = htmlentities(urlencode($query));
$searchUrl = variable_get('fedora_fgsearch_url', 'http://localhost:8080/fedoragsearch/rest'); $searchUrl = variable_get('fedora_fgsearch_url', 'http://localhost:8080/fedoragsearch/rest');
$searchString = '?operation=gfindObjects&indexName='. $indexName . '&restXslt=copyXml&query='. $luceneQuery; $searchString = '?operation=gfindObjects&indexName=' . $indexName . '&restXslt=copyXml&query=' . $luceneQuery;
$searchString .= '&hitPageSize='. $numberOfHistPerPage . '&hitPageStart=1'; $searchString .= '&hitPageSize=' . $numberOfHistPerPage . '&hitPageStart=1';
//$searchString = htmlentities($searchString); //$searchString = htmlentities($searchString);
$searchUrl .= $searchString; $searchUrl .= $searchString;
@ -169,19 +173,18 @@ class SearchClass {
$nodeList = $xPath->query('//field[@name="refworks.u1"]'); $nodeList = $xPath->query('//field[@name="refworks.u1"]');
foreach ($nodeList as $node) { foreach ($nodeList as $node) {
if (!in_array($node->nodeValue, $userArray)) { if (!in_array($node->nodeValue, $userArray)) {
$userArray[]=$node->nodeValue; $userArray[] = $node->nodeValue;
} }
} }
} }
if ($showForm) { if ($showForm) {
$output = '<Strong>Quick Search</strong><br /><table class="table-form"><tr>'. drupal_get_form('fedora_repository_quick_search_form') . '</tr></table>'; $output = '<Strong>Quick Search</strong><br /><table class="table-form"><tr>' . drupal_get_form('fedora_repository_quick_search_form') . '</tr></table>';
} }
$output .= $this->applyXSLT($resultData, $orderBy); $output .= $this->applyXSLT($resultData, $orderBy);
return $output; return $output;
} }
} }
// gets term from a lucene index and displays them in a list // gets term from a lucene index and displays them in a list
function getTerms($fieldName, $startTerm, $displayName = NULL) { function getTerms($fieldName, $startTerm, $displayName = NULL) {
module_load_include('inc', 'fedora_repository', 'ObjectHelper'); module_load_include('inc', 'fedora_repository', 'ObjectHelper');
@ -192,10 +195,10 @@ class SearchClass {
$startTerm = ""; $startTerm = "";
} }
$startTerm = drupal_urlencode($startTerm); $startTerm = drupal_urlencode($startTerm);
$query = 'operation=browseIndex&startTerm='. $startTerm . '&fieldName='. $fieldName . '&termPageSize=20&indexName='. $indexName . '&restXslt=copyXml&resultPageXslt=copyXml'; $query = 'operation=browseIndex&startTerm=' . $startTerm . '&fieldName=' . $fieldName . '&termPageSize=20&indexName=' . $indexName . '&restXslt=copyXml&resultPageXslt=copyXml';
// $query=drupal_urlencode($query); // $query=drupal_urlencode($query);
$query = '?'. $query; $query = '?' . $query;
$searchString=$searchUrl . $query; $searchString = $searchUrl . $query;
$objectHelper = new ObjectHelper(); $objectHelper = new ObjectHelper();
@ -205,11 +208,8 @@ class SearchClass {
$output .= $this->applySpecifiedXSLT($resultData, $path . '/xsl/browseIndexToResultPage.xslt', $displayName); $output .= $this->applySpecifiedXSLT($resultData, $path . '/xsl/browseIndexToResultPage.xslt', $displayName);
//$output .= '<br />'.$alpha_out; //$output .= '<br />'.$alpha_out;
return $output; return $output;
} }
function custom_search($query, $startPage=1, $xslt= '/xsl/advanced_search_results.xsl', $numberOfHistPerPage = 50) { function custom_search($query, $startPage=1, $xslt= '/xsl/advanced_search_results.xsl', $numberOfHistPerPage = 50) {
module_load_include('inc', 'fedora_repository', 'ObjectHelper'); module_load_include('inc', 'fedora_repository', 'ObjectHelper');
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); module_load_include('inc', 'fedora_repository', 'api/fedora_utils');
@ -225,8 +225,8 @@ class SearchClass {
$query = trim($query); $query = trim($query);
$query = htmlentities(urlencode($query)); $query = htmlentities(urlencode($query));
$searchUrl = variable_get('fedora_fgsearch_url', 'http://localhost:8080/fedoragsearch/rest'); $searchUrl = variable_get('fedora_fgsearch_url', 'http://localhost:8080/fedoragsearch/rest');
$searchString = '?operation=gfindObjects&indexName=' . $indexName . '&restXslt='. $copyXMLFile . '&query=' . $query; $searchString = '?operation=gfindObjects&indexName=' . $indexName . '&restXslt=' . $copyXMLFile . '&query=' . $query;
$searchString .= '&hitPageSize='. $numberOfHistPerPage . '&hitPageStart='. $startPage; $searchString .= '&hitPageSize=' . $numberOfHistPerPage . '&hitPageStart=' . $startPage;
//$searchString = htmlentities($searchString); //$searchString = htmlentities($searchString);
$searchUrl .= $searchString; $searchUrl .= $searchString;
@ -242,7 +242,6 @@ class SearchClass {
} }
} }
function applySpecifiedXSLT($resultData, $pathToXSLT, $displayName = NULL) { function applySpecifiedXSLT($resultData, $pathToXSLT, $displayName = NULL) {
$proc = NULL; $proc = NULL;
global $user; global $user;
@ -252,9 +251,8 @@ class SearchClass {
} }
try { try {
$proc = new XsltProcessor(); $proc = new XsltProcessor();
} } catch (Exception $e) {
catch (Exception $e) { drupal_set_message(t('Error loading ' . $pathToXSLT . ' xslt!') . $e->getMessage());
drupal_set_message(t('Error loading '. $pathToXSLT . ' xslt!') . $e->getMessage());
return ' '; return ' ';
} }
@ -270,10 +268,10 @@ class SearchClass {
$xsl = new DomDocument(); $xsl = new DomDocument();
$test= $xsl->load($pathToXSLT); $test = $xsl->load($pathToXSLT);
if (!isset($test)) { if (!isset($test)) {
drupal_set_message(t('Error loading '. $pathToXSLT . ' xslt!')); drupal_set_message(t('Error loading ' . $pathToXSLT . ' xslt!'));
return t('Error loading !pathToXSLT xslt.', array('!pathToXSLT' => $pathToXSLT)); return t('Error loading !pathToXSLT xslt.', array('!pathToXSLT' => $pathToXSLT));
} }
@ -291,8 +289,8 @@ class SearchClass {
return $newdom->saveXML(); return $newdom->saveXML();
} }
} }
//default function for lucene results
//default function for lucene results
/** /**
* apply an xslt to lucene gsearch search results * apply an xslt to lucene gsearch search results
@ -305,8 +303,8 @@ class SearchClass {
function applyLuceneXSLT($resultData, $startPage = 1, $xslt_file = '/xsl/results.xsl', $query=NULL) { function applyLuceneXSLT($resultData, $startPage = 1, $xslt_file = '/xsl/results.xsl', $query=NULL) {
$path = drupal_get_path('module', 'Fedora_Repository'); $path = drupal_get_path('module', 'Fedora_Repository');
$test = $xslt_file; $test = $xslt_file;
$isRestricted = variable_get('fedora_namespace_restriction_enforced',TRUE); $isRestricted = variable_get('fedora_namespace_restriction_enforced', TRUE);
if(!isRestricted && $xslt_file == null){ if (!isRestricted && $xslt_file == NULL) {
$xslt_file = '/xsl/unfilteredresults.xsl'; $xslt_file = '/xsl/unfilteredresults.xsl';
} }
$proc = NULL; $proc = NULL;
@ -378,7 +376,7 @@ class SearchClass {
$proc->setParameter('', 'orderBy', $orderBy); $proc->setParameter('', 'orderBy', $orderBy);
$xsl = new DomDocument(); $xsl = new DomDocument();
$test=$xsl->load($path . '/ir/xsl/results.xsl'); $test = $xsl->load($path . '/ir/xsl/results.xsl');
if (!isset($test)) { if (!isset($test)) {
drupal_set_message(t('Error loading search results xslt!')); drupal_set_message(t('Error loading search results xslt!'));
return t('Error loading search results XSLT.'); return t('Error loading search results XSLT.');
@ -400,21 +398,21 @@ class SearchClass {
function theme_advanced_search_form($form, $repeat=NULL) { function theme_advanced_search_form($form, $repeat=NULL) {
if (!isset($repeat)) { if (!isset($repeat)) {
$repeat = variable_get('fedora_repository_advanced_block_repeat', t('3')); $repeat = variable_get('fedora_repository_advanced_block_repeat', t('3'));
} }
$output = drupal_render($form['search_type']['type1']) ; $output = drupal_render($form['search_type']['type1']);
$output .= drupal_render($form['fedora_terms1']) ; $output .= drupal_render($form['fedora_terms1']);
$output .= drupal_render($form['andor1']) . drupal_render($form['search_type']['type2']) ; $output .= drupal_render($form['andor1']) . drupal_render($form['search_type']['type2']);
$output .= drupal_render($form['fedora_terms2']); $output .= drupal_render($form['fedora_terms2']);
if ($repeat>2 && $repeat < 9) { if ($repeat > 2 && $repeat < 9) {
for ($i=3;$i<$repeat+1;$i++) { for ($i = 3; $i < $repeat + 1; $i++) {
$t = $i - 1; $t = $i - 1;
$output .= drupal_render($form["andor$t"]) . drupal_render($form['search_type']["type$i"]) ; $output .= drupal_render($form["andor$t"]) . drupal_render($form['search_type']["type$i"]);
$output .= drupal_render($form["fedora_terms$i"]) ; $output .= drupal_render($form["fedora_terms$i"]);
} }
} }
$output .= drupal_render($form['submit']) ; $output .= drupal_render($form['submit']);
$output .= drupal_render($form); $output .= drupal_render($form);
return $output; return $output;
} }
@ -422,86 +420,85 @@ class SearchClass {
//build search form, custom blocks should set the number of repeats or it will use the default //build search form, custom blocks should set the number of repeats or it will use the default
function build_advanced_search_form($repeat = NULL, $pathToSearchTerms = NULL, $query = NULL) { function build_advanced_search_form($repeat = NULL, $pathToSearchTerms = NULL, $query = NULL) {
$types = $this->get_search_terms_array($pathToSearchTerms); $types = $this->get_search_terms_array($pathToSearchTerms);
$queryArray=NULL; $queryArray = NULL;
if (isset($query)) { if (isset($query)) {
$queryArray = explode('AND', $query); $queryArray = explode('AND', $query);
} }
$andOrArray = array( $andOrArray = array(
'AND' => 'and', 'AND' => 'and',
//'OR' => 'or' //removed or for now as it would be a pain to parse //'OR' => 'or' //removed or for now as it would be a pain to parse
); );
$form = array(); $form = array();
if (!isset($repeat)) { if (!isset($repeat)) {
$repeat = variable_get('fedora_repository_advanced_block_repeat', t('3')); $repeat = variable_get('fedora_repository_advanced_block_repeat', t('3'));
} }
$var0 = explode(':', $queryArray[0]); $var0 = explode(':', $queryArray[0]);
$var1 = explode(':', $queryArray[1]); $var1 = explode(':', $queryArray[1]);
$form['search_type']['type1'] = array( $form['search_type']['type1'] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#options' => $types, '#options' => $types,
'#default_value' => trim($var0[0]) '#default_value' => trim($var0[0])
); );
$form['fedora_terms1'] = array( $form['fedora_terms1'] = array(
'#size' => '24', '#size' => '24',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
'#required' => TRUE, '#required' => TRUE,
'#default_value' => (count($var0) >= 2 ? trim($var0[1]) : ''), '#default_value' => (count($var0) >= 2 ? trim($var0[1]) : ''),
); );
$form['andor1'] = array( $form['andor1'] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#default_value' => 'AND', '#default_value' => 'AND',
'#options' => $andOrArray '#options' => $andOrArray
); );
$form['search_type']['type2'] = array( $form['search_type']['type2'] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#options' => $types, '#options' => $types,
'#default_value' => (count($var1) >= 2 ? trim($var1[0]) : ''), '#default_value' => (count($var1) >= 2 ? trim($var1[0]) : ''),
); );
$form['fedora_terms2'] = array( $form['fedora_terms2'] = array(
'#size' => '24', '#size' => '24',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
'#default_value' => (count($var1) >= 2 ? $var1[1] : ''), '#default_value' => (count($var1) >= 2 ? $var1[1] : ''),
); );
if ($repeat>2 && $repeat < 9) { //don't want less then 2 or more then 9 if ($repeat > 2 && $repeat < 9) { //don't want less then 2 or more then 9
for ($i = 3; $i < $repeat + 1; $i++) { for ($i = 3; $i < $repeat + 1; $i++) {
$t = $i - 1; $t = $i - 1;
$field_and_term = explode(':', $queryArray[$t]); $field_and_term = explode(':', $queryArray[$t]);
$form["andor$t"] = array( $form["andor$t"] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#default_value' => 'AND', '#default_value' => 'AND',
'#options' => $andOrArray '#options' => $andOrArray
); );
$form['search_type']["type$i"] = array( $form['search_type']["type$i"] = array(
'#title' => t(''), '#title' => t(''),
'#type' => 'select', '#type' => 'select',
'#options' => $types, '#options' => $types,
'#default_value' => trim($field_and_term[0]) '#default_value' => trim($field_and_term[0])
); );
$form["fedora_terms$i"] = array( $form["fedora_terms$i"] = array(
'#size' => '24', '#size' => '24',
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t(''), '#title' => t(''),
'#default_value' => (count($field_and_term) >= 2 ? trim($field_and_term[1]) : ''), '#default_value' => (count($field_and_term) >= 2 ? trim($field_and_term[1]) : ''),
); );
} }
} }
$form['submit'] = array( $form['submit'] = array(
'#type' => 'submit', '#type' => 'submit',
'#value' => t('search') '#value' => t('search')
); );
return $form; return $form;
} }
function get_search_terms_array($path = NULL, $file = NULL) { function get_search_terms_array($path = NULL, $file = NULL) {
if (!isset($path)) { if (!isset($path)) {
$path = drupal_get_path('module', 'Fedora_Repository'); $path = drupal_get_path('module', 'Fedora_Repository');
@ -510,7 +507,7 @@ class SearchClass {
if (!isset($file)) { if (!isset($file)) {
$file = 'searchTerms.xml'; $file = 'searchTerms.xml';
} }
$xmlDoc->load($path . '/'. $file); $xmlDoc->load($path . '/' . $file);
$nodeList = $xmlDoc->getElementsByTagName('term'); $nodeList = $xmlDoc->getElementsByTagName('term');
$types = array(); $types = array();
for ($i = 0; $i < $nodeList->length; $i++) { for ($i = 0; $i < $nodeList->length; $i++) {
@ -522,4 +519,5 @@ class SearchClass {
} }
return $types; return $types;
} }
} }

28
SecurityClass.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/* /*
* Created on 22-Oct-08 * Created on 22-Oct-08
@ -9,7 +10,9 @@
*/ */
class SecurityClass { class SecurityClass {
public static $SECURITY_CLASS_SECURITY_STREAM = 'POLICY'; public static $SECURITY_CLASS_SECURITY_STREAM = 'POLICY';
function SecurityClass() { function SecurityClass() {
module_load_include('inc', 'SecurityClass', ''); module_load_include('inc', 'SecurityClass', '');
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
@ -54,8 +57,7 @@ class SecurityClass {
$usersAndRoles = array(); $usersAndRoles = array();
try { try {
$xml = new SimpleXMLElement($policyStream); $xml = new SimpleXMLElement($policyStream);
} } catch (Exception $e) {
catch (Exception $e) {
watchdog(t("Fedora_Repository"), t("No roles found in security policy, could not parse policy stream."), NULL, WATCHDOG_ERROR); watchdog(t("Fedora_Repository"), t("No roles found in security policy, could not parse policy stream."), NULL, WATCHDOG_ERROR);
//we may not want to send this to the screen. //we may not want to send this to the screen.
drupal_set_message(t('No roles found in security policy, could not parse policy stream: !message', array('!message' => $e->getMessage())), 'error'); drupal_set_message(t('No roles found in security policy, could not parse policy stream: !message', array('!message' => $e->getMessage())), 'error');
@ -68,7 +70,7 @@ class SecurityClass {
foreach ($conditions as $condition) { foreach ($conditions as $condition) {
$designator = $condition->Apply->SubjectAttributeDesignator; $designator = $condition->Apply->SubjectAttributeDesignator;
if (empty($designator)) {//$disignator may be wrapped by an or if (empty($designator)) {//$disignator may be wrapped by an or
$designator=$condition->Apply->Apply->SubjectAttributeDesignator; $designator = $condition->Apply->Apply->SubjectAttributeDesignator;
} }
$attributeId = strip_tags($designator['AttributeId']); $attributeId = strip_tags($designator['AttributeId']);
@ -92,8 +94,8 @@ class SecurityClass {
$usersAndRoles['users'] = $allowedUsers; $usersAndRoles['users'] = $allowedUsers;
$usersAndRoles['roles'] = $allowedRoles; $usersAndRoles['roles'] = $allowedRoles;
return $usersAndRoles; return $usersAndRoles;
} }
// When a user's profile is saved in drupal we will attempt to create a collection for them in Fedora // When a user's profile is saved in drupal we will attempt to create a collection for them in Fedora
// this will be their personal space. In the IR it is editable by users with the same role in the VRE // this will be their personal space. In the IR it is editable by users with the same role in the VRE
// it probably would not be. // it probably would not be.
@ -101,8 +103,7 @@ class SecurityClass {
$doc = new DOMDocument(); $doc = new DOMDocument();
try { try {
$doc->load(drupal_get_path('module', 'Fedora_Repository') . '/policies/noObjectEditPolicy.xml'); $doc->load(drupal_get_path('module', 'Fedora_Repository') . '/policies/noObjectEditPolicy.xml');
} } catch (exception $e) {
catch (exception $e) {
watchdog(t("Fedora_Repository"), t("Problem loading policy file."), NULL, WATCHDOG_ERROR); watchdog(t("Fedora_Repository"), t("Problem loading policy file."), NULL, WATCHDOG_ERROR);
} }
$conditions = $doc->getElementsByTagName('Condition'); $conditions = $doc->getElementsByTagName('Condition');
@ -117,7 +118,7 @@ class SecurityClass {
if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') { if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') {
foreach ($user->roles as $role) { foreach ($user->roles as $role) {
if (!($role == 'authenticated user' || $role == 'administrator')) { //don't want authenticated user included administrator already is included' if (!($role == 'authenticated user' || $role == 'administrator')) { //don't want authenticated user included administrator already is included'
$newAttributeValue=$doc->createElement('AttributeValue', '<![CDATA['. $role . ']]>'); $newAttributeValue = $doc->createElement('AttributeValue', '<![CDATA[' . $role . ']]>');
$newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string'); $newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string');
// $newAttributeValue->setAttribute('MustBePresent', 'FALSE'); // $newAttributeValue->setAttribute('MustBePresent', 'FALSE');
$apply->appendChild($newAttributeValue); $apply->appendChild($newAttributeValue);
@ -132,7 +133,7 @@ class SecurityClass {
foreach ($applies as $apply) { foreach ($applies as $apply) {
$functionId = $apply->getAttribute('FunctionId'); $functionId = $apply->getAttribute('FunctionId');
if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') { if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') {
$newAttributeValue=$doc->createElement('AttributeValue', $user->name); $newAttributeValue = $doc->createElement('AttributeValue', $user->name);
$newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string'); $newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string');
//$newAttributeValue->setAttribute('MustBePresent', 'FALSE'); //$newAttributeValue->setAttribute('MustBePresent', 'FALSE');
$apply->appendChild($newAttributeValue); $apply->appendChild($newAttributeValue);
@ -145,7 +146,7 @@ class SecurityClass {
return $doc; //NULL; //$xml; return $doc; //NULL; //$xml;
} }
/** /**
* Add a list of allowed users and roles to the given policy stream and return it. * Add a list of allowed users and roles to the given policy stream and return it.
* *
* @param string $policy_stream * @param string $policy_stream
@ -170,7 +171,7 @@ class SecurityClass {
if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') { if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') {
foreach ($allowed_roles as $role) { foreach ($allowed_roles as $role) {
if (!($role == 'authenticated user' || $role == 'administrator')) { //don't want authenticated user included administrator already is included' if (!($role == 'authenticated user' || $role == 'administrator')) { //don't want authenticated user included administrator already is included'
$newAttributeValue=$dom->createElement('AttributeValue', $role); $newAttributeValue = $dom->createElement('AttributeValue', $role);
$newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string'); $newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string');
//$newAttributeValue->setAttribute('MustBePresent', 'FALSE'); //$newAttributeValue->setAttribute('MustBePresent', 'FALSE');
$apply->appendChild($newAttributeValue); $apply->appendChild($newAttributeValue);
@ -186,8 +187,8 @@ class SecurityClass {
foreach ($applies as $apply) { foreach ($applies as $apply) {
$functionId = $apply->getAttribute('FunctionId'); $functionId = $apply->getAttribute('FunctionId');
if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') { if ($functionId == 'urn:oasis:names:tc:xacml:1.0:function:string-bag') {
foreach ( $allowed_users as $username ) { foreach ($allowed_users as $username) {
$newAttributeValue=$dom->createElement('AttributeValue', $username ); $newAttributeValue = $dom->createElement('AttributeValue', $username);
$newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string'); $newAttributeValue->setAttribute('DataType', 'http://www.w3.org/2001/XMLSchema#string');
//$newAttributeValue->setAttribute('MustBePresent', 'FALSE'); //$newAttributeValue->setAttribute('MustBePresent', 'FALSE');
$apply->appendChild($newAttributeValue); $apply->appendChild($newAttributeValue);
@ -200,4 +201,5 @@ class SecurityClass {
// $this->collection_policy_stream = $dom->saveXML(); // $this->collection_policy_stream = $dom->saveXML();
return $dom->saveXML(); return $dom->saveXML();
} }
} }

13
XMLDatastream.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
abstract class XMLDatastream { abstract class XMLDatastream {
@ -96,7 +96,7 @@ abstract class XMLDatastream {
$this->pid = $pid; $this->pid = $pid;
$this->dsid = $dsid; $this->dsid = $dsid;
if ($xmlStr !== NULL) { if ($xmlStr !== NULL) {
if(is_object($xmlStr) && get_class($xmlStr) == DOMDocument) { if (is_object($xmlStr) && get_class($xmlStr) == DOMDocument) {
$this->xml = $xmlStr; $this->xml = $xmlStr;
} }
else { else {
@ -180,7 +180,8 @@ abstract class XMLDatastream {
// a subclass. // a subclass.
$vars = get_class_vars(get_class($this)); $vars = get_class_vars(get_class($this));
$schemaLocation = $vars['SCHEMA_URI']; $schemaLocation = $vars['SCHEMA_URI'];
} elseif ($rootEl->attributes->getNamedItem('schemaLocation') !== NULL) { }
elseif ($rootEl->attributes->getNamedItem('schemaLocation') !== NULL) {
//figure out where the schema is located and validate. //figure out where the schema is located and validate.
list(, $schemaLocation) = preg_split('/\s+/', $rootEl->attributes->getNamedItem('schemaLocation')->nodeValue); list(, $schemaLocation) = preg_split('/\s+/', $rootEl->attributes->getNamedItem('schemaLocation')->nodeValue);
} }
@ -193,10 +194,12 @@ abstract class XMLDatastream {
foreach ($errors as $err) { foreach ($errors as $err) {
self::$errors[] = 'XML Error: Line ' . $err->line . ': ' . $err->message; self::$errors[] = 'XML Error: Line ' . $err->line . ': ' . $err->message;
} }
} else { }
else {
$this->name = $rootEl->attributes->getNamedItem('name')->nodeValue; $this->name = $rootEl->attributes->getNamedItem('name')->nodeValue;
} }
} else { }
else {
$ret = FALSE; $ret = FALSE;
self::$errors[] = 'Unable to load schema.'; self::$errors[] = 'Unable to load schema.';
} }

18
api/dublin_core.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/* /*
* Implements a simple class for working with Dublin Core data and exporting it * Implements a simple class for working with Dublin Core data and exporting it
@ -8,6 +9,7 @@
*/ */
class Dublin_Core { class Dublin_Core {
public $dc = array( public $dc = array(
'dc:title' => array(), 'dc:title' => array(),
'dc:creator' => array(), 'dc:creator' => array(),
@ -45,17 +47,17 @@ class Dublin_Core {
* @param <type> $element_name * @param <type> $element_name
* @param <type> $value * @param <type> $value
*/ */
function add_element( $element_name, $value ) { function add_element($element_name, $value) {
if (is_string($value) && is_array($this->dc[$element_name])) { if (is_string($value) && is_array($this->dc[$element_name])) {
$this->dc[$element_name][] = $value; $this->dc[$element_name][] = $value;
} }
} }
/** /**
* Replace the given DC element with the values in $values * Replace the given DC element with the values in $values
* @param string $elemnt_name * @param string $elemnt_name
* @param array $values * @param array $values
*/ */
function set_element($element_name, $values) { function set_element($element_name, $values) {
if (is_array($values)) { if (is_array($values)) {
$this->dc[$element_name] = $values; $this->dc[$element_name] = $values;
@ -68,7 +70,7 @@ class Dublin_Core {
/** /**
* Serialize this object to XML and return it. * Serialize this object to XML and return it.
*/ */
function as_xml( $with_preamble = FALSE ) { function as_xml($with_preamble = FALSE) {
$dc_xml = new DomDocument(); $dc_xml = new DomDocument();
$oai_dc = $dc_xml->createElementNS('http://www.openarchives.org/OAI/2.0/oai_dc/', 'oai_dc:dc'); $oai_dc = $dc_xml->createElementNS('http://www.openarchives.org/OAI/2.0/oai_dc/', 'oai_dc:dc');
$oai_dc->setAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); $oai_dc->setAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');

31
api/fedora_collection.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/* /*
* Operations that affect a Fedora repository at a collection level. * Operations that affect a Fedora repository at a collection level.
@ -15,7 +16,7 @@ module_load_include('module', 'fedora_repository');
* that will let you import them into another repository. * that will let you import them into another repository.
* @param <type> $format * @param <type> $format
*/ */
function export_collection($collection_pid, $relationship = 'isMemberOfCollection', $format = 'info:fedora/fedora-system:FOXML-1.1' ) { function export_collection($collection_pid, $relationship = 'isMemberOfCollection', $format = 'info:fedora/fedora-system:FOXML-1.1') {
$collection_item = new Fedora_Item($collection_pid); $collection_item = new Fedora_Item($collection_pid);
$foxml = $collection_item->export_as_foxml(); $foxml = $collection_item->export_as_foxml();
@ -25,15 +26,15 @@ function export_collection($collection_pid, $relationship = 'isMemberOfCollectio
$container = tempnam($file_dir, 'export_'); $container = tempnam($file_dir, 'export_');
file_delete($container); file_delete($container);
print $container; print $container;
if (mkdir($container) && mkdir($container . '/'. $collection_pid)) { if (mkdir($container) && mkdir($container . '/' . $collection_pid)) {
$foxml_dir = $container . '/'. $collection_pid; $foxml_dir = $container . '/' . $collection_pid;
$file = fopen($foxml_dir . '/'. $collection_pid . '.xml', 'w'); $file = fopen($foxml_dir . '/' . $collection_pid . '.xml', 'w');
fwrite($file, $foxml); fwrite($file, $foxml);
fclose($file); fclose($file);
$member_pids = get_related_items_as_array($collection_pid, $relationship); $member_pids = get_related_items_as_array($collection_pid, $relationship);
foreach ($member_pids as $member) { foreach ($member_pids as $member) {
$file = fopen($foxml_dir . '/'. $member . '.xml', 'w'); $file = fopen($foxml_dir . '/' . $member . '.xml', 'w');
$item = new Fedora_Item($member); $item = new Fedora_Item($member);
$item_foxml = $item->export_as_foxml(); $item_foxml = $item->export_as_foxml();
fwrite($file, $item_foxml); fwrite($file, $item_foxml);
@ -41,13 +42,13 @@ function export_collection($collection_pid, $relationship = 'isMemberOfCollectio
} }
if (system("cd $container;zip -r $collection_pid.zip $collection_pid/* >/dev/NULL") == 0) { if (system("cd $container;zip -r $collection_pid.zip $collection_pid/* >/dev/NULL") == 0) {
header("Content-type: application/zip"); header("Content-type: application/zip");
header('Content-Disposition: attachment; filename="' . $collection_pid . '.zip'. '"'); header('Content-Disposition: attachment; filename="' . $collection_pid . '.zip' . '"');
$fh = fopen($container . '/'. $collection_pid . '.zip', 'r'); $fh = fopen($container . '/' . $collection_pid . '.zip', 'r');
$the_data = fread($fh, filesize($container . '/'. $collection_pid . '.zip')); $the_data = fread($fh, filesize($container . '/' . $collection_pid . '.zip'));
fclose($fh); fclose($fh);
echo $the_data; echo $the_data;
} }
if (file_exists($container . '/'. $collection_pid)) { if (file_exists($container . '/' . $collection_pid)) {
system("rm -rf $container"); // I'm sorry. system("rm -rf $container"); // I'm sorry.
} }
} }
@ -82,21 +83,21 @@ function get_related_items_as_xml($collection_pid, $relationship = array('isMemb
if (is_array($relationship)) { if (is_array($relationship)) {
foreach ($relationship as $rel) { foreach ($relationship as $rel) {
$query_string .= '$object <fedora-rels-ext:'. $rel . '> <info:fedora/'. $collection_pid . '>'; $query_string .= '$object <fedora-rels-ext:' . $rel . '> <info:fedora/' . $collection_pid . '>';
if (next($relationship)) { if (next($relationship)) {
$query_string .= ' OR '; $query_string .= ' OR ';
} }
} }
} }
elseif (is_string($relationship)) { elseif (is_string($relationship)) {
$query_string .= '$object <fedora-rels-ext:'. $relationship . '> <info:fedora/'. $collection_pid . '>'; $query_string .= '$object <fedora-rels-ext:' . $relationship . '> <info:fedora/' . $collection_pid . '>';
} }
else { else {
return ''; return '';
} }
$query_string .= ') '; $query_string .= ') ';
$query_string .= $active_objects_only ? 'and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>' : ''; $query_string .= $active_objects_only ? 'and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>' : '';
if ($cmodel) { if ($cmodel) {
$query_string .= ' and $content <mulgara:is> <info:fedora/' . $cmodel . '>'; $query_string .= ' and $content <mulgara:is> <info:fedora/' . $cmodel . '>';
@ -104,14 +105,14 @@ function get_related_items_as_xml($collection_pid, $relationship = array('isMemb
$query_string .= ') $query_string .= ')
minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0>
order by '.$orderby; order by ' . $orderby;
$query_string = htmlentities(urlencode($query_string)); $query_string = htmlentities(urlencode($query_string));
$content = ''; $content = '';
$url = variable_get('fedora_repository_url', 'http://localhost:8080/fedora/risearch'); $url = variable_get('fedora_repository_url', 'http://localhost:8080/fedora/risearch');
$url .= "?type=tuples&flush=TRUE&format=Sparql&limit=$limit&offset=$offset&lang=itql&stream=on&query=". $query_string; $url .= "?type=tuples&flush=TRUE&format=Sparql&limit=$limit&offset=$offset&lang=itql&stream=on&query=" . $query_string;
$content .= do_curl($url); $content .= do_curl($url);
return $content; return $content;

20
api/fedora_export.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
define('FOXML_10', 'info:fedora/fedora-system:FOXML-1.0'); define('FOXML_10', 'info:fedora/fedora-system:FOXML-1.0');
define('FOXML_11', 'info:fedora/fedora-system:FOXML-1.1'); define('FOXML_11', 'info:fedora/fedora-system:FOXML-1.1');
@ -38,7 +38,7 @@ function export_objects_for_pid($pid, $dir, &$log) {
$paths = array(); $paths = array();
foreach ($object->datastreamDef as $ds) { foreach ($object->datastreamDef as $ds) {
if (!in_array($ds->ID, $ignore_dsids)) { if (!in_array($ds->ID, $ignore_dsids)) {
$file = $dir .'/'. $ds->label .'.'. get_file_extension($ds->MIMEType); $file = $dir . '/' . $ds->label . '.' . get_file_extension($ds->MIMEType);
$paths[$ds->ID] = $file; $paths[$ds->ID] = $file;
//$content = $ob_helper->getDatastreamDissemination($pid, $ds->ID); //$content = $ob_helper->getDatastreamDissemination($pid, $ds->ID);
@ -136,29 +136,29 @@ function export_foxml_for_pid($pid, $dir, $paths, &$log, $format = FOXML_11, $re
foreach ($xpath->query('METS:file[@OWNERID!="E"][@OWNERID!="R"]/METS:FLocat[@xlink:href]', $dsNode) as $Floc) { foreach ($xpath->query('METS:file[@OWNERID!="E"][@OWNERID!="R"]/METS:FLocat[@xlink:href]', $dsNode) as $Floc) {
$Floc->setAttribute('xlink:href', url($paths[$dsId], array('absolute' => TRUE))); $Floc->setAttribute('xlink:href', url($paths[$dsId], array('absolute' => TRUE)));
} }
/* /*
foreach ($dsNode->getElementsByTagName('METS:file') as $contentNode) { foreach ($dsNode->getElementsByTagName('METS:file') as $contentNode) {
// Don't update datastreams having external uris // Don't update datastreams having external uris
if (in_array($dsNode->getAttribute('OWNERID'), $disallowed_groups)) { if (in_array($dsNode->getAttribute('OWNERID'), $disallowed_groups)) {
continue; continue;
} }
foreach ($xpath->('METS:FLocat[@xlink:href]', $contentNode) as $Floc) { foreach ($xpath->('METS:FLocat[@xlink:href]', $contentNode) as $Floc) {
$Floc->setAttribute('xlink:href', url($paths[$dsId], array('absolute' => true))); $Floc->setAttribute('xlink:href', url($paths[$dsId], array('absolute' => true)));
} }
`} `}
*/ */
} }
break; break;
default: default:
$log[] = log_line(t("Unknown or invalid format: ". $format), 'error'); $log[] = log_line(t("Unknown or invalid format: " . $format), 'error');
return FALSE; return FALSE;
} }
} //if $remove_islandora } //if $remove_islandora
$file = $dir .'/'. $pid .'.xml'; $file = $dir . '/' . $pid . '.xml';
if (!$foxml->save($file)) { if (!$foxml->save($file)) {
$log[] = log_line(t("Failed to write datastream %dsid for pid %pid to %file", array('%dsid' => $ds->ID, '%pid' => $pid, '%file' => $file)), 'error'); $log[] = log_line(t("Failed to write datastream %dsid for pid %pid to %file", array('%dsid' => $ds->ID, '%pid' => $pid, '%file' => $file)), 'error');
return FALSE; return FALSE;

21
api/fedora_item.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#'); define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#');
define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#'); define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#');
@ -55,7 +55,7 @@ class Fedora_Item {
return (!empty($this->objectProfile)); return (!empty($this->objectProfile));
} }
function add_datastream_from_file($datastream_file, $datastream_id, $datastream_label = NULL, $datastream_mimetype = '', $controlGroup = 'M', $logMessage = null) { function add_datastream_from_file($datastream_file, $datastream_id, $datastream_label = NULL, $datastream_mimetype = '', $controlGroup = 'M', $logMessage = NULL) {
module_load_include('inc', 'fedora_repository', 'MimeClass'); module_load_include('inc', 'fedora_repository', 'MimeClass');
if (empty($datastream_mimetype)) { if (empty($datastream_mimetype)) {
// Get mime type from the file extension. // Get mime type from the file extension.
@ -76,7 +76,7 @@ class Fedora_Item {
return $return_value; return $return_value;
} }
function add_datastream_from_url($datastream_url, $datastream_id, $datastream_label = NULL, $datastream_mimetype = '', $controlGroup = 'M', $logMessage = null) { function add_datastream_from_url($datastream_url, $datastream_id, $datastream_label = NULL, $datastream_mimetype = '', $controlGroup = 'M', $logMessage = NULL) {
if (empty($datastream_label)) { if (empty($datastream_label)) {
$datastream_label = $datastream_id; $datastream_label = $datastream_id;
} }
@ -94,15 +94,14 @@ class Fedora_Item {
'dsState' => 'A', 'dsState' => 'A',
'checksumType' => 'DISABLED', 'checksumType' => 'DISABLED',
'checksum' => 'none', 'checksum' => 'none',
'logMessage' => ($logMessage != null) ? $logMessage : 'Ingested object ' . $datastream_id 'logMessage' => ($logMessage != NULL) ? $logMessage : 'Ingested object ' . $datastream_id
); );
return $this->soap_call( 'addDataStream', $params ); return $this->soap_call('addDataStream', $params);
} }
function add_datastream_from_string($str, $datastream_id, $datastream_label = NULL, $datastream_mimetype = 'text/xml', $controlGroup = 'M', $logMessage = null) { function add_datastream_from_string($str, $datastream_id, $datastream_label = NULL, $datastream_mimetype = 'text/xml', $controlGroup = 'M', $logMessage = NULL) {
$dir = sys_get_temp_dir(); $dir = sys_get_temp_dir();
$tmpfilename = tempnam($dir, 'fedoratmp'); $tmpfilename = tempnam($dir, 'fedoratmp');
$tmpfile = fopen($tmpfilename, 'w'); $tmpfile = fopen($tmpfilename, 'w');
@ -265,7 +264,7 @@ class Fedora_Item {
} }
$cursor += count($resultelements->resultList->objectFields); $cursor += count($resultelements->resultList->objectFields);
if (count($resultelements->resultList->objectFields) < $max_results if (count($resultelements->resultList->objectFields) < $max_results
|| count($resultelements->resultList->objectFields) == 0) { || count($resultelements->resultList->objectFields) == 0) {
$done = TRUE; $done = TRUE;
} }
foreach ($resultelements->resultList->objectFields as $obj) { foreach ($resultelements->resultList->objectFields as $obj) {
@ -332,7 +331,7 @@ class Fedora_Item {
return $ret; return $ret;
} }
function get_dissemination($service_definition_pid, $method_name, $parameters = array(), $as_of_date_time = null) { function get_dissemination($service_definition_pid, $method_name, $parameters = array(), $as_of_date_time = NULL) {
$params = array( $params = array(
'pid' => $this->pid, 'pid' => $this->pid,
'serviceDefinitionPid' => $service_definition_pid, 'serviceDefinitionPid' => $service_definition_pid,
@ -512,7 +511,7 @@ class Fedora_Item {
// Verify the array format and that it isn't empty. // Verify the array format and that it isn't empty.
if (!empty($relationships)) { if (!empty($relationships)) {
$relsextxml = '<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">' $relsextxml = '<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">'
. '<rdf:description rdf:about="' . $this->pid . '">'; . '<rdf:description rdf:about="' . $this->pid . '">';
foreach ($relationships as $rel) { foreach ($relationships as $rel) {
if (empty($rel['subject']) || empty($rel['predicate']) || empty($rel['object']) || $rel['subject'] != 'info:fedora/' . $this->pid) { if (empty($rel['subject']) || empty($rel['predicate']) || empty($rel['object']) || $rel['subject'] != 'info:fedora/' . $this->pid) {
@ -612,7 +611,7 @@ class Fedora_Item {
closedir($dir_handle); closedir($dir_handle);
} }
function modify_object($label = '', $state = null, $ownerId = null, $logMessage = 'Modified by Islandora API', $quiet=TRUE) { function modify_object($label = '', $state = NULL, $ownerId = NULL, $logMessage = 'Modified by Islandora API', $quiet=TRUE) {
$params = array( $params = array(
'pid' => $this->pid, 'pid' => $this->pid,

36
api/fedora_utils.inc

@ -1,35 +1,36 @@
<?php <?php
// $Id$
// @file fedora_utils.inc // @file fedora_utils.inc
// Base utilities used by the Islansora fedora module. // Base utilities used by the Islansora fedora module.
/* /*
* Functions that emulate php5.3 functionality for backwards compatiablity * Functions that emulate php5.3 functionality for backwards compatiablity
*/ */
if (!function_exists('str_getcsv')) { if (!function_exists('str_getcsv')) {
function str_getcsv($input, $delimiter=',', $enclosure='"', $escape=null, $eol=null) {
$temp=fopen("php://memory", "rw"); function str_getcsv($input, $delimiter=',', $enclosure='"', $escape=NULL, $eol=NULL) {
$temp = fopen("php://memory", "rw");
fwrite($temp, $input); fwrite($temp, $input);
fseek($temp, 0); fseek($temp, 0);
$r=fgetcsv($temp, 4096, $delimiter, $enclosure); $r = fgetcsv($temp, 4096, $delimiter, $enclosure);
fclose($temp); fclose($temp);
return $r; return $r;
} }
} }
/* /*
* Functions that emulate php5.3 functionality for backwards compatiablity * Functions that emulate php5.3 functionality for backwards compatiablity
*/ */
/* /*
* Static functions used by the Fedora PHP API. * Static functions used by the Fedora PHP API.
*/ */
function do_curl($url, $return_to_variable = 1, $number_of_post_vars = 0, $post = NULL) { function do_curl($url, $return_to_variable = 1, $number_of_post_vars = 0, $post = NULL) {
global $user; global $user;
// Check if we are inside Drupal and there is a valid user. // Check if we are inside Drupal and there is a valid user.
if ((!isset ($user)) || $user->uid == 0) { if ((!isset($user)) || $user->uid == 0) {
$fedora_user = 'anonymous'; $fedora_user = 'anonymous';
$fedora_pass = 'anonymous'; $fedora_pass = 'anonymous';
} }
@ -51,7 +52,7 @@ function do_curl($url, $return_to_variable = 1, $number_of_post_vars = 0, $post
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERPWD, "$fedora_user:$fedora_pass"); curl_setopt($ch, CURLOPT_USERPWD, "$fedora_user:$fedora_pass");
//curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); //curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
if ($number_of_post_vars>0&&$post) { if ($number_of_post_vars > 0 && $post) {
curl_setopt($ch, CURLOPT_POST, $number_of_post_vars); curl_setopt($ch, CURLOPT_POST, $number_of_post_vars);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$post"); curl_setopt($ch, CURLOPT_POSTFIELDS, "$post");
} }
@ -67,19 +68,17 @@ function do_curl($url, $return_to_variable = 1, $number_of_post_vars = 0, $post
function fedora_available() { function fedora_available() {
$response = do_curl(variable_get('fedora_base_url', 'http://localhost:8080/fedora').'/describe'); $response = do_curl(variable_get('fedora_base_url', 'http://localhost:8080/fedora') . '/describe');
return strstr($response, 'Repository Information HTML Presentation') !== FALSE; return strstr($response, 'Repository Information HTML Presentation') !== FALSE;
} }
/** /**
* Returns a UTF-8-encoded transcripiton of the string given in $in_str. * Returns a UTF-8-encoded transcripiton of the string given in $in_str.
* @param string $in_str * @param string $in_str
* @return string A UTF-8 encoded string. * @return string A UTF-8 encoded string.
*/ */
function fix_encoding($in_str) { function fix_encoding($in_str) {
$cur_encoding = mb_detect_encoding($in_str) ; $cur_encoding = mb_detect_encoding($in_str);
if ($cur_encoding == "UTF-8" && mb_check_encoding($in_str, "UTF-8")) { if ($cur_encoding == "UTF-8" && mb_check_encoding($in_str, "UTF-8")) {
return $in_str; return $in_str;
} }
@ -113,16 +112,15 @@ function fixDsid($dsid) {
$replace = ''; $replace = '';
$new_dsid = preg_replace($find, $replace, $new_dsid); $new_dsid = preg_replace($find, $replace, $new_dsid);
if( strlen($new_dsid) > 63 ) if (strlen($new_dsid) > 63)
$new_dsid = substr($new_dsid, -63); $new_dsid = substr($new_dsid, -63);
if( preg_match('/^[^a-zA-Z]/', $dsid ) ) if (preg_match('/^[^a-zA-Z]/', $dsid))
$new_dsid = 'x' . $new_dsid; $new_dsid = 'x' . $new_dsid;
if( strlen($new_dsid) == 0 ) if (strlen($new_dsid) == 0)
$new_dsid = 'item' . rand(1, 100); $new_dsid = 'item' . rand(1, 100);
return $new_dsid; return $new_dsid;
} }

59
api/rels-ext.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/* /*
* To change this template, choose Tools | Templates * To change this template, choose Tools | Templates
@ -12,32 +13,34 @@
* @author aoneill * @author aoneill
*/ */
class RelsExt { class RelsExt {
// Instance variables
public $relsExtArray = array(); // Instance variables
private $originalRelsExtArray = array(); // Used to determine the result of modified() funciton. public $relsExtArray = array();
// Member functions private $originalRelsExtArray = array(); // Used to determine the result of modified() funciton.
/** // Member functions
* Constructor that builds itself by retrieving the RELS-EXT stream from
* the repository for the given Fedora_Item. /**
* @param Fedora_Item $item * Constructor that builds itself by retrieving the RELS-EXT stream from
*/ * the repository for the given Fedora_Item.
function RelsExt( $item ) { * @param Fedora_Item $item
$relsextxml = $item->get_datastream_dissemination('RELS-EXT'); */
function RelsExt($item) {
} $relsextxml = $item->get_datastream_dissemination('RELS-EXT');
}
function modified() {
return !(empty(array_diff($this->relsExtArray, $this->originalRelsExtArray)) && function modified() {
empty(array_diff($this->originalRelsExtArray, $this->relsExtArray))); return!(empty(array_diff($this->relsExtArray, $this->originalRelsExtArray)) &&
} empty(array_diff($this->originalRelsExtArray, $this->relsExtArray)));
}
/**
* Save the current state of the RELS-EXT array out to the repository item /**
* as a datastream. * Save the current state of the RELS-EXT array out to the repository item
*/ * as a datastream.
function save() { */
function save() {
}
}
} }

10
api/tagging.inc

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/* /*
* @file tagging.inc * @file tagging.inc
@ -11,6 +12,7 @@
* @author aoneill * @author aoneill
*/ */
class TagSet { class TagSet {
public $tags = array(); public $tags = array();
public $item = NULL; public $item = NULL;
public $tagsDSID = 'TAGS'; public $tagsDSID = 'TAGS';
@ -23,7 +25,7 @@ class TagSet {
} }
function load() { function load() {
$tagsxml = isset($this->item->datastreams[$this->tagsDSID])? $this->item->get_datastream_dissemination($this->tagsDSID) : NULL; $tagsxml = isset($this->item->datastreams[$this->tagsDSID]) ? $this->item->get_datastream_dissemination($this->tagsDSID) : NULL;
if (empty($tagsxml)) { if (empty($tagsxml)) {
$this->tags = array(); $this->tags = array();
return FALSE; return FALSE;
@ -59,11 +61,11 @@ class TagSet {
else { else {
$this->item->modify_datastream_by_value($tagdoc->saveXML(), $this->tagsDSID, 'Tags', 'text/xml', 'X'); $this->item->modify_datastream_by_value($tagdoc->saveXML(), $this->tagsDSID, 'Tags', 'text/xml', 'X');
} }
} } catch (exception $e) {
catch (exception $e) {
drupal_set_message('There was an error saving the tags datastream: !e', array('!e' => $e), 'error'); drupal_set_message('There was an error saving the tags datastream: !e', array('!e' => $e), 'error');
return FALSE; return FALSE;
} }
return TRUE; return TRUE;
} }
} }

39
collection_policies/COLLECTION-COLLECTION POLICY.xml

@ -1,21 +1,22 @@
<collection_policy name="" xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd"> <collection_policy name="" xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<content_models> <content_models>
<content_model dsid="ISLANDORACM" name="Collection" namespace="islandora:collection" pid="islandora:collectionCModel"/> <content_model dsid="ISLANDORACM" name="Collection" namespace="islandora:collection" pid="islandora:collectionCModel"/>
</content_models> </content_models>
<search_terms> <search_terms>
<term field="dc.title">dc.title</term> <term field="dc.title">dc.title</term>
<term field="dc.creator">dc.creator</term> <term field="dc.creator">dc.creator</term>
<term default="true" field="dc.description">dc.description</term> <term default="true" field="dc.description">dc.description</term>
<term field="dc.date">dc.date</term> <term field="dc.date">dc.date</term>
<term field="dc.identifier">dc.identifier</term> <term field="dc.identifier">dc.identifier</term>
<term field="dc.language">dc.language</term> <term field="dc.language">dc.language</term>
<term field="dc.publisher">dc.publisher</term> <term field="dc.publisher">dc.publisher</term>
<term field="dc.rights">dc.rights</term> <term field="dc.rights">dc.rights</term>
<term field="dc.subject">dc.subject</term> <term field="dc.subject">dc.subject</term>
<term field="dc.relation">dc.relation</term> <term field="dc.relation">dc.relation</term>
<term field="dcterms.temporal">dcterms.temporal</term> <term field="dcterms.temporal">dcterms.temporal</term>
<term field="dcterms.spatial">dcterms.spatial</term> <term field="dcterms.spatial">dcterms.spatial</term>
<term field="fgs.DS.first.text">Full Text</term> <term field="fgs.DS.first.text">Full Text</term>
</search_terms> </search_terms>
<relationship>isMemberOfCollection</relationship> <relationship>isMemberOfCollection</relationship>
</collection_policy> </collection_policy>

4
collection_policies/FLV-COLLECTION POLICY.xml

@ -7,8 +7,8 @@
<pid>vre:contentmodel</pid> <pid>vre:contentmodel</pid>
<dsid>STANDARD_FLV</dsid> <dsid>STANDARD_FLV</dsid>
</contentmodel> </contentmodel>
</contentmodels> </contentmodels>
<search_terms> <search_terms>
<!--define what fields we can query as part of the advanced search for this collection--> <!--define what fields we can query as part of the advanced search for this collection-->
<default>dc.description</default> <default>dc.description</default>
<term> <term>

38
collection_policies/JPG-COLLECTION POLICY.xml

@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd"> <collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<content_models> <content_models>
<content_model name="STANDARD_JPEG" dsid="ISLANDORACM" namespace="demo:Smiley" pid="demo:DualResImage"/> <content_model name="STANDARD_JPEG" dsid="ISLANDORACM" namespace="demo:Smiley" pid="demo:DualResImage"/>
</content_models> </content_models>
<search_terms> <search_terms>
<term field="dc.title">dc.title</term> <term field="dc.title">dc.title</term>
<term field="dc.creator">dc.creator</term> <term field="dc.creator">dc.creator</term>
<term field="dc.description" default="true">dc.description</term> <term field="dc.description" default="true">dc.description</term>
<term field="dc.date">dc.date</term> <term field="dc.date">dc.date</term>
<term field="dc.identifier">dc.identifier</term> <term field="dc.identifier">dc.identifier</term>
<term field="dc.language">dc.language</term> <term field="dc.language">dc.language</term>
<term field="dc.publisher">dc.publisher</term> <term field="dc.publisher">dc.publisher</term>
<term field="dc.rights">dc.rights</term> <term field="dc.rights">dc.rights</term>
<term field="dc.subject">dc.subject</term> <term field="dc.subject">dc.subject</term>
<term field="dc.relation">dc.relation</term> <term field="dc.relation">dc.relation</term>
<term field="dcterms.temporal">dcterms.temporal</term> <term field="dcterms.temporal">dcterms.temporal</term>
<term field="dcterms.spatial">dcterms.spatial</term> <term field="dcterms.spatial">dcterms.spatial</term>
<term field="fgs.DS.first.text">Full Text</term> <term field="fgs.DS.first.text">Full Text</term>
</search_terms> </search_terms>
<relationship>isMemberOf</relationship> <relationship>isMemberOf</relationship>
</collection_policy> </collection_policy>

25
collection_policies/PDF-COLLECTION POLICY.xml

@ -1 +1,24 @@
<?xml version="1.0" encoding="utf-8"?> <collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd"> <content_models> <content_model name="STANDARD_PDF" dsid="ISLANDORACM" namespace="islandora:spdf" pid="islandora:standard_pdf"/> <content_model name="STRICT_PDF" dsid="ISLANDORACM" namespace="islandora:strictpdf" pid="islandora:strict_pdf"/> <content_model name="REFWORKS_BATCH" dsid="ISLANDORACM" namespace="islandora:ref" pid="islandora:refworks_cm"/> </content_models> <search_terms> <term field="dc.title">dc.title</term> <term field="dc.creator">dc.creator</term> <term field="dc.description" default="true">dc.description</term> <term field="dc.date">dc.date</term> <term field="dc.identifier">dc.identifier</term> <term field="dc.language">dc.language</term> <term field="dc.publisher">dc.publisher</term> <term field="dc.rights">dc.rights</term> <term field="dc.subject">dc.subject</term> <term field="dc.relation">dc.relation</term> <term field="dcterms.temporal">dcterms.temporal</term> <term field="dcterms.spatial">dcterms.spatial</term> <term field="fgs.DS.first.text">Full Text</term> </search_terms> <relationship>isMemberOfCollection</relationship> </collection_policy> <?xml version="1.0" encoding="utf-8"?>
<collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<content_models>
<content_model name="STANDARD_PDF" dsid="ISLANDORACM" namespace="islandora:spdf" pid="islandora:standard_pdf"/>
<content_model name="STRICT_PDF" dsid="ISLANDORACM" namespace="islandora:strictpdf" pid="islandora:strict_pdf"/>
<content_model name="REFWORKS_BATCH" dsid="ISLANDORACM" namespace="islandora:ref" pid="islandora:refworks_cm"/>
</content_models>
<search_terms>
<term field="dc.title">dc.title</term>
<term field="dc.creator">dc.creator</term>
<term field="dc.description" default="true">dc.description</term>
<term field="dc.date">dc.date</term>
<term field="dc.identifier">dc.identifier</term>
<term field="dc.language">dc.language</term>
<term field="dc.publisher">dc.publisher</term>
<term field="dc.rights">dc.rights</term>
<term field="dc.subject">dc.subject</term>
<term field="dc.relation">dc.relation</term>
<term field="dcterms.temporal">dcterms.temporal</term>
<term field="dcterms.spatial">dcterms.spatial</term>
<term field="fgs.DS.first.text">Full Text</term>
</search_terms>
<relationship>isMemberOfCollection</relationship>
</collection_policy>

3
collection_policies/PERSONAL-COLLECTION-POLICY.xml

@ -1,3 +1,4 @@
<collection_policy> <collection_policy>
<!---we will define allowed mimetypes and what to do with various types as part of the content model--> <!---we will define allowed mimetypes and what to do with various types as part of the content model-->
<contentmodels> <contentmodels>
@ -11,7 +12,7 @@
<pid>vre:contentmodel</pid> <pid>vre:contentmodel</pid>
<dsid>STANDARD_PDF</dsid> <dsid>STANDARD_PDF</dsid>
</contentmodel> </contentmodel>
<contentmodel name="STANDARD_IMAGE"> <contentmodel name="STANDARD_IMAGE">
<pid_namespace>ir:image</pid_namespace> <pid_namespace>ir:image</pid_namespace>
<pid>vre:contentmodel</pid> <pid>vre:contentmodel</pid>
<dsid>STANDARD_IMAGE</dsid> <dsid>STANDARD_IMAGE</dsid>

127
collection_policies/book_collection_policy.xml

@ -1,69 +1,70 @@
<collection_policy> <collection_policy>
<!---we will define allowed mimetypes and what to do with various types as part of the content model--> <!---we will define allowed mimetypes and what to do with various types as part of the content model-->
<contentmodels> <contentmodels>
<contentmodel name="Book"> <contentmodel name="Book">
<pid_namespace>islandora</pid_namespace> <pid_namespace>islandora</pid_namespace>
<pid>ilives:bookCModel</pid> <pid>ilives:bookCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
</contentmodels> </contentmodels>
<!--if we define a query for an object the relationship we ask for may not be isMemberOfCollection. So when we ingest in th <!--if we define a query for an object the relationship we ask for may not be isMemberOfCollection. So when we ingest in th
Collection we will want the relationship to match the query. If this element is null we will use the isMemberOfCollection relationship--> Collection we will want the relationship to match the query. If this element is null we will use the isMemberOfCollection relationship-->
<relationship>isMemberOfCollection</relationship> <relationship>isMemberOfCollection</relationship>
<search_terms> <search_terms>
<!--define what fields we can query as part of the advanced search for this collection--> <!--define what fields we can query as part of the advanced search for this collection-->
<default>dc.description</default> <default>dc.description</default>
<term> <term>
<field>dc.title</field> <field>dc.title</field>
<value>dc.title</value> <value>dc.title</value>
</term> </term>
<term> <term>
<field>dc.creator</field> <field>dc.creator</field>
<value>dc.creator</value> <value>dc.creator</value>
</term> </term>
<term> <term>
<field>dc.description</field> <field>dc.description</field>
<value>dc.description</value> <value>dc.description</value>
</term> </term>
<term> <term>
<field>dc.date</field> <field>dc.date</field>
<value>dc.date</value> <value>dc.date</value>
</term> </term>
<term> <term>
<field>dc.identifier</field> <field>dc.identifier</field>
<value>dc.identifier</value> <value>dc.identifier</value>
</term> </term>
<term> <term>
<field>dc.language</field> <field>dc.language</field>
<value>dc.language</value> <value>dc.language</value>
</term> </term>
<term> <term>
<field>dc.publisher</field> <field>dc.publisher</field>
<value>dc.publisher</value> <value>dc.publisher</value>
</term> </term>
<term> <term>
<field>dc.rights</field> <field>dc.rights</field>
<value>dc.rights</value> <value>dc.rights</value>
</term> </term>
<term> <term>
<field>dc.subject</field> <field>dc.subject</field>
<value>dc.subject</value> <value>dc.subject</value>
</term> </term>
<term> <term>
<field>dc.relation</field> <field>dc.relation</field>
<value>dc.relation</value> <value>dc.relation</value>
</term> </term>
<term> <term>
<field>dcterms.temporal</field> <field>dcterms.temporal</field>
<value>dcterms.temporal</value> <value>dcterms.temporal</value>
</term> </term>
<term> <term>
<field>dcterms.spatial</field> <field>dcterms.spatial</field>
<value>dcterms.spatial</value> <value>dcterms.spatial</value>
</term> </term>
<term> <term>
<field>fgs.DS.first.text</field> <field>fgs.DS.first.text</field>
<value>Full Text</value> <value>Full Text</value>
</term> </term>
</search_terms> </search_terms>
</collection_policy> </collection_policy>

146
collection_policies/large_image_collection_policy.xml

@ -6,79 +6,79 @@
Purpose of the document follows. Purpose of the document follows.
--> -->
<collection_policy> <collection_policy>
<contentmodels> <contentmodels>
<contentmodel name="SLIDE_CMODEL"> <contentmodel name="SLIDE_CMODEL">
<pid_namespace>islandora:slide</pid_namespace> <pid_namespace>islandora:slide</pid_namespace>
<pid>islandora:slideCModel</pid> <pid>islandora:slideCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
<contentmodel name="MAP_CMODEL"> <contentmodel name="MAP_CMODEL">
<pid_namespace>islandora:map</pid_namespace> <pid_namespace>islandora:map</pid_namespace>
<pid>islandora:mapCModel</pid> <pid>islandora:mapCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
<contentmodel name="HERB_CMODEL"> <contentmodel name="HERB_CMODEL">
<pid_namespace>islandora:herb</pid_namespace> <pid_namespace>islandora:herb</pid_namespace>
<pid>islandora:herbCModel</pid> <pid>islandora:herbCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
</contentmodels> </contentmodels>
<!--if we define a query for an object the relationship we ask for may not be isMemberOfCollection. So when we ingest in th <!--if we define a query for an object the relationship we ask for may not be isMemberOfCollection. So when we ingest in th
Collection we will want the relationship to match the query.--> Collection we will want the relationship to match the query.-->
<relationship>isMemberOfCollection</relationship> <relationship>isMemberOfCollection</relationship>
<search_terms> <search_terms>
<default>dc.description</default> <default>dc.description</default>
<term> <term>
<field>dc.title</field> <field>dc.title</field>
<value>dc.title</value> <value>dc.title</value>
</term> </term>
<term> <term>
<field>dc.creator</field> <field>dc.creator</field>
<value>dc.creator</value> <value>dc.creator</value>
</term> </term>
<term> <term>
<field>dc.description</field> <field>dc.description</field>
<value>dc.description</value> <value>dc.description</value>
</term> </term>
<term> <term>
<field>dc.date</field> <field>dc.date</field>
<value>dc.date</value> <value>dc.date</value>
</term> </term>
<term> <term>
<field>dc.identifier</field> <field>dc.identifier</field>
<value>dc.identifier</value> <value>dc.identifier</value>
</term> </term>
<term> <term>
<field>dc.language</field> <field>dc.language</field>
<value>dc.language</value> <value>dc.language</value>
</term> </term>
<term> <term>
<field>dc.publisher</field> <field>dc.publisher</field>
<value>dc.publisher</value> <value>dc.publisher</value>
</term> </term>
<term> <term>
<field>dc.rights</field> <field>dc.rights</field>
<value>dc.rights</value> <value>dc.rights</value>
</term> </term>
<term> <term>
<field>dc.subject</field> <field>dc.subject</field>
<value>dc.subject</value> <value>dc.subject</value>
</term> </term>
<term> <term>
<field>dc.relation</field> <field>dc.relation</field>
<value>dc.relation</value> <value>dc.relation</value>
</term> </term>
<term> <term>
<field>dcterms.temporal</field> <field>dcterms.temporal</field>
<value>dcterms.temporal</value> <value>dcterms.temporal</value>
</term> </term>
<term> <term>
<field>dcterms.spatial</field> <field>dcterms.spatial</field>
<value>dcterms.spatial</value> <value>dcterms.spatial</value>
</term> </term>
<term> <term>
<field>fgs.DS.first.text</field> <field>fgs.DS.first.text</field>
<value>Full Text</value> <value>Full Text</value>
</term> </term>
</search_terms> </search_terms>
</collection_policy> </collection_policy>

79
collection_policies/qt_collection_policy.xml

@ -1,35 +1,48 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd"> <collection_policy xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<content_models> <content_models>
<content_model name="Video" dsid="ISLANDORACM" namespace="islandora" pid="islandora:qtCModel"/> <content_model name="Video" dsid="ISLANDORACM" namespace="islandora" pid="islandora:qtCModel"/>
</content_models> </content_models>
<search_terms> <search_terms>
<term field="dc.title"> <term field="dc.title">
dc.title</term> dc.title
<term field="dc.creator"> </term>
dc.creator</term> <term field="dc.creator">
<term field="dc.description" default="true"> dc.creator
dc.description</term> </term>
<term field="dc.date"> <term field="dc.description" default="true">
dc.date</term> dc.description
<term field="dc.identifier"> </term>
dc.identifier</term> <term field="dc.date">
<term field="dc.language"> dc.date
dc.language</term> </term>
<term field="dc.publisher"> <term field="dc.identifier">
dc.publisher</term> dc.identifier
<term field="dc.rights"> </term>
dc.rights</term> <term field="dc.language">
<term field="dc.subject"> dc.language
dc.subject</term> </term>
<term field="dc.relation"> <term field="dc.publisher">
dc.relation</term> dc.publisher
<term field="dcterms.temporal"> </term>
dcterms.temporal</term> <term field="dc.rights">
<term field="dcterms.spatial"> dc.rights
dcterms.spatial</term> </term>
</search_terms> <term field="dc.subject">
<relationship> dc.subject
isMemberOfCollection</relationship> </term>
</collection_policy> <term field="dc.relation">
dc.relation
</term>
<term field="dcterms.temporal">
dcterms.temporal
</term>
<term field="dcterms.spatial">
dcterms.spatial
</term>
</search_terms>
<relationship>
isMemberOfCollection
</relationship>
</collection_policy>

77
collection_policy.xsd

@ -1,47 +1,48 @@
<xsd:schema xmlns="http://www.islandora.ca" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.islandora.ca" elementFormDefault="qualified" > <xsd:schema xmlns="http://www.islandora.ca" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.islandora.ca" elementFormDefault="qualified" >
<xsd:annotation> <xsd:annotation>
<xsd:documentation xml:lang="en"> <xsd:documentation xml:lang="en">
Islandora Collection Policy Schema Islandora Collection Policy Schema
Islandora, Robertson Library, University of Prince Edward Island, 550 University Ave., Charlottetown, Prince Edward Island Islandora, Robertson Library, University of Prince Edward Island, 550 University Ave., Charlottetown, Prince Edward Island
</xsd:documentation> </xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:element name="collection_policy" type="collection_policyType"/> <xsd:element name="collection_policy" type="collection_policyType"/>
<xsd:complexType name="collection_policyType"> <xsd:complexType name="collection_policyType">
<xsd:all> <xsd:all>
<xsd:element name="content_models" type="content_modelsType"/> <xsd:element name="content_models" type="content_modelsType"/>
<xsd:element name="search_terms" type="search_termsType"/> <xsd:element name="search_terms" type="search_termsType"/>
<xsd:element name="relationship" type="xsd:string"/> <xsd:element name="relationship" type="xsd:string"/>
<xsd:element name="staging_area" type="xsd:string" minOccurs="0" maxOccurs="1"/> <xsd:element name="staging_area" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:all> </xsd:all>
<xsd:attribute name="name" type="xsd:normalizedString" use="required"/> <xsd:attribute name="name" type="xsd:normalizedString" use="required"/>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="content_modelsType"> <xsd:complexType name="content_modelsType">
<xsd:sequence> <xsd:sequence>
<xsd:element name="content_model" type="content_modelType" minOccurs="1" maxOccurs="unbounded"/> <xsd:element name="content_model" type="content_modelType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="content_modelType"> <xsd:complexType name="content_modelType">
<xsd:attribute name="name" type="xsd:normalizedString" use="required"/> <xsd:attribute name="name" type="xsd:normalizedString" use="required"/>
<xsd:attribute name="dsid" type="xsd:normalizedString" use="required"/> <xsd:attribute name="dsid" type="xsd:normalizedString" use="required"/>
<xsd:attribute name="namespace" type="xsd:normalizedString" use="required"/> <xsd:attribute name="namespace" type="xsd:normalizedString" use="required"/>
<xsd:attribute name="pid" type="xsd:normalizedString" use="required"/> <xsd:attribute name="pid" type="xsd:normalizedString" use="required"/>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="search_termsType"> <xsd:complexType name="search_termsType">
<xsd:sequence> <xsd:sequence>
<xsd:element name="term" type="termType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="term" type="termType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="termType"> <xsd:complexType name="termType">
<xsd:simpleContent> <xsd:simpleContent>
<xsd:extension base="xsd:string"> <xsd:extension base="xsd:string">
<xsd:attribute name="field" type="xsd:string" use="optional"/> <xsd:attribute name="field" type="xsd:string" use="optional"/>
<xsd:attribute name="default" type="xsd:boolean" default="false"/> <xsd:attribute name="default" type="xsd:boolean" default="false"/>
</xsd:extension> </xsd:extension>
</xsd:simpleContent> </xsd:simpleContent>
</xsd:complexType> </xsd:complexType>
</xsd:schema> </xsd:schema>

470
collection_views/COLLECTION_VIEW.xml

@ -1,264 +1,264 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/> <xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3"> <table cellpadding="3" cellspacing="3">
<tr> <tr>
<td colspan="{$cellsPerRow}"> <td colspan="{$cellsPerRow}">
<div align="center"> <div align="center">
<xsl:choose> <xsl:choose>
<xsl:when test="$end >= $count and $start = 1"> <xsl:when test="$end >= $count and $start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
</xsl:when> </xsl:when>
<xsl:when test="$end >= $count"> <xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/> <xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$end"/> <xsl:value-of select="$end"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/> <xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$end"/> <xsl:value-of select="$end"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/> <xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/> <xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
<br clear="all" />
</td>
</tr>
<xsl:apply-templates select="s:sparql/s:results"/>
</table>
<br clear="all" /> <br clear="all" />
</td> <div align="center">
</tr> <xsl:choose>
<xsl:apply-templates select="s:sparql/s:results"/> <xsl:when test="$end >= $count and $start = 1">
</table> <xsl:value-of select="$start"/>-
<br clear="all" /> <xsl:value-of select="$count"/>
<div align="center">
<xsl:choose>
<xsl:when test="$end >= $count and $start = 1">
<xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
</xsl:when> </xsl:when>
<xsl:when test="$end >= $count"> <xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/> <xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$end"/> <xsl:value-of select="$end"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/> <xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>- <xsl:value-of select="$start"/>-
<xsl:value-of select="$end"/> <xsl:value-of select="$end"/>
of of
<xsl:value-of select="$count"/>&#160; <xsl:value-of select="$count"/>&#160;
<br /> <br />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/> <xsl:value-of select="$page - 1"/>
</xsl:attribute> </xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/ <xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/ <xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/> <xsl:value-of select="$page + 1"/>
</xsl:attribute> </xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="s:sparql/s:results"> <xsl:template match="s:sparql/s:results">
<xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="s:result"> <xsl:template match="s:result">
<xsl:variable name='OBJECTURI' select="s:object/@uri"/> <xsl:variable name='OBJECTURI' select="s:object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="s:title"/> <xsl:with-param name="text" select="s:title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="(content='Collection' or content='Community')"> <xsl:when test="(content='Collection' or content='Community')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/ <xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="s:title"/> <xsl:value-of select="s:title"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/ <xsl:copy-of select="$PID"/>/
<xsl:value-of select="s:title"/>/ <xsl:value-of select="s:title"/>/
<xsl:value-of select="s:title"/> <xsl:value-of select="s:title"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<td valign="top" width="25%"> <td valign="top" width="25%">
<img> <img>
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$PID"/>/TN <xsl:value-of select="$PID"/>/TN
</xsl:attribute> </xsl:attribute>
</img> </img>
<br clear="all" /> <br clear="all" />
<xsl:value-of select="$newTitle"/> <xsl:value-of select="$newTitle"/>
<xsl:if test="($CONTENTMODEL!='islandora:collectionCModel')"> <xsl:if test="($CONTENTMODEL!='islandora:collectionCModel')">
<br />-- <br />--
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/ <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/ <xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="s:title"/> <xsl:value-of select="s:title"/>
</xsl:attribute> </xsl:attribute>
DETAILS DETAILS
</a>-- </a>--
</xsl:if> </xsl:if>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

119
collection_views/Coverflow_Collection_View.xsl

@ -1,59 +1,61 @@
<xsl:stylesheet exclude-result-prefixes="php" version="1.0" xmlns:php="http://php.net/xsl" <xsl:stylesheet exclude-result-prefixes="php" version="1.0" xmlns:php="http://php.net/xsl"
xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/> <xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/>
<xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/> <xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/>
<script src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/container/container_core-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/container/container_core-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/menu/menu-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/menu/menu-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/button/button-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/button/button-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="$PATH"/> <xsl:value-of select="$PATH"/>
<xsl:text>/collection_views/yui_coverflow/js/CoverFlow.js</xsl:text> <xsl:text>/collection_views/yui_coverflow/js/CoverFlow.js</xsl:text>
</xsl:attribute> </xsl:attribute>
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
<xsl:text> <xsl:text>
// YAHOO.util.Event.onDOMReady(function(){ // YAHOO.util.Event.onDOMReady(function(){
//$(document).ready(function(){ //$(document).ready(function(){
window.onload = function(){ window.onload = function(){
var images = [</xsl:text> var images = [
<xsl:for-each select="/s:sparql/s:results/s:result"> </xsl:text>
<xsl:variable name="OBJECTURI" select="s:object/@uri"/> <xsl:for-each select="/s:sparql/s:results/s:result">
<xsl:variable name="pid" select="substring-after($OBJECTURI,'/')"/> <xsl:variable name="OBJECTURI" select="s:object/@uri"/>
<xsl:text>{src: '</xsl:text> <xsl:variable name="pid" select="substring-after($OBJECTURI,'/')"/>
<xsl:value-of select="$BASEURL"/> <xsl:text>{src: '</xsl:text>
<xsl:text>/fedora/repository/</xsl:text> <xsl:value-of select="$BASEURL"/>
<xsl:value-of select="$pid"/> <xsl:text>/fedora/repository/</xsl:text>
<xsl:text>/TN', label: '</xsl:text> <xsl:value-of select="$pid"/>
<xsl:value-of select="s:memberTitle"/> <xsl:text>/TN', label: '</xsl:text>
<xsl:text>', onclick: function(){alert('image1');}}, <xsl:value-of select="s:memberTitle"/>
<xsl:text>', onclick: function(){alert('image1');}},
</xsl:text> </xsl:text>
</xsl:for-each> </xsl:for-each>
<xsl:text> <xsl:text>
]; ];
var myCoverFlow = new YAHOO.ext.CoverFlow('coverFlowTest', {height: 200, width: 600, images: images}); var myCoverFlow = new YAHOO.ext.CoverFlow('coverFlowTest', {height: 200, width: 600, images: images});
@ -67,13 +69,14 @@
var myMoveLeftBtn = new YAHOO.widget.Button('moveLeftButton', {onclick: {fn: moveLeft, obj: myCoverFlow}}); var myMoveLeftBtn = new YAHOO.widget.Button('moveLeftButton', {onclick: {fn: moveLeft, obj: myCoverFlow}});
var myMoveRightBtn = new YAHOO.widget.Button('moveRightButton', {onclick: {fn: moveRight, obj: myCoverFlow}}); var myMoveRightBtn = new YAHOO.widget.Button('moveRightButton', {onclick: {fn: moveRight, obj: myCoverFlow}});
};</xsl:text> };
</script> </xsl:text>
<div class="title">Testing YUI's CoverFlow version 0.1 (beta)</div> </script>
<div id="coverFlowTest"/> <div class="title">Testing YUI's CoverFlow version 0.1 (beta)</div>
<input id="moveLeftButton" type="button" value="Select Next"/> <div id="coverFlowTest"/>
<input id="moveRightButton" type="button" value="Select Previous"/> <input id="moveLeftButton" type="button" value="Select Next"/>
<br/> <input id="moveRightButton" type="button" value="Select Previous"/>
<br/> <br/>
</xsl:template> <br/>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

129
collection_views/Coverflow_PRE_Collection_View.xsl

@ -1,63 +1,65 @@
<xsl:stylesheet exclude-result-prefixes="php" version="1.0" xmlns:php="http://php.net/xsl" <xsl:stylesheet exclude-result-prefixes="php" version="1.0" xmlns:php="http://php.net/xsl"
xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/> <xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/>
<xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/> <xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/>
<script src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/container/container_core-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/container/container_core-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/menu/menu-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/menu/menu-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script src="http://yui.yahooapis.com/2.7.0/build/button/button-min.js" type="text/javascript"> <script src="http://yui.yahooapis.com/2.7.0/build/button/button-min.js" type="text/javascript">
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="$PATH"/> <xsl:value-of select="$PATH"/>
<xsl:text>/collection_views/yui_coverflow/js/CoverFlow.js</xsl:text> <xsl:text>/collection_views/yui_coverflow/js/CoverFlow.js</xsl:text>
</xsl:attribute> </xsl:attribute>
<xsl:comment>Comment added so script is recognised</xsl:comment> <xsl:comment>Comment added so script is recognised</xsl:comment>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
<xsl:text> <xsl:text>
// YAHOO.util.Event.onDOMReady(function(){ // YAHOO.util.Event.onDOMReady(function(){
//$(document).ready(function(){ //$(document).ready(function(){
window.onload = function(){ window.onload = function(){
var images = [</xsl:text> var images = [
<xsl:for-each select="/s:sparql/s:results/s:result"> </xsl:text>
<xsl:variable name="OBJECTURI" select="s:object/@uri"/> <xsl:for-each select="/s:sparql/s:results/s:result">
<xsl:variable name="pid" select="substring-after($OBJECTURI,'/')"/> <xsl:variable name="OBJECTURI" select="s:object/@uri"/>
<xsl:text>{src: '</xsl:text> <xsl:variable name="pid" select="substring-after($OBJECTURI,'/')"/>
<xsl:value-of select="$BASEURL"/> <xsl:text>{src: '</xsl:text>
<xsl:text>/fedora/repository/</xsl:text> <xsl:value-of select="$BASEURL"/>
<xsl:value-of select="$pid"/> <xsl:text>/fedora/repository/</xsl:text>
<xsl:text>/PRE', label: '</xsl:text> <xsl:value-of select="$pid"/>
<xsl:value-of select="s:memberTitle"/> <xsl:text>/PRE', label: '</xsl:text>
<xsl:text>', onclick: function(){ window.location='</xsl:text> <xsl:value-of select="s:memberTitle"/>
<xsl:value-of select="$BASEURL" /> <xsl:text>', onclick: function(){ window.location='</xsl:text>
<xsl:text>/fedora/repository/</xsl:text> <xsl:value-of select="$BASEURL" />
<xsl:value-of select="$pid"/> <xsl:text>/fedora/repository/</xsl:text>
<xsl:text>';}}, <xsl:value-of select="$pid"/>
</xsl:text> <xsl:text>';}},
</xsl:for-each> </xsl:text>
<xsl:text> </xsl:for-each>
<xsl:text>
]; ];
var myCoverFlow = new YAHOO.ext.CoverFlow('coverFlowTest', {height: 300, width: 650, images: images}); var myCoverFlow = new YAHOO.ext.CoverFlow('coverFlowTest', {height: 300, width: 650, images: images});
@ -71,13 +73,14 @@
var myMoveLeftBtn = new YAHOO.widget.Button('moveLeftButton', {onclick: {fn: moveLeft, obj: myCoverFlow}}); var myMoveLeftBtn = new YAHOO.widget.Button('moveLeftButton', {onclick: {fn: moveLeft, obj: myCoverFlow}});
var myMoveRightBtn = new YAHOO.widget.Button('moveRightButton', {onclick: {fn: moveRight, obj: myCoverFlow}}); var myMoveRightBtn = new YAHOO.widget.Button('moveRightButton', {onclick: {fn: moveRight, obj: myCoverFlow}});
};</xsl:text> };
</script> </xsl:text>
<div class="title">Testing YUI's CoverFlow version 0.1 (beta)</div> </script>
<div id="coverFlowTest"/> <div class="title">Testing YUI's CoverFlow version 0.1 (beta)</div>
<input id="moveLeftButton" type="button" value="Select Next"/> <div id="coverFlowTest"/>
<input id="moveRightButton" type="button" value="Select Previous"/> <input id="moveLeftButton" type="button" value="Select Next"/>
<br/> <input id="moveRightButton" type="button" value="Select Previous"/>
<br/> <br/>
</xsl:template> <br/>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

427
collection_views/FLV-COLLECTION VIEW(2).xml

@ -1,65 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3" width="90%"> <table cellpadding="3" cellspacing="3" width="90%">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div STYLE="text-align: center;"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
</td>
</tr>
<!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
@ -79,134 +110,176 @@
</tr> </tr>
</xsl:for-each>- </xsl:for-each>-
--> -->
<xsl:apply-templates select="sparql/results"/> <xsl:apply-templates select="sparql/results"/>
</table><br clear="all" /> </table>
<div STYLE="text-align: center;"> <br clear="all" />
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="sparql/results"> <xsl:template match="sparql/results">
<xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="result"> <xsl:template match="result">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="title"/> <xsl:with-param name="text" select="title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="(content='Collection' or content='Community')"> <xsl:when test="(content='Collection' or content='Community')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="title"/> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:variable> <xsl:copy-of select="$PID"/>/OBJ/
<td valign="top" width="25%"> <xsl:value-of select="title"/>
<a> </xsl:otherwise>
<xsl:attribute name="href"> </xsl:choose>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> </xsl:variable>
</xsl:attribute> <td valign="top" width="25%">
<img> <a>
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:attribute name="alt"><xsl:value-of select="$newTitle"/> <xsl:copy-of select="$PID"/>/-/
</xsl:attribute> <xsl:value-of select="title"/>
</img> </a> <br clear="all" /> </xsl:attribute>
<a> <img>
<xsl:attribute name="href"> <xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:attribute> <xsl:value-of select="$PID"/>/TN
<xsl:value-of select="$newTitle"/> </xsl:attribute>
</a> <xsl:attribute name="alt">
<xsl:value-of select="$newTitle"/>
</xsl:attribute>
</img>
</a>
<br clear="all" />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="title"/>
</xsl:attribute>
<xsl:value-of select="$newTitle"/>
</a>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

407
collection_views/REFWORKS-COLLECTION_VIEW.xml

@ -1,65 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/> <xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3" width="90%"> <table cellpadding="3" cellspacing="3" width="90%">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div STYLE="text-align: center;"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
</td>
</tr>
<!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
@ -79,81 +110,114 @@
</tr> </tr>
</xsl:for-each>- </xsl:for-each>-
--> -->
<xsl:apply-templates select="s:sparql/s:results"/> <xsl:apply-templates select="s:sparql/s:results"/>
</table><br clear="all" /> </table>
<div STYLE="text-align: center;"> <br clear="all" />
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="s:sparql/s:results"> <xsl:template match="s:sparql/s:results">
<xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="s:result"> <xsl:template match="s:result">
<xsl:variable name='OBJECTURI' select="s:object/@uri"/> <xsl:variable name='OBJECTURI' select="s:object/@uri"/>
<xsl:variable name='CONTENTURI' select="s:content/@uri"/> <xsl:variable name='CONTENTURI' select="s:content/@uri"/>
<xsl:variable name='CONTENTMODEL' select="substring-after($CONTENTURI,'/')"/> <xsl:variable name='CONTENTMODEL' select="substring-after($CONTENTURI,'/')"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="s:title"/> <xsl:with-param name="text" select="s:title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="($CONTENTMODEL='islandora:collectionCModel')"> <xsl:when test="($CONTENTMODEL='islandora:collectionCModel')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="s:title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="s:title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="s:title"/> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="s:content"/> <xsl:copy-of select="$PID"/>/OBJ/
</xsl:variable> <xsl:value-of select="s:title"/>
<td valign="top" width="25%"> </xsl:otherwise>
</xsl:choose>
<xsl:value-of select="s:content"/>
</xsl:variable>
<td valign="top" width="25%">
<!-- <a> <!-- <a>
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> <xsl:attribute name="href"><xsl:value-of select="$linkUrl"/>
</xsl:attribute> </xsl:attribute>
@ -164,52 +228,55 @@
</xsl:attribute> </xsl:attribute>
</img> </a> <br clear="all" />--> </img> </a> <br clear="all" />-->
<br /><a> <br />
<xsl:attribute name="href"> <a>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="s:title"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$newTitle"/> <xsl:copy-of select="$PID"/>/-/
</a> <xsl:value-of select="s:title"/>
</xsl:attribute>
<xsl:value-of select="$newTitle"/>
</a>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

431
collection_views/SIMPLE-COLLECTION_VIEW.xml

@ -1,65 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/> <xsl:variable name="count" select="count(s:sparql/s:results/s:result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3" width="90%"> <table cellpadding="3" cellspacing="3" width="90%">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div STYLE="text-align: center;"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
</td>
</tr>
<!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
@ -79,137 +110,179 @@
</tr> </tr>
</xsl:for-each>- </xsl:for-each>-
--> -->
<xsl:apply-templates select="s:sparql/s:results"/> <xsl:apply-templates select="s:sparql/s:results"/>
</table><br clear="all" /> </table>
<div STYLE="text-align: center;"> <br clear="all" />
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="s:sparql/s:results"> <xsl:template match="s:sparql/s:results">
<xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="s:result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::s:result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="s:result"> <xsl:template match="s:result">
<xsl:variable name='OBJECTURI' select="s:object/@uri"/> <xsl:variable name='OBJECTURI' select="s:object/@uri"/>
<xsl:variable name='CONTENTURI' select="s:content/@uri"/> <xsl:variable name='CONTENTURI' select="s:content/@uri"/>
<xsl:variable name='CONTENTMODEL' select="substring-after($CONTENTURI,'/')"/> <xsl:variable name='CONTENTMODEL' select="substring-after($CONTENTURI,'/')"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="s:title"/> <xsl:with-param name="text" select="s:title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="($CONTENTMODEL='islandora:collectionCModel')"> <xsl:when test="($CONTENTMODEL='islandora:collectionCModel')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="s:title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="s:title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="s:title"/> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="s:content"/> <xsl:copy-of select="$PID"/>/OBJ/
</xsl:variable> <xsl:value-of select="s:title"/>
<td valign="top" width="25%"> </xsl:otherwise>
<a> </xsl:choose>
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> <xsl:value-of select="s:content"/>
</xsl:attribute> </xsl:variable>
<img> <td valign="top" width="25%">
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <a>
</xsl:attribute> <xsl:attribute name="href">
<xsl:attribute name="alt"><xsl:value-of select="$newTitle"/> <xsl:value-of select="$linkUrl"/>
</xsl:attribute> </xsl:attribute>
</img> </a> <br clear="all" /> <img>
<xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$PID"/>/TN
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$newTitle"/>
</xsl:attribute>
</img>
</a>
<br clear="all" />
<br /><a> <br />
<xsl:attribute name="href"> <a>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="s:title"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$newTitle"/> <xsl:copy-of select="$PID"/>/-/
</a> <xsl:value-of select="s:title"/>
</xsl:attribute>
<xsl:value-of select="$newTitle"/>
</a>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

118
collection_views/SmileyStuff-COLLECTION_VIEW.xml

@ -1,67 +1,69 @@
<xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/> <xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/>
<xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/> <xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/>
<center> <center>
<font face="arial,helvetica"> <font face="arial,helvetica">
<h2> <h2>
<xsl:value-of select="$collTitle"/> <xsl:value-of select="$collTitle"/>
<br/> <br/>
<i> <i>
<xsl:value-of select="$collDesc"/> <xsl:value-of select="$collDesc"/>
</i> </i>
</h2> </h2>
</font> </font>
</center> </center>
<hr size="1"/> <hr size="1"/>
<center> <center>
<table border="0" cellpadding="5"> <table border="0" cellpadding="5">
<xsl:for-each select="/s:sparql/s:results/s:result"> <xsl:for-each select="/s:sparql/s:results/s:result">
<xsl:variable name="pid" select="substring-after(s:member/@uri, '/')"/> <xsl:variable name="pid" select="substring-after(s:member/@uri, '/')"/>
<tr> <tr>
<td> <td>
<center> <center>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/> <xsl:value-of select="$pid"/>
<xsl:text>/FULL_SIZE</xsl:text> <xsl:text>/FULL_SIZE</xsl:text>
</xsl:attribute> </xsl:attribute>
<img height="120" width="160"> <img height="120" width="160">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/> <xsl:value-of select="$pid"/>
<xsl:text>/MEDIUM_SIZE</xsl:text> <xsl:text>/MEDIUM_SIZE</xsl:text>
</xsl:attribute> </xsl:attribute>
</img> </img>
<br/> <br/>
( Full Size ) ( Full Size )
</a> </a>
</center> </center>
</td> </td>
<td> <td>
<b> <b>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/>/-/<xsl:value-of select="s:memberTitle"/> <xsl:value-of select="$pid"/>/-/
</xsl:attribute> <xsl:value-of select="s:memberTitle"/>
<xsl:value-of select="s:memberTitle"/> </xsl:attribute>
</a> <xsl:value-of select="s:memberTitle"/>
</b> </a>
<br/> </b>
<xsl:value-of select="s:memberDesc"/> <br/>
</td> <xsl:value-of select="s:memberDesc"/>
</tr> </td>
</xsl:for-each> </tr>
</table> </xsl:for-each>
</table>
</center> </center>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

114
collection_views/Video-COLLECTION_VIEW.xml

@ -1,64 +1,66 @@
<xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/> <xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/>
<xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/> <xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/>
<center> <center>
<font face="arial,helvetica"> <font face="arial,helvetica">
<h2> <h2>
<xsl:value-of select="$collTitle"/> <xsl:value-of select="$collTitle"/>
<br/> <br/>
<i> <i>
<xsl:value-of select="$collDesc"/> <xsl:value-of select="$collDesc"/>
</i> </i>
</h2> </h2>
</font> </font>
</center> </center>
<hr size="1"/> <hr size="1"/>
<center> <center>
<table border="0" cellpadding="5"> <table border="0" cellpadding="5">
<xsl:for-each select="/s:sparql/s:results/s:result"> <xsl:for-each select="/s:sparql/s:results/s:result">
<xsl:variable name="pid" select="substring-after(s:member/@uri, '/')"/> <xsl:variable name="pid" select="substring-after(s:member/@uri, '/')"/>
<tr> <tr>
<td> <td>
<center> <center>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/> <xsl:value-of select="$pid"/>
</xsl:attribute> </xsl:attribute>
<img height="120" width="160"> <img height="120" width="160">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/> <xsl:value-of select="$pid"/>
<xsl:text>/THUMBNAIL</xsl:text> <xsl:text>/THUMBNAIL</xsl:text>
</xsl:attribute> </xsl:attribute>
</img> </img>
</a> </a>
</center> </center>
</td> </td>
<td> <td>
<b> <b>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/>/-/<xsl:value-of select="s:memberTitle"/> <xsl:value-of select="$pid"/>/-/
</xsl:attribute> <xsl:value-of select="s:memberTitle"/>
<xsl:value-of select="s:memberTitle"/> </xsl:attribute>
</a> <xsl:value-of select="s:memberTitle"/>
</b> </a>
<br/> </b>
<xsl:value-of select="s:memberDesc"/> <br/>
</td> <xsl:value-of select="s:memberDesc"/>
</tr> </td>
</xsl:for-each> </tr>
</table> </xsl:for-each>
</table>
</center> </center>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

287
collection_views/default-sparqltoHtml.xsl

@ -1,124 +1,189 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- DEFAULT XSLT FOR COLLECTIONS THAT DO NOT DEFINE THEIR OWN--> <!-- DEFAULT XSLT FOR COLLECTIONS THAT DO NOT DEFINE THEIR OWN-->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name='columns' select="4"/> <xsl:variable name='columns' select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table> <table>
<tr><td colspan="2"> <tr>
<div align="center"> <td colspan="2">
<xsl:choose> <div align="center">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</td></tr> </td>
<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> </tr>
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<tr> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<td> <tr>
<img> <td>
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <img>
</xsl:attribute> <xsl:attribute name="src">
</img> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</td><td> <xsl:value-of select="$PID"/>/TN
<a> </xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> </img>
</xsl:attribute> </td>
<xsl:value-of select="title"/> <td>
</a> <a>
</td></tr> <xsl:attribute name="href">
</xsl:for-each> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</table> <xsl:copy-of select="$PID"/>/-/
<div align="center"> <xsl:value-of select="title"/>
<xsl:choose> </xsl:attribute>
<xsl:when test="$end >= $count and $start = 1"> <xsl:value-of select="title"/>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> </a>
of <xsl:value-of select="$count"/>&#160;<br /> </td>
</xsl:when> </tr>
<xsl:when test="$end >= $count"> </xsl:for-each>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> </table>
of <xsl:value-of select="$count"/>&#160;<br /> <div align="center">
<a> <xsl:choose>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count and $start = 1">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
</xsl:when>
<xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

6
collection_views/demo_image_collection_dc_record.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Demo Image Collection</dc:title> <dc:title>Demo Image Collection</dc:title>
<dc:identifier>islandora:demo_image_collection</dc:identifier> <dc:identifier>islandora:demo_image_collection</dc:identifier>
<dc:description>Demo image collection</dc:description> <dc:description>Demo image collection</dc:description>
</oai_dc:dc> </oai_dc:dc>

36
collection_views/simple_list_view.xml

@ -1,28 +1,30 @@
<xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- simple list view for a itql query that looks queries for $object and $title only --> <!-- simple list view for a itql query that looks queries for $object and $title only -->
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<ul> <ul>
<xsl:for-each select="/s:sparql/s:results/s:result"> <xsl:for-each select="/s:sparql/s:results/s:result">
<xsl:variable name="pid" select="substring-after(s:object/@uri, '/')"/> <xsl:variable name="pid" select="substring-after(s:object/@uri, '/')"/>
<li> <li>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/>/-/<xsl:value-of select="s:title"/> <xsl:value-of select="$pid"/>/-/
</xsl:attribute> <xsl:value-of select="s:title"/>
<xsl:value-of select="s:title"/> </xsl:attribute>
</a> <xsl:value-of select="s:title"/>
</a>
</li> </li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

128
collection_views/standard_jpeg_collection_view.xml

@ -1,66 +1,68 @@
<xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:s="http://www.w3.org/2001/sw/DataAccess/rf1/result" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/> <xsl:variable name="collTitle" select="/s:sparql/s:results/s:result/s:collTitle"/>
<xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/> <xsl:variable name="collDesc" select="/s:sparql/s:results/s:result/s:collDesc"/>
<center> <center>
<font face="arial,helvetica"> <font face="arial,helvetica">
<h2> <h2>
<xsl:value-of select="$collTitle"/> <xsl:value-of select="$collTitle"/>
<br/> <br/>
<i> <i>
<xsl:value-of select="$collDesc"/> <xsl:value-of select="$collDesc"/>
</i> </i>
</h2> </h2>
</font> </font>
</center> </center>
<hr size="1"/> <hr size="1"/>
<center> <center>
<table border="0" cellpadding="5"> <table border="0" cellpadding="5">
<xsl:for-each select="/s:sparql/s:results/s:result"> <xsl:for-each select="/s:sparql/s:results/s:result">
<xsl:variable name="pid" select="substring-after(s:member/@uri, '/')"/> <xsl:variable name="pid" select="substring-after(s:member/@uri, '/')"/>
<tr> <tr>
<td> <td>
<center> <center>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/> <xsl:value-of select="$pid"/>
<xsl:text>/FULL_SIZE</xsl:text> <xsl:text>/FULL_SIZE</xsl:text>
</xsl:attribute> </xsl:attribute>
<img height="120" width="160"> <img height="120" width="160">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/> <xsl:value-of select="$pid"/>
<xsl:text>/MEDIUM_SIZE</xsl:text> <xsl:text>/MEDIUM_SIZE</xsl:text>
</xsl:attribute> </xsl:attribute>
</img> </img>
<br/> <br/>
( Full Size ) ( Full Size )
</a> </a>
</center> </center>
</td> </td>
<td> <td>
<b> <b>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/> <xsl:value-of select="$BASEURL"/>
<xsl:text>/fedora/repository/</xsl:text> <xsl:text>/fedora/repository/</xsl:text>
<xsl:value-of select="$pid"/>/-/<xsl:value-of select="s:memberTitle"/> <xsl:value-of select="$pid"/>/-/
</xsl:attribute> <xsl:value-of select="s:memberTitle"/>
<xsl:value-of select="s:memberTitle"/> </xsl:attribute>
</a> <xsl:value-of select="s:memberTitle"/>
</b> </a>
<br/> </b>
<xsl:value-of select="s:memberDesc"/> <br/>
</td> <xsl:value-of select="s:memberDesc"/>
</tr> </td>
</xsl:for-each> </tr>
</table> </xsl:for-each>
</center> </table>
</xsl:template> </center>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

20
collection_views/yui_coverflow/css/test.css

@ -1,18 +1,18 @@
body { body {
font-family: Arial; font-family: Arial;
font-size: 12px; font-size: 12px;
color: gray; color: gray;
background: black; background: black;
} }
.title { .title {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
} }
#coverFlowTest .coverFlowLabel { #coverFlowTest .coverFlowLabel {
margin-top: 10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
color: #C0C0C0; color: #C0C0C0;
font-weight: bold; font-weight: bold;
} }

1704
collection_views/yui_coverflow/js/CoverFlow.js vendored

File diff suppressed because it is too large Load Diff

105
collection_views/yui_coverflow/js/test.js vendored

@ -3,34 +3,83 @@
YAHOO.util.Event.onDOMReady(function(){ YAHOO.util.Event.onDOMReady(function(){
var images = [ var images = [
{src: 'images/ardillitaMac.jpg', label: 'Ardileta!', onclick: function(){alert('image1');}}, {
{src: 'http://farm2.static.flickr.com/1380/1426855399_b4b8eccbdb.jpg?v=0'}, src: 'images/ardillitaMac.jpg',
{src: 'http://farm1.static.flickr.com/69/213130158_0d1aa23576_d.jpg'}, label: 'Ardileta!',
{src: 'http://farm1.static.flickr.com/69/213130158_0d1aa23576_d.jpg'}, onclick: function(){
{src: 'images/msn2.jpg', label: 'My Mac'}, alert('image1');
{src: 'images/msn2.jpg', label: 'My Mac again...'} }
},
]; {
var myCoverFlow = new YAHOO.ext.CoverFlow('coverFlowTest', {height: 200, width: 600, images: images}); src: 'http://farm2.static.flickr.com/1380/1426855399_b4b8eccbdb.jpg?v=0'
},
function moveLeft(e, coverFlow){ {
coverFlow.selectNext(); src: 'http://farm1.static.flickr.com/69/213130158_0d1aa23576_d.jpg'
} },
function moveRight(e, coverFlow){ {
coverFlow.selectPrevious(); src: 'http://farm1.static.flickr.com/69/213130158_0d1aa23576_d.jpg'
} },
var myMoveLeftBtn = new YAHOO.widget.Button('moveLeftButton', {onclick: {fn: moveLeft, obj: myCoverFlow}}); {
var myMoveRightBtn = new YAHOO.widget.Button('moveRightButton', {onclick: {fn: moveRight, obj: myCoverFlow}}); src: 'images/msn2.jpg',
label: 'My Mac'
},
var otherImages = [ {
{src: 'images/ardillitaMac.jpg', label: 'Ardileta!', onclick: function(){alert('image1');}}, src: 'images/msn2.jpg',
{src: 'images/msn2.jpg', label: 'My Mac'}, label: 'My Mac again...'
{src: 'images/msn2.jpg', label: 'My Mac again...'} }
]; ];
var anotherCoverFlow = new YAHOO.ext.CoverFlow('anotherCoverFlowTest', {height: 150, width: 500, images: otherImages, bgColor: '#C0C0C0'}); var myCoverFlow = new YAHOO.ext.CoverFlow('coverFlowTest', {
height: 200,
width: 600,
images: images
});
function moveLeft(e, coverFlow){
coverFlow.selectNext();
}
function moveRight(e, coverFlow){
coverFlow.selectPrevious();
}
var myMoveLeftBtn = new YAHOO.widget.Button('moveLeftButton', {
onclick: {
fn: moveLeft,
obj: myCoverFlow
}
});
var myMoveRightBtn = new YAHOO.widget.Button('moveRightButton', {
onclick: {
fn: moveRight,
obj: myCoverFlow
}
});
var otherImages = [
{
src: 'images/ardillitaMac.jpg',
label: 'Ardileta!',
onclick: function(){
alert('image1');
}
},
{
src: 'images/msn2.jpg',
label: 'My Mac'
},
{
src: 'images/msn2.jpg',
label: 'My Mac again...'
}
];
var anotherCoverFlow = new YAHOO.ext.CoverFlow('anotherCoverFlowTest', {
height: 150,
width: 500,
images: otherImages,
bgColor: '#C0C0C0'
});

14
content_models/BASIC_AUDIO.xml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<content_model name="standard_qt"> <content_model name="standard_qt">
<mimetypes> <mimetypes>
<type>video/quicktime</type> <type>video/quicktime</type>
</mimetypes> </mimetypes>
<display_in_fieldset> <display_in_fieldset>
<datastream id="OBJ"> <datastream id="OBJ">
<method> <method>
@ -28,15 +28,15 @@
<methods/> <methods/>
</rule> </rule>
</ingest_rules> </ingest_rules>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method> <form_builder_method>
<file>plugins/QtFormBuilder.php</file> <file>plugins/QtFormBuilder.php</file>
<class_name>QtFormBuilder</class_name> <class_name>QtFormBuilder</class_name>
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Video Name</label> <label>Title/Caption/Video Name</label>
<name>dc:title</name> <name>dc:title</name>
@ -215,4 +215,4 @@
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

14
content_models/BASIC_VIDEO.xml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<content_model name="standard_qt"> <content_model name="standard_qt">
<mimetypes> <mimetypes>
<type>video/quicktime</type> <type>video/quicktime</type>
</mimetypes> </mimetypes>
<display_in_fieldset> <display_in_fieldset>
<datastream id="OBJ"> <datastream id="OBJ">
<method> <method>
@ -28,15 +28,15 @@
<methods/> <methods/>
</rule> </rule>
</ingest_rules> </ingest_rules>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method> <form_builder_method>
<file>plugins/QtFormBuilder.php</file> <file>plugins/QtFormBuilder.php</file>
<class_name>QtFormBuilder</class_name> <class_name>QtFormBuilder</class_name>
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Video Name</label> <label>Title/Caption/Video Name</label>
<name>dc:title</name> <name>dc:title</name>
@ -215,4 +215,4 @@
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

173
content_models/COLLECTIONCM.xml

@ -1,88 +1,89 @@
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Collection" version="2" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Collection" version="2" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>text/xml</type> <type>text/xml</type>
<type>text/plain</type> <type>text/plain</type>
<type>application/xml</type> <type>application/xml</type>
</mimetypes> </mimetypes>
<ingest_rules></ingest_rules> <ingest_rules></ingest_rules>
<datastreams> <datastreams>
<datastream dsid="DC"> <datastream dsid="DC">
<display_method class="CollectionClass" file="CollectionClass.inc" method="showFieldSets" module=""></display_method> <display_method class="CollectionClass" file="CollectionClass.inc" method="showFieldSets" module=""></display_method>
</datastream> </datastream>
<datastream dsid="TN"></datastream> <datastream dsid="TN"></datastream>
<datastream dsid="COLLECTION_POLICY"></datastream> <datastream dsid="COLLECTION_POLICY"></datastream>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method class="CollectionFormBuilder" file="plugins/CollectionFormBuilder.inc" handler="handleQDCForm" method="buildQDCForm" module=""></form_builder_method> <form_builder_method class="CollectionFormBuilder" file="plugins/CollectionFormBuilder.inc" handler="handleQDCForm" method="buildQDCForm" module=""></form_builder_method>
<form_elements> <form_elements>
<element label="Title/Caption/Object Name" name="dc:title" required="true" type="textfield"> <element label="Title/Caption/Object Name" name="dc:title" required="true" type="textfield">
<description>The name given to the resource</description> <description>The name given to the resource</description>
</element> </element>
<element label="Creator/Photographer/Author" name="dc:creator" type="textfield"> <element label="Creator/Photographer/Author" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Subject" name="dc:subject" type="select"> <element label="Subject" name="dc:subject" type="select">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
<authoritative_list> <authoritative_list>
<item>none</item> <item>none</item>
<item>Multi Media</item> <item>Multi Media</item>
<item>image</item> <item>image</item>
<item>meeting</item> <item>meeting</item>
<item>presentation</item> <item>presentation</item>
<item>sound</item> <item>sound</item>
<item>text</item> <item>text</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Description" name="dc:description" required="true" type="textarea"> <element label="Description" name="dc:description" required="true" type="textarea">
<description>Examples include an abstract, table of contents, or free-text account of the content of the resource.</description> <description>Examples include an abstract, table of contents, or free-text account of the content of the resource.</description>
</element> </element>
<element label="Publisher" name="dc:publisher" type="textfield"> <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
</element> </element>
<element label="Contributor" name="dc:contributor" type="textfield"> <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Date" name="dc:date" type="textfield"> <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
</element> </element>
<element label="Resource Type" name="dc:type" type="select"> <element label="Resource Type" name="dc:type" type="select">
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
<authoritative_list> <authoritative_list>
<item>none</item> <item>none</item>
<item>collection</item> <item>collection</item>
<item>dataset</item> <item>dataset</item>
<item>event</item> <item>event</item>
<item>image</item> <item>image</item>
<item>interactive resource</item> <item>interactive resource</item>
<item>model</item> <item>model</item>
<item>party</item> <item>party</item>
<item>physical object</item> <item>physical object</item>
<item>place</item> <item>place</item>
<item>service</item> <item>service</item>
<item>software</item> <item>software</item>
<item>sound</item> <item>sound</item>
<item>text</item> <item>text</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Source" name="dc:source" type="textfield"> <element label="Source" name="dc:source" type="textfield">
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
</element> </element>
<element label="Identifier" name="dc:identifier" type="textfield"> <element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
</element> </element>
<element label="Language" name="dc:language" type="select"> <element label="Language" name="dc:language" type="select">
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<authoritative_list> <authoritative_list>
<item field="eng">English</item> <item field="eng">English</item>
<item field="fre">French</item> <item field="fre">French</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Relation" name="dc:relation" type="textfield"> <element label="Relation" name="dc:relation" type="textfield">
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
</element> </element>
<element label="Rights Management" name="dc:rights" type="textarea"> <element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

323
content_models/FAS_slideCModel.xml

@ -1,166 +1,167 @@
<content_model name="standard_slide"> <content_model name="standard_slide">
<mimetypes> <mimetypes>
<type>image/tiff</type> <type>image/tiff</type>
<type>image/tif</type> <type>image/tif</type>
</mimetypes> </mimetypes>
<display_in_fieldset> <display_in_fieldset>
<datastream id="JPG"> <datastream id="JPG">
<method> <method>
<file>plugins/slide_viewer.inc</file> <file>plugins/slide_viewer.inc</file>
<class_name>ShowSlideStreamsInFieldSets</class_name> <class_name>ShowSlideStreamsInFieldSets</class_name>
<method_name>showJPG</method_name> <method_name>showJPG</method_name>
</method> </method>
</datastream> </datastream>
<datastream id="JP2"/> <datastream id="JP2"/>
<datastream id="FULL_SIZE"/> <datastream id="FULL_SIZE"/>
<datastream id="FULL_JPG"/> <datastream id="FULL_JPG"/>
</display_in_fieldset> </display_in_fieldset>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to> <applies_to>
image/tiff image/tiff
</applies_to> </applies_to>
<applies_to> <applies_to>
image/tif image/tif
</applies_to> </applies_to>
<methods> <methods>
<method> <method>
<file>plugins/ImageManipulation.inc</file> <file>plugins/ImageManipulation.inc</file>
<class_name>ImageManipulation</class_name> <class_name>ImageManipulation</class_name>
<method_name>createJP2</method_name> <method_name>createJP2</method_name>
<modified_files_ext>jp2</modified_files_ext> <modified_files_ext>jp2</modified_files_ext>
<datastream_id>JP2</datastream_id> <datastream_id>JP2</datastream_id>
</method> </method>
</methods> </methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method> <form_builder_method>
<file>plugins/DemoFormBuilder.inc</file> <file>plugins/DemoFormBuilder.inc</file>
<class_name>DemoFormBuilder</class_name> <class_name>DemoFormBuilder</class_name>
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Image Name</label> <label>Title/Caption/Image Name</label>
<name>dc:title</name> <name>dc:title</name>
<type>textfield</type> <type>textfield</type>
<description>The name given to the resource</description> <description>The name given to the resource</description>
<required>true</required> <required>true</required>
</element> </element>
<element> <element>
<label>Creator/Photographer</label> <label>Creator/Photographer</label>
<name>dc:creator</name> <name>dc:creator</name>
<type>textfield</type> <type>textfield</type>
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Subject</label> <label>Subject</label>
<name>dc:subject</name> <name>dc:subject</name>
<type>select</type> <type>select</type>
<description>Subject</description> <description>Subject</description>
<required>false</required> <required>false</required>
<authoritative_list> <authoritative_list>
<item> <item>
<field>image</field> <field>image</field>
<value>image</value> <value>image</value>
</item> </item>
<item> <item>
<field>photograph</field> <field>photograph</field>
<value>photograph</value> <value>photograph</value>
</item> </item>
<item> <item>
<field>presentation</field> <field>presentation</field>
<value>presentation</value> <value>presentation</value>
</item> </item>
<item> <item>
<field>art</field> <field>art</field>
<value>art</value> <value>art</value>
</item> </item>
</authoritative_list> </authoritative_list>
</element> </element>
<element> <element>
<label>Description</label> <label>Description</label>
<name>dc:description</name> <name>dc:description</name>
<type>textarea</type> <type>textarea</type>
<description>Description of the Image</description> <description>Description of the Image</description>
<required>true</required> <required>true</required>
</element> </element>
<element> <element>
<label>Publisher</label> <label>Publisher</label>
<name>dc:publisher</name> <name>dc:publisher</name>
<type>textfield</type> <type>textfield</type>
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Contributor</label> <label>Contributor</label>
<name>dc:contributor</name> <name>dc:contributor</name>
<type>textfield</type> <type>textfield</type>
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Date</label> <label>Date</label>
<name>dc:date</name> <name>dc:date</name>
<type>textfield</type> <type>textfield</type>
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Resource Type</label> <label>Resource Type</label>
<name>dc:type</name> <name>dc:type</name>
<type>textfield</type> <type>textfield</type>
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Source</label> <label>Source</label>
<name>dc:source</name> <name>dc:source</name>
<type>textfield</type> <type>textfield</type>
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Identifier</label> <label>Identifier</label>
<name>dc:identifier</name> <name>dc:identifier</name>
<type>textfield</type> <type>textfield</type>
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Language</label> <label>Language</label>
<name>dc:language</name> <name>dc:language</name>
<type>select</type> <type>select</type>
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<required>false</required> <required>false</required>
<authoritative_list> <authoritative_list>
<item> <item>
<field>eng</field> <field>eng</field>
<value>English</value> <value>English</value>
</item> </item>
<item> <item>
<field>fre</field> <field>fre</field>
<value>French</value> <value>French</value>
</item> </item>
</authoritative_list> </authoritative_list>
</element> </element>
<element> <element>
<label>Relation</label> <label>Relation</label>
<name>dc:relation</name> <name>dc:relation</name>
<type>textfield</type> <type>textfield</type>
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Rights Management</label> <label>Rights Management</label>
<name>dc:rights</name> <name>dc:rights</name>
<type>textarea</type> <type>textarea</type>
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
<required>false</required> <required>false</required>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

26
content_models/REFWORKSCM.xml

@ -7,14 +7,14 @@
<class_name>ShowStreamsInFieldSets</class_name> <class_name>ShowStreamsInFieldSets</class_name>
<method_name>showQdc</method_name> <method_name>showQdc</method_name>
</method> </method>
</datastream> </datastream>
<datastream id="refworks"> <datastream id="refworks">
<method> <method>
<file>plugins/ShowStreamsInFieldSets.inc</file> <file>plugins/ShowStreamsInFieldSets.inc</file>
<class_name>ShowStreamsInFieldSets</class_name> <class_name>ShowStreamsInFieldSets</class_name>
<method_name>showRefworks</method_name> <method_name>showRefworks</method_name>
</method> </method>
</datastream> </datastream>
<datastream id="romeo"> <datastream id="romeo">
<method> <method>
<file>plugins/ShowStreamsInFieldSets.inc</file> <file>plugins/ShowStreamsInFieldSets.inc</file>
@ -29,10 +29,10 @@
</datastream> </datastream>
</display_in_fieldset> </display_in_fieldset>
<mimetypes> <mimetypes>
<type>text/xml</type> <type>text/xml</type>
<type>text/plain</type> <type>text/plain</type>
<type>application/xml</type> <type>application/xml</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
@ -59,8 +59,8 @@
<method_name>buildForm</method_name> <method_name>buildForm</method_name>
<form_handler>handleForm</form_handler> <form_handler>handleForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Ingest</label> <label>Ingest</label>
<name>hiddenvalue</name> <name>hiddenvalue</name>

26
content_models/REFWORKSCM_1.xml

@ -7,14 +7,14 @@
<class_name>ShowStreamsInFieldSets</class_name> <class_name>ShowStreamsInFieldSets</class_name>
<method_name>showQdc</method_name> <method_name>showQdc</method_name>
</method> </method>
</datastream> </datastream>
<datastream id="refworks"> <datastream id="refworks">
<method> <method>
<file>plugins/ShowStreamsInFieldSets.inc</file> <file>plugins/ShowStreamsInFieldSets.inc</file>
<class_name>ShowStreamsInFieldSets</class_name> <class_name>ShowStreamsInFieldSets</class_name>
<method_name>showRefworks</method_name> <method_name>showRefworks</method_name>
</method> </method>
</datastream> </datastream>
<datastream id="romeo"> <datastream id="romeo">
<method> <method>
<file>plugins/ShowStreamsInFieldSets.inc</file> <file>plugins/ShowStreamsInFieldSets.inc</file>
@ -29,10 +29,10 @@
</datastream> </datastream>
</display_in_fieldset> </display_in_fieldset>
<mimetypes> <mimetypes>
<type>text/xml</type> <type>text/xml</type>
<type>text/plain</type> <type>text/plain</type>
<type>application/xml</type> <type>application/xml</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
@ -59,8 +59,8 @@
<method_name>buildForm</method_name> <method_name>buildForm</method_name>
<form_handler>handleForm</form_handler> <form_handler>handleForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Ingest</label> <label>Ingest</label>
<name>hiddenvalue</name> <name>hiddenvalue</name>

184
content_models/STANDARD JPG.xml

@ -1,95 +1,95 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_jpeg" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_jpeg" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>image/jpeg</type> <type>image/jpeg</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to>image/jpeg</applies_to> <applies_to>image/jpeg</applies_to>
<ingest_methods> <ingest_methods>
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> <ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="width">160</parameter> <parameter name="width">160</parameter>
<parameter name="height">120</parameter> <parameter name="height">120</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="TN" modified_files_ext="jpg"> <ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="TN" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="width">120</parameter> <parameter name="width">120</parameter>
<parameter name="height">120</parameter> <parameter name="height">120</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
</ingest_methods> </ingest_methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<datastreams> <datastreams>
<datastream dsid="MEDIUM_SIZE"> <datastream dsid="MEDIUM_SIZE">
<display_method module="" file="plugins/ShowDemoStreamsInFieldSets.inc" class="ShowDemoStreamsInFieldSets" method="showMediumSize"/> <display_method module="" file="plugins/ShowDemoStreamsInFieldSets.inc" class="ShowDemoStreamsInFieldSets" method="showMediumSize"/>
</datastream> </datastream>
<datastream dsid="QDC"> <datastream dsid="QDC">
<display_method module="" file="plugins/ShowStreamsInFieldSets.inc" class="ShowStreamsInFieldSets" method="showQdc"/> <display_method module="" file="plugins/ShowStreamsInFieldSets.inc" class="ShowStreamsInFieldSets" method="showQdc"/>
</datastream> </datastream>
<datastream dsid="FULL_SIZE"> <datastream dsid="FULL_SIZE">
<add_datastream_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> <add_datastream_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="width">120</parameter> <parameter name="width">120</parameter>
<parameter name="height">160</parameter> <parameter name="height">160</parameter>
</parameters> </parameters>
</add_datastream_method> </add_datastream_method>
</datastream> </datastream>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method module="" file="plugins/DemoFormBuilder.inc" class="DemoFormBuilder" method="buildQDCForm" handler="handleQDCForm"/> <form_builder_method module="" file="plugins/DemoFormBuilder.inc" class="DemoFormBuilder" method="buildQDCForm" handler="handleQDCForm"/>
<form_elements> <form_elements>
<element label="Title/Caption/Image Name" name="dc:title" type="textfield" required="true"> <element label="Title/Caption/Image Name" name="dc:title" type="textfield" required="true">
<description>The name given to the resource</description> <description>The name given to the resource</description>
</element> </element>
<element label="Creator/Photographer" name="dc:creator" type="textfield"> <element label="Creator/Photographer" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Subject" name="dc:subject" type="select"> <element label="Subject" name="dc:subject" type="select">
<description>Subject</description> <description>Subject</description>
<authoritative_list> <authoritative_list>
<item>image</item> <item>image</item>
<item>photograph</item> <item>photograph</item>
<item>presentation</item> <item>presentation</item>
<item>art</item> <item>art</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Description" name="dc:description" type="textarea" required="true"> <element label="Description" name="dc:description" type="textarea" required="true">
<description>Description of the Image</description> <description>Description of the Image</description>
</element> </element>
<element label="Publisher" name="dc:publisher" type="textfield"> <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
</element> </element>
<element label="Contributor" name="dc:contributor" type="textfield"> <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Date" name="dc:date" type="textfield"> <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
</element> </element>
<element label="Resource Type" name="dc:type" type="textfield"> <element label="Resource Type" name="dc:type" type="textfield">
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
</element> </element>
<element label="Source" name="dc:source" type="textfield"> <element label="Source" name="dc:source" type="textfield">
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
</element> </element>
<element label="Identifier" name="dc:identifier" type="textfield"> <element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
</element> </element>
<element label="Language" name="dc:language" type="select"> <element label="Language" name="dc:language" type="select">
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<authoritative_list> <authoritative_list>
<item field="eng">English</item> <item field="eng">English</item>
<item field="fre">French</item> <item field="fre">French</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Relation" name="dc:relation" type="textfield"> <element label="Relation" name="dc:relation" type="textfield">
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
</element> </element>
<element label="Rights Management" name="dc:rights" type="textarea"> <element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

14
content_models/STANDARD PDF.xml

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<content_model name="standard_pdf"> <content_model name="standard_pdf">
<mimetypes> <mimetypes>
<type>application/pdf</type> <type>application/pdf</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to> <applies_to>
application/pdf application/pdf
</applies_to> </applies_to>
<methods> <methods>
<method> <method>
<file>plugins/ImageManipulation.inc</file> <file>plugins/ImageManipulation.inc</file>
<class_name>ImageManipulation</class_name> <class_name>ImageManipulation</class_name>
@ -32,7 +32,7 @@
</disseminator> </disseminator>
</disseminators> </disseminators>
</rule> </rule>
</ingest_rules>a868aef684fa34923d4fe697db1e785b </ingest_rules>a868aef684fa34923d4fe697db1e785b
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method> <form_builder_method>
<file>plugins/FormBuilder.inc</file> <file>plugins/FormBuilder.inc</file>
@ -40,8 +40,8 @@
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Object Name</label> <label>Title/Caption/Object Name</label>
<name>dc:title</name> <name>dc:title</name>
@ -233,4 +233,4 @@
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

14
content_models/STANDARD_FLVCM.xml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<content_model name="standard_flv"> <content_model name="standard_flv">
<mimetypes> <mimetypes>
<type>video/x-flv</type> <type>video/x-flv</type>
</mimetypes> </mimetypes>
<display_in_fieldset> <display_in_fieldset>
<datastream id="FLV"> <datastream id="FLV">
<method> <method>
@ -28,15 +28,15 @@
<methods/> <methods/>
</rule> </rule>
</ingest_rules> </ingest_rules>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method> <form_builder_method>
<file>plugins/FlvFormBuilder.inc</file> <file>plugins/FlvFormBuilder.inc</file>
<class_name>FlvFormBuilder</class_name> <class_name>FlvFormBuilder</class_name>
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Video Name</label> <label>Title/Caption/Video Name</label>
<name>dc:title</name> <name>dc:title</name>
@ -215,4 +215,4 @@
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

18
content_models/STANDARD_IMAGECM.xml

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<content_model name="standard_image"> <content_model name="standard_image">
<mimetypes> <mimetypes>
<type>image/jpeg</type> <type>image/jpeg</type>
<type>image/gif</type> <type>image/gif</type>
<type>image/png</type> <type>image/png</type>
<type>image/tiff</type> <type>image/tiff</type>
<type>image/tif</type> <type>image/tif</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
@ -29,7 +29,7 @@
<method> <method>
<file>plugins/ImageManipulation.inc</file> <file>plugins/ImageManipulation.inc</file>
<class_name>ImageManipulation</class_name> <class_name>ImageManipulation</class_name>
<method_name>createThumbnail</method_name> <method_name>createThumbnail</method_name>
<modified_files_ext>jpg</modified_files_ext> <modified_files_ext>jpg</modified_files_ext>
<datastream_id>TN</datastream_id> <datastream_id>TN</datastream_id>
<parameters> <parameters>
@ -43,7 +43,7 @@
<method_name>createPNG</method_name> <method_name>createPNG</method_name>
<modified_files_ext>png</modified_files_ext> <modified_files_ext>png</modified_files_ext>
<datastream_id>PNG</datastream_id> <datastream_id>PNG</datastream_id>
</method> </method>
<method> <method>
<file>plugins/ImageManipulation.inc</file> <file>plugins/ImageManipulation.inc</file>
<class_name>ImageManipulation</class_name> <class_name>ImageManipulation</class_name>
@ -67,7 +67,7 @@
</disseminator> </disseminator>
</disseminators> </disseminators>
</rule> </rule>
</ingest_rules>a868aef684fa34923d4fe697db1e785b </ingest_rules>a868aef684fa34923d4fe697db1e785b
<ingest_form dsid='QDC' page="2"> <ingest_form dsid='QDC' page="2">
<form_builder_method> <form_builder_method>
<file>plugins/FormBuilder.inc</file> <file>plugins/FormBuilder.inc</file>
@ -75,8 +75,8 @@
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
<!--need validation method as well--> <!--need validation method as well-->
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Object Name</label> <label>Title/Caption/Object Name</label>
<name>dc:title</name> <name>dc:title</name>
@ -268,4 +268,4 @@
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

184
content_models/STANDARD_JPG.xml

@ -1,95 +1,95 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_jpeg" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_jpeg" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>image/jpeg</type> <type>image/jpeg</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to>image/jpeg</applies_to> <applies_to>image/jpeg</applies_to>
<ingest_methods> <ingest_methods>
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> <ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="width">160</parameter> <parameter name="width">160</parameter>
<parameter name="height">120</parameter> <parameter name="height">120</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
<ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="TN" modified_files_ext="jpg"> <ingest_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="TN" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="width">120</parameter> <parameter name="width">120</parameter>
<parameter name="height">120</parameter> <parameter name="height">120</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
</ingest_methods> </ingest_methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<datastreams> <datastreams>
<datastream dsid="MEDIUM_SIZE"> <datastream dsid="MEDIUM_SIZE">
<display_method module="" file="plugins/ShowDemoStreamsInFieldSets.inc" class="ShowDemoStreamsInFieldSets" method="showMediumSize"/> <display_method module="" file="plugins/ShowDemoStreamsInFieldSets.inc" class="ShowDemoStreamsInFieldSets" method="showMediumSize"/>
</datastream> </datastream>
<datastream dsid="QDC"> <datastream dsid="QDC">
<display_method module="" file="plugins/ShowStreamsInFieldSets.inc" class="ShowStreamsInFieldSets" method="showQdc"/> <display_method module="" file="plugins/ShowStreamsInFieldSets.inc" class="ShowStreamsInFieldSets" method="showQdc"/>
</datastream> </datastream>
<datastream dsid="FULL_SIZE"> <datastream dsid="FULL_SIZE">
<add_datastream_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg"> <add_datastream_method module="" file="plugins/ImageManipulation.inc" class="ImageManipulation" method="manipulateImage" dsid="MEDIUM_SIZE" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="width">120</parameter> <parameter name="width">120</parameter>
<parameter name="height">160</parameter> <parameter name="height">160</parameter>
</parameters> </parameters>
</add_datastream_method> </add_datastream_method>
</datastream> </datastream>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method module="" file="plugins/DemoFormBuilder.inc" class="DemoFormBuilder" method="buildQDCForm" handler="handleQDCForm"/> <form_builder_method module="" file="plugins/DemoFormBuilder.inc" class="DemoFormBuilder" method="buildQDCForm" handler="handleQDCForm"/>
<form_elements> <form_elements>
<element label="Title/Caption/Image Name" name="dc:title" type="textfield" required="true"> <element label="Title/Caption/Image Name" name="dc:title" type="textfield" required="true">
<description>The name given to the resource</description> <description>The name given to the resource</description>
</element> </element>
<element label="Creator/Photographer" name="dc:creator" type="textfield"> <element label="Creator/Photographer" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Subject" name="dc:subject" type="select"> <element label="Subject" name="dc:subject" type="select">
<description>Subject</description> <description>Subject</description>
<authoritative_list> <authoritative_list>
<item>image</item> <item>image</item>
<item>photograph</item> <item>photograph</item>
<item>presentation</item> <item>presentation</item>
<item>art</item> <item>art</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Description" name="dc:description" type="textarea" required="true"> <element label="Description" name="dc:description" type="textarea" required="true">
<description>Description of the Image</description> <description>Description of the Image</description>
</element> </element>
<element label="Publisher" name="dc:publisher" type="textfield"> <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
</element> </element>
<element label="Contributor" name="dc:contributor" type="textfield"> <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Date" name="dc:date" type="textfield"> <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
</element> </element>
<element label="Resource Type" name="dc:type" type="textfield"> <element label="Resource Type" name="dc:type" type="textfield">
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
</element> </element>
<element label="Source" name="dc:source" type="textfield"> <element label="Source" name="dc:source" type="textfield">
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
</element> </element>
<element label="Identifier" name="dc:identifier" type="textfield"> <element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
</element> </element>
<element label="Language" name="dc:language" type="select"> <element label="Language" name="dc:language" type="select">
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<authoritative_list> <authoritative_list>
<item field="eng">English</item> <item field="eng">English</item>
<item field="fre">French</item> <item field="fre">French</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Relation" name="dc:relation" type="textfield"> <element label="Relation" name="dc:relation" type="textfield">
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
</element> </element>
<element label="Rights Management" name="dc:rights" type="textarea"> <element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

251
content_models/STANDARD_QT.xml

@ -1,137 +1,148 @@
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_qt" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_qt" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>video/quicktime</type> <type>video/quicktime</type>
<type>video/mp4</type> <type>video/mp4</type>
<type>audio/mp3</type> <type>audio/mp3</type>
<type>audio/x-aiff</type> <type>audio/x-aiff</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to>video/quicktime</applies_to> <applies_to>video/quicktime</applies_to>
<applies_to>video/mp4</applies_to> <applies_to>video/mp4</applies_to>
<applies_to>audio/mp3</applies_to> <applies_to>audio/mp3</applies_to>
<applies_to>audio/x-aiff</applies_to> <applies_to>audio/x-aiff</applies_to>
<ingest_methods> <ingest_methods>
<ingest_method file="plugins/Exiftool.inc" class="Exiftool" method="extractMetadata" dsid="OBJ_EXIFTOOL" modified_files_ext=""> <ingest_method file="plugins/Exiftool.inc" class="Exiftool" method="extractMetadata" dsid="OBJ_EXIFTOOL" modified_files_ext="">
<parameters></parameters> <parameters></parameters>
</ingest_method> </ingest_method>
<ingest_method class="Ffmpeg" dsid="FULL_SIZE" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg"> <ingest_method class="Ffmpeg" dsid="FULL_SIZE" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg">
<parameters> <parameters>
</parameters> </parameters>
</ingest_method> </ingest_method>
<ingest_method class="Ffmpeg" dsid="TN" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg"> <ingest_method class="Ffmpeg" dsid="TN" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="s">92x92</parameter> <parameter name="s">92x92</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
</ingest_methods> </ingest_methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<datastreams> <datastreams>
<datastream dsid="OBJ"> <datastream dsid="OBJ">
<display_method class="ShowQtStreamsInFieldSets" file="plugins/qt_viewer.inc" method="showQt" module=""></display_method> <display_method class="ShowQtStreamsInFieldSets" file="plugins/qt_viewer.inc" method="showQt" module=""></display_method>
</datastream> </datastream>
<datastream dsid="PROXY"></datastream> <datastream dsid="PROXY"></datastream>
<datastream dsid="OBJ_EXIFTOOL"></datastream> <datastream dsid="OBJ_EXIFTOOL"></datastream>
<datastream dsid="TN"></datastream> <datastream dsid="TN"></datastream>
<datastream dsid="FULL_SIZE"></datastream> <datastream dsid="FULL_SIZE"></datastream>
<datastream dsid="QDC"> <datastream dsid="QDC">
<display_method class="ShowStreamsInFieldSets" file="plugins/ShowStreamsInFieldSets.inc" method="showQdc" module=""></display_method> <display_method class="ShowStreamsInFieldSets" file="plugins/ShowStreamsInFieldSets.inc" method="showQdc" module=""></display_method>
</datastream> </datastream>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method class="QtFormBuilder" file="plugins/QtFormBuilder.php" handler="handleQDCForm" method="buildQDCForm" module=""></form_builder_method> <form_builder_method class="QtFormBuilder" file="plugins/QtFormBuilder.php" handler="handleQDCForm" method="buildQDCForm" module=""></form_builder_method>
<form_elements> <form_elements>
<element label="Title/Caption/Media Name" name="dc:title" required="true" type="textfield"> <element label="Title/Caption/Media Name" name="dc:title" required="true" type="textfield">
<description>The name given to the file</description> <description>The name given to the file</description>
</element> </element>
<element label="Creator/" name="dc:creator" type="textfield"> <element label="Creator/" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the <description>An entity primarily responsible for making the
content of the resource such as a person, organization or content of the resource such as a person, organization or
service.</description> service.
</element> </description>
<element label="Subject" name="dc:subject" type="select"> </element>
<description>An entity primarily responsible for making the <element label="Subject" name="dc:subject" type="select">
<description>An entity primarily responsible for making the
content of the resource such as a person, organization or content of the resource such as a person, organization or
service.</description> service.
<authoritative_list> </description>
<item>home recording</item> <authoritative_list>
<item>meeting</item> <item>home recording</item>
<item>presentation</item> <item>meeting</item>
<item>sound</item> <item>presentation</item>
</authoritative_list> <item>sound</item>
</element> </authoritative_list>
<element label="Description of Media" name="dc:description" required="true" type="textarea"> </element>
<description>Examples include an abstract, table of <element label="Description of Media" name="dc:description" required="true" type="textarea">
<description>Examples include an abstract, table of
contents, or free-text account of the content of the contents, or free-text account of the content of the
resource.</description> resource.
</element> </description>
<element label="Publisher" name="dc:publisher" type="textfield"> </element>
<description>An entity, (including persons, organizations, <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations,
or services), responsible for making the resource or services), responsible for making the resource
available.</description> available.
</element> </description>
<element label="Contributor" name="dc:contributor" type="textfield"> </element>
<description>An entity responsible for contributing to the <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the
content of the resource such as a person, organization or content of the resource such as a person, organization or
service.</description> service.
</element> </description>
<element label="Date" name="dc:date" type="textfield"> </element>
<description>Temporal scope of the content if known. Date <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date
format is YYYY-MM-DD (e.g. 1890,1910-10,or format is YYYY-MM-DD (e.g. 1890,1910-10,or
2007-10-23)</description> 2007-10-23)
</element> </description>
<element label="Resource Type" name="dc:type" type="select"> </element>
<description>Genre of the content of the resource. Examples <element label="Resource Type" name="dc:type" type="select">
<description>Genre of the content of the resource. Examples
include: home page, novel, poem, working paper, technical include: home page, novel, poem, working paper, technical
report, essay, dictionary.</description> report, essay, dictionary.
<authoritative_list> </description>
<item>none</item> <authoritative_list>
<item>video</item> <item>none</item>
<item>event</item> <item>video</item>
<item>image</item> <item>event</item>
<item>interactive resource</item> <item>image</item>
<item>model</item> <item>interactive resource</item>
<item>party</item> <item>model</item>
<item>physical object</item> <item>party</item>
<item>place</item> <item>physical object</item>
<item>service</item> <item>place</item>
<item>software</item> <item>service</item>
<item>sound</item> <item>software</item>
<item>text</item> <item>sound</item>
</authoritative_list> <item>text</item>
</element> </authoritative_list>
<element label="Source" name="dc:source" type="textfield"> </element>
<description>A reference to a resource from which the <element label="Source" name="dc:source" type="textfield">
present resource is derived.</description> <description>A reference to a resource from which the
</element> present resource is derived.
<element label="Identifier" name="dc:identifier" type="textfield"> </description>
<description>A unique reference to the resource; In this </element>
<element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this
instance, the accession number or collection instance, the accession number or collection
number.</description> number.
</element> </description>
<element label="Language" name="dc:language" type="select"> </element>
<description>The language of the intellectual content of <element label="Language" name="dc:language" type="select">
the resource.</description> <description>The language of the intellectual content of
<authoritative_list> the resource.
<item field="eng">English</item> </description>
<item field="fre">French</item> <authoritative_list>
</authoritative_list> <item field="eng">English</item>
</element> <item field="fre">French</item>
<element label="Relation" name="dc:relation" type="textfield"> </authoritative_list>
<description>Reference to a related resource.</description> </element>
</element> <element label="Relation" name="dc:relation" type="textfield">
<element label="Rights Management" name="dc:rights" type="textarea"> <description>Reference to a related resource.</description>
<description>Information about intellectual property </element>
<element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property
rights, copyright, and various property rights, copyright, and various property
rights.</description> rights.
</element> </description>
</form_elements> </element>
</ingest_form> </form_elements>
</ingest_form>
</content_model> </content_model>

205
content_models/STRICT_PDFCM.xml

@ -1,107 +1,108 @@
<content_model name="strict_pdf" 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="strict_pdf" xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>application/pdf</type> <type>application/pdf</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to>application/pdf</applies_to> <applies_to>application/pdf</applies_to>
<ingest_methods> <ingest_methods>
<ingest_method class="ImageManipulation" dsid="TN" file="plugins/ImageManipulation.inc" <ingest_method class="ImageManipulation" dsid="TN" file="plugins/ImageManipulation.inc"
method="createThumbnailFromPDF" modified_files_ext="jpg" module=""> method="createThumbnailFromPDF" modified_files_ext="jpg" module="">
<parameters> <parameters>
<parameter name="width">100</parameter> <parameter name="width">100</parameter>
<parameter name="height">120</parameter> <parameter name="height">120</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
</ingest_methods> </ingest_methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<datastreams> <datastreams>
<datastream dsid="TN"> <datastream dsid="TN">
<display_method class="ShowStreamsInFieldSets" file="plugins/ShowStreamsInFieldSets.inc" method="showPDFPreview" module=""/> <display_method class="ShowStreamsInFieldSets" file="plugins/ShowStreamsInFieldSets.inc" method="showPDFPreview" module=""/>
</datastream> </datastream>
<datastream dsid="OBJ"> <datastream dsid="OBJ">
<add_datastream_method class="ImageManipulation" dsid="TN" file="plugins/ImageManipulation.inc" <add_datastream_method class="ImageManipulation" dsid="TN" file="plugins/ImageManipulation.inc"
method="createThumbnailFromPDF" modified_files_ext="jpg" module=""> method="createThumbnailFromPDF" modified_files_ext="jpg" module="">
<parameters> <parameters>
<parameter name="width">100</parameter> <parameter name="width">100</parameter>
<parameter name="height">120</parameter> <parameter name="height">120</parameter>
</parameters> </parameters>
</add_datastream_method> </add_datastream_method>
</datastream> </datastream>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method class="FormBuilder" file="plugins/FormBuilder.inc" handler="handleQDCForm" <form_builder_method class="FormBuilder" file="plugins/FormBuilder.inc" handler="handleQDCForm"
method="buildQDCForm" module=""/> method="buildQDCForm" module=""/>
<form_elements> <form_elements>
<element label="Title/Caption/Object Name" name="dc:title" required="true" type="textfield"> <element label="Title/Caption/Object Name" name="dc:title" required="true" type="textfield">
<description>The name given to the resource</description> <description>The name given to the resource</description>
</element> </element>
<element label="Creator/Photographer/Author" name="dc:creator" type="textfield"> <element label="Creator/Photographer/Author" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Subject" name="dc:subject" type="select"> <element label="Subject" name="dc:subject" type="select">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
<authoritative_list> <authoritative_list>
<item>experiment session</item> <item>experiment session</item>
<item>home recording</item> <item>home recording</item>
<item>image</item> <item>image</item>
<item>meeting</item> <item>meeting</item>
<item>presentation</item> <item>presentation</item>
<item>sound</item> <item>sound</item>
<item>text</item> <item>text</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Description" name="dc:description" required="true" type="textarea"> <element label="Description" name="dc:description" required="true" type="textarea">
<description>Examples include an abstract, table of contents, or free-text account of the content of the resource.</description> <description>Examples include an abstract, table of contents, or free-text account of the content of the resource.</description>
</element> </element>
<element label="Publisher" name="dc:publisher" type="textfield"> <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
</element> </element>
<element label="Contributor" name="dc:contributor" type="textfield"> <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Date" name="dc:date" type="textfield"> <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
</element> </element>
<element label="Resource Type" name="dc:type" type="select"> <element label="Resource Type" name="dc:type" type="select">
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
<authoritative_list> <authoritative_list>
<item>none</item> <item>none</item>
<item>collection</item> <item>collection</item>
<item>dataset</item> <item>dataset</item>
<item>event</item> <item>event</item>
<item>image</item> <item>image</item>
<item>interactive resource</item> <item>interactive resource</item>
<item>model</item> <item>model</item>
<item>party</item> <item>party</item>
<item>physical object</item> <item>physical object</item>
<item>place</item> <item>place</item>
<item>service</item> <item>service</item>
<item>software</item> <item>software</item>
<item>sound</item> <item>sound</item>
<item>text</item> <item>text</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Source" name="dc:source" type="textfield"> <element label="Source" name="dc:source" type="textfield">
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
</element> </element>
<element label="Identifier" name="dc:identifier" type="textfield"> <element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
</element> </element>
<element label="Language" name="dc:language" type="select"> <element label="Language" name="dc:language" type="select">
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<authoritative_list> <authoritative_list>
<item field="eng">English</item> <item field="eng">English</item>
<item field="fre">French</item> <item field="fre">French</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Relation" name="dc:relation" type="textfield"> <element label="Relation" name="dc:relation" type="textfield">
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
</element> </element>
<element label="Rights Management" name="dc:rights" type="textarea"> <element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>

108
content_models/demo_Collection.xml

@ -1,65 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="demo:Collection" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="demo:Collection" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Definition Object (Collection) for Image Collection Demo"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Definition Object (Collection) for Image Collection Demo"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.712Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.712Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2011-03-29T14:15:20.712Z</audit:date> <audit:date>2011-03-29T14:15:20.712Z</audit:date>
<audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDefObjects/demo_Collection.xml</audit:justification> <audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDefObjects/demo_Collection.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.125Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.125Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="432"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="432">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Service Definition Object (Collection) for Image Collection Demo</dc:title> <dc:title>Service Definition Object (Collection) for Image Collection Demo</dc:title>
<dc:identifier>demo:Collection</dc:identifier> <dc:identifier>demo:Collection</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.125Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.125Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="404"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="404">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/demo:Collection"> <rdf:Description rdf:about="info:fedora/demo:Collection">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.125Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.125Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP1.0" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP1.0" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="401"> MIMETYPE="text/xml" SIZE="401">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="MethodMap - Collection of Objects" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="MethodMap - Collection of Objects" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationLabel="An xml list of members in the collection" operationName="list"/> <fmm:Method operationLabel="An xml list of members in the collection" operationName="list"/>
<fmm:Method operationLabel="An html representation of the collection" operationName="view"/> <fmm:Method operationLabel="An html representation of the collection" operationName="view"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

348
content_models/demo_CollectionImpl.xml

@ -1,196 +1,196 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="demo:CollectionImpl" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="demo:CollectionImpl" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Deployment Object (Collection) for Image Collection Demo"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Deployment Object (Collection) for Image Collection Demo"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.819Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.819Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2011-03-29T14:15:20.819Z</audit:date> <audit:date>2011-03-29T14:15:20.819Z</audit:date>
<audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDepObjects/demo_CollectionImpl.xml</audit:justification> <audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDepObjects/demo_CollectionImpl.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="494"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="494">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Service Deployment Object (Collection) for Image Collection Demo</dc:title> <dc:title>Service Deployment Object (Collection) for Image Collection Demo</dc:title>
<dc:identifier>demo:ImageCollectionImpl</dc:identifier> <dc:identifier>demo:ImageCollectionImpl</dc:identifier>
<dc:identifier>demo:CollectionImpl</dc:identifier> <dc:identifier>demo:CollectionImpl</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="674"> ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="674">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/demo:CollectionImpl"> <rdf:Description rdf:about="info:fedora/demo:CollectionImpl">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/>
<fedora-model:isDeploymentOf rdf:resource="info:fedora/demo:Collection"/> <fedora-model:isDeploymentOf rdf:resource="info:fedora/demo:Collection"/>
<fedora-model:isContractorOf rdf:resource="info:fedora/demo:DualResImageCollection"/> <fedora-model:isContractorOf rdf:resource="info:fedora/demo:DualResImageCollection"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="1948"> MIMETYPE="text/xml" SIZE="1948">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="MethodMap - Image Collection" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="MethodMap - Image Collection" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationLabel="An html representation of the collection" operationName="view" <fmm:Method operationLabel="An html representation of the collection" operationName="view"
wsdlMsgName="viewRequest" wsdlMsgOutput="dissemResponse"> wsdlMsgName="viewRequest" wsdlMsgOutput="dissemResponse">
<fmm:DatastreamInputParm label="Stylesheet to transform LIST into html" parmName="XSLT" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm label="Stylesheet to transform LIST into html" parmName="XSLT" passBy="URL_REF" required="true"/>
<fmm:DatastreamInputParm label="The result of the list dissemination as a datastream" parmName="LIST" <fmm:DatastreamInputParm label="The result of the list dissemination as a datastream" parmName="LIST"
passBy="URL_REF" required="true"/> passBy="URL_REF" required="true"/>
<fmm:DefaultInputParm defaultValue="yes" label="Whether to reload the stylesheet each time" <fmm:DefaultInputParm defaultValue="yes" label="Whether to reload the stylesheet each time"
parmName="CLEAR_CACHE" passBy="VALUE" required="true"/> parmName="CLEAR_CACHE" passBy="VALUE" required="true"/>
<fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="text/html"/> <fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="text/html"/>
</fmm:Method> </fmm:Method>
<fmm:Method operationLabel="An xml list of members in the collection" operationName="list" <fmm:Method operationLabel="An xml list of members in the collection" operationName="list"
wsdlMsgName="listRequest" wsdlMsgOutput="dissemResponse"> wsdlMsgName="listRequest" wsdlMsgOutput="dissemResponse">
<fmm:DatastreamInputParm defaultValue="" label="" parmName="QUERY" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm defaultValue="" label="" parmName="QUERY" passBy="URL_REF" required="true"/>
<fmm:DefaultInputParm defaultValue="tuples" label="" parmName="TYPE" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="tuples" label="" parmName="TYPE" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="itql" label="" parmName="LANG" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="itql" label="" parmName="LANG" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="Sparql" label="" parmName="FORMAT" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="Sparql" label="" parmName="FORMAT" passBy="VALUE" required="true"/>
<fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="text/xml"/> <fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="text/xml"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2004-12-17T15:32:11.000Z" <foxml:datastreamVersion CREATED="2004-12-17T15:32:11.000Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="1194"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="1194">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="Datastream Input Specification for Image Collection" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="Datastream Input Specification for Image Collection" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="XSLT"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="XSLT">
<fbs:DSInputLabel>XSLT Binding</fbs:DSInputLabel> <fbs:DSInputLabel>XSLT Binding</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="LIST"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="LIST">
<fbs:DSInputLabel>LIST Binding</fbs:DSInputLabel> <fbs:DSInputLabel>LIST Binding</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="QUERY"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="QUERY">
<fbs:DSInputLabel>QUERY Binding</fbs:DSInputLabel> <fbs:DSInputLabel>QUERY Binding</fbs:DSInputLabel>
<fbs:DSMIME>text/plain</fbs:DSMIME> <fbs:DSMIME>text/plain</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.171Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="5242"> ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="5242">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="ImageCollection" targetNamespace="bmech" <wsdl:definitions name="ImageCollection" targetNamespace="bmech"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="bmech" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="bmech"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types> <wsdl:types>
<xsd:schema targetNamespace="bmech"> <xsd:schema targetNamespace="bmech">
<xsd:simpleType name="TYPEType"> <xsd:simpleType name="TYPEType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="QUERYType"> <xsd:simpleType name="QUERYType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="XSLTType"> <xsd:simpleType name="XSLTType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="LANGType"> <xsd:simpleType name="LANGType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="LISTType"> <xsd:simpleType name="LISTType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="CLEAR_CACHEType"> <xsd:simpleType name="CLEAR_CACHEType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="FORMATType"> <xsd:simpleType name="FORMATType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
</xsd:schema> </xsd:schema>
</wsdl:types> </wsdl:types>
<wsdl:message name="viewRequest"> <wsdl:message name="viewRequest">
<wsdl:part name="XSLT" type="this:XSLTType"/> <wsdl:part name="XSLT" type="this:XSLTType"/>
<wsdl:part name="LIST" type="this:LISTType"/> <wsdl:part name="LIST" type="this:LISTType"/>
<wsdl:part name="CLEAR_CACHE" type="this:CLEAR_CACHEType"/> <wsdl:part name="CLEAR_CACHE" type="this:CLEAR_CACHEType"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="listRequest"> <wsdl:message name="listRequest">
<wsdl:part name="TYPE" type="this:TYPEType"/> <wsdl:part name="TYPE" type="this:TYPEType"/>
<wsdl:part name="QUERY" type="this:QUERYType"/> <wsdl:part name="QUERY" type="this:QUERYType"/>
<wsdl:part name="LANG" type="this:LANGType"/> <wsdl:part name="LANG" type="this:LANGType"/>
<wsdl:part name="FORMAT" type="this:FORMATType"/> <wsdl:part name="FORMAT" type="this:FORMATType"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="dissemResponse"> <wsdl:message name="dissemResponse">
<wsdl:part name="dissem" type="xsd:base64Binary"/> <wsdl:part name="dissem" type="xsd:base64Binary"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="ImageCollectionPortType"> <wsdl:portType name="ImageCollectionPortType">
<wsdl:operation name="view"> <wsdl:operation name="view">
<wsdl:input message="this:viewRequest"/> <wsdl:input message="this:viewRequest"/>
<wsdl:output message="this:dissemResponse"/> <wsdl:output message="this:dissemResponse"/>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="list"> <wsdl:operation name="list">
<wsdl:input message="this:listRequest"/> <wsdl:input message="this:listRequest"/>
<wsdl:output message="this:dissemResponse"/> <wsdl:output message="this:dissemResponse"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="ImageCollection"> <wsdl:service name="ImageCollection">
<wsdl:port binding="this:ImageCollection_http" name="ImageCollection_port"> <wsdl:port binding="this:ImageCollection_http" name="ImageCollection_port">
<http:address location="LOCAL"/> <http:address location="LOCAL"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="ImageCollection_http" type="this:ImageCollectionPortType"> <wsdl:binding name="ImageCollection_http" type="this:ImageCollectionPortType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="view"> <wsdl:operation name="view">
<http:operation location="http://local.fedora.server/saxon/SaxonServlet?source=(LIST)&amp;style=(XSLT)&amp;clear-stylesheet-cache=(CLEAR_CACHE)"/> <http:operation location="http://local.fedora.server/saxon/SaxonServlet?source=(LIST)&amp;style=(XSLT)&amp;clear-stylesheet-cache=(CLEAR_CACHE)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/html"/> <mime:content type="text/html"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="list"> <wsdl:operation name="list">
<http:operation location="http://local.fedora.server/fedora/risearch?type=(TYPE)&amp;lang=(LANG)&amp;format=(FORMAT)&amp;query=(QUERY)"/> <http:operation location="http://local.fedora.server/fedora/risearch?type=(TYPE)&amp;lang=(LANG)&amp;format=(FORMAT)&amp;query=(QUERY)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/xml"/> <mime:content type="text/xml"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

130
content_models/demo_DualResImage.xml

@ -1,76 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="demo:DualResImage" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="demo:DualResImage" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Content Model Object (Image) for Image Collection Demo"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Content Model Object (Image) for Image Collection Demo"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2007-08-15T14:36:32.085Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2007-08-15T14:36:32.085Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:19.456Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:19.456Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2007-08-15T14:36:32.085Z" <foxml:datastreamVersion CREATED="2007-08-15T14:36:32.085Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2011-03-29T14:15:19.456Z</audit:date> <audit:date>2011-03-29T14:15:19.456Z</audit:date>
<audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/cModelObjects/demo_DualResImage.xml</audit:justification> <audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/cModelObjects/demo_DualResImage.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.890Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.890Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="424"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="424">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Content Model Object (Image) for Image Collection Demo</dc:title> <dc:title>Content Model Object (Image) for Image Collection Demo</dc:title>
<dc:identifier>demo:DualResImage</dc:identifier> <dc:identifier>demo:DualResImage</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.890Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.890Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="472"> ID="RELS-EXT.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="472">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/demo:DualResImage"> <rdf:Description rdf:about="info:fedora/demo:DualResImage">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"/>
<fedora-model:hasService rdf:resource="info:fedora/demo:DualResolution"/> <fedora-model:hasService rdf:resource="info:fedora/demo:DualResolution"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DS-COMPOSITE-MODEL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DS-COMPOSITE-MODEL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2007-08-15T14:36:30.369Z" <foxml:datastreamVersion CREATED="2007-08-15T14:36:30.369Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0" ID="DS-COMPOSITE-MODEL1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0" ID="DS-COMPOSITE-MODEL1.0"
LABEL="Datastream Composite Model" MIMETYPE="text/xml" SIZE="651"> LABEL="Datastream Composite Model" MIMETYPE="text/xml" SIZE="651">
<foxml:xmlContent> <foxml:xmlContent>
<dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#"> <dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#">
<dsTypeModel ID="DC"> <dsTypeModel ID="DC">
<form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="text/xml"/> <form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="text/xml"/>
</dsTypeModel> </dsTypeModel>
<dsTypeModel ID="RELS-EXT"> <dsTypeModel ID="RELS-EXT">
<form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="application/rdf+xml"/> <form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="application/rdf+xml"/>
</dsTypeModel> </dsTypeModel>
<dsTypeModel ID="MEDIUM_SIZE"> <dsTypeModel ID="MEDIUM_SIZE">
<form MIME="image/jpeg"/> <form MIME="image/jpeg"/>
</dsTypeModel> </dsTypeModel>
<dsTypeModel ID="FULL_SIZE"> <dsTypeModel ID="FULL_SIZE">
<form MIME="image/jpeg"/> <form MIME="image/jpeg"/>
</dsTypeModel> </dsTypeModel>
</dsCompositeModel> </dsCompositeModel>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

124
content_models/demo_DualResImageCollection.xml

@ -1,73 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="demo:DualResImageCollection" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="demo:DualResImageCollection" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Content Model Object (Image Collection) for Image Collection Demo"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Content Model Object (Image Collection) for Image Collection Demo"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2007-08-15T14:36:34.682Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2007-08-15T14:36:34.682Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:19.509Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:19.509Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2007-08-15T14:36:34.682Z" <foxml:datastreamVersion CREATED="2007-08-15T14:36:34.682Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2011-03-29T14:15:19.509Z</audit:date> <audit:date>2011-03-29T14:15:19.509Z</audit:date>
<audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/cModelObjects/demo_DualResImageCollection.xml</audit:justification> <audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/cModelObjects/demo_DualResImageCollection.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.906Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.906Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="445"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="445">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Content Model Object (Image Collection) for Image Collection Demo</dc:title> <dc:title>Content Model Object (Image Collection) for Image Collection Demo</dc:title>
<dc:identifier>demo:DualResImageCollection</dc:identifier> <dc:identifier>demo:DualResImageCollection</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.906Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.906Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="478"> ID="RELS-EXT.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="478">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/demo:DualResImageCollection"> <rdf:Description rdf:about="info:fedora/demo:DualResImageCollection">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"/>
<fedora-model:hasService rdf:resource="info:fedora/demo:Collection"/> <fedora-model:hasService rdf:resource="info:fedora/demo:Collection"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DS-COMPOSITE-MODEL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DS-COMPOSITE-MODEL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2007-08-15T14:36:30.369Z" <foxml:datastreamVersion CREATED="2007-08-15T14:36:30.369Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0" ID="DS-COMPOSITE-MODEL1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0" ID="DS-COMPOSITE-MODEL1.0"
LABEL="Datastream Composite Model" MIMETYPE="text/xml" SIZE="410"> LABEL="Datastream Composite Model" MIMETYPE="text/xml" SIZE="410">
<foxml:xmlContent> <foxml:xmlContent>
<dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#"> <dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#">
<dsTypeModel ID="QUERY"> <dsTypeModel ID="QUERY">
<form MIME="text/plain"/> <form MIME="text/plain"/>
</dsTypeModel> </dsTypeModel>
<dsTypeModel ID="XSLT"> <dsTypeModel ID="XSLT">
<form MIME="text/xml"/> <form MIME="text/xml"/>
</dsTypeModel> </dsTypeModel>
<dsTypeModel ID="LIST"> <dsTypeModel ID="LIST">
<form MIME="text/xml"/> <form MIME="text/xml"/>
</dsTypeModel> </dsTypeModel>
</dsCompositeModel> </dsCompositeModel>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

286
content_models/demo_DualResImageImpl.xml

@ -1,162 +1,162 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="demo:DualResImageImpl" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="demo:DualResImageImpl" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Deployment Object (Image) for Image Collection Demo"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Deployment Object (Image) for Image Collection Demo"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.881Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.881Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2011-03-29T14:15:20.881Z</audit:date> <audit:date>2011-03-29T14:15:20.881Z</audit:date>
<audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDepObjects/demo_DualResImageImpl.xml</audit:justification> <audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDepObjects/demo_DualResImageImpl.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="433"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="433">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Service Deployment Object (Image) for Image Collection Demo</dc:title> <dc:title>Service Deployment Object (Image) for Image Collection Demo</dc:title>
<dc:identifier>demo:DualResImageImpl</dc:identifier> <dc:identifier>demo:DualResImageImpl</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="670"> ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="670">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/demo:DualResImageImpl"> <rdf:Description rdf:about="info:fedora/demo:DualResImageImpl">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/>
<fedora-model:isDeploymentOf rdf:resource="info:fedora/demo:DualResolution"/> <fedora-model:isDeploymentOf rdf:resource="info:fedora/demo:DualResolution"/>
<fedora-model:isContractorOf rdf:resource="info:fedora/demo:DualResImage"/> <fedora-model:isContractorOf rdf:resource="info:fedora/demo:DualResImage"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="1152"> MIMETYPE="text/xml" SIZE="1152">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="MethodMap - Dual Resolution Image Implementation" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="MethodMap - Dual Resolution Image Implementation" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationLabel="A full-size image" operationName="fullSize" wsdlMsgName="fullSizeRequest" wsdlMsgOutput="dissemResponse"> <fmm:Method operationLabel="A full-size image" operationName="fullSize" wsdlMsgName="fullSizeRequest" wsdlMsgOutput="dissemResponse">
<fmm:DatastreamInputParm defaultValue="" label="The full-size image" parmName="FULL_SIZE" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm defaultValue="" label="The full-size image" parmName="FULL_SIZE" passBy="URL_REF" required="true"/>
<fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="image/jpeg"/> <fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="image/jpeg"/>
</fmm:Method> </fmm:Method>
<fmm:Method operationLabel="A medium-size image" operationName="mediumSize" wsdlMsgName="mediumSizeRequest" wsdlMsgOutput="dissemResponse"> <fmm:Method operationLabel="A medium-size image" operationName="mediumSize" wsdlMsgName="mediumSizeRequest" wsdlMsgOutput="dissemResponse">
<fmm:DatastreamInputParm defaultValue="" label="The medium-size image" parmName="MEDIUM_SIZE" <fmm:DatastreamInputParm defaultValue="" label="The medium-size image" parmName="MEDIUM_SIZE"
passBy="URL_REF" required="true"/> passBy="URL_REF" required="true"/>
<fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="image/jpeg"/> <fmm:MethodReturnType wsdlMsgName="dissemResponse" wsdlMsgTOMIME="image/jpeg"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="899"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="899">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="Datastream Input Specification for Dual Resolution Image Implementation" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="Datastream Input Specification for Dual Resolution Image Implementation" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="FULL_SIZE"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="FULL_SIZE">
<fbs:DSInputLabel>FULL_SIZE Binding</fbs:DSInputLabel> <fbs:DSInputLabel>FULL_SIZE Binding</fbs:DSInputLabel>
<fbs:DSMIME>image/jpeg</fbs:DSMIME> <fbs:DSMIME>image/jpeg</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="MEDIUM_SIZE"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="MEDIUM_SIZE">
<fbs:DSInputLabel>MEDIUM_SIZE Binding</fbs:DSInputLabel> <fbs:DSInputLabel>MEDIUM_SIZE Binding</fbs:DSInputLabel>
<fbs:DSMIME>image/jpeg</fbs:DSMIME> <fbs:DSMIME>image/jpeg</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.203Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="3744"> ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="3744">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="DualResolutionImageImplementation" targetNamespace="bmech" <wsdl:definitions name="DualResolutionImageImplementation" targetNamespace="bmech"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="bmech" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="bmech"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types> <wsdl:types>
<xsd:schema targetNamespace="bmech"> <xsd:schema targetNamespace="bmech">
<xsd:simpleType name="FULL_SIZEType"> <xsd:simpleType name="FULL_SIZEType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="MEDIUM_SIZEType"> <xsd:simpleType name="MEDIUM_SIZEType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
</xsd:schema> </xsd:schema>
</wsdl:types> </wsdl:types>
<wsdl:message name="fullSizeRequest"> <wsdl:message name="fullSizeRequest">
<wsdl:part name="FULL_SIZE" type="this:FULL_SIZEType"/> <wsdl:part name="FULL_SIZE" type="this:FULL_SIZEType"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="mediumSizeRequest"> <wsdl:message name="mediumSizeRequest">
<wsdl:part name="MEDIUM_SIZE" type="this:MEDIUM_SIZEType"/> <wsdl:part name="MEDIUM_SIZE" type="this:MEDIUM_SIZEType"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="dissemResponse"> <wsdl:message name="dissemResponse">
<wsdl:part name="dissem" type="xsd:base64Binary"/> <wsdl:part name="dissem" type="xsd:base64Binary"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="DualResImageImplPortType"> <wsdl:portType name="DualResImageImplPortType">
<wsdl:operation name="fullSize"> <wsdl:operation name="fullSize">
<wsdl:input message="this:fullSizeRequest"/> <wsdl:input message="this:fullSizeRequest"/>
<wsdl:output message="this:dissemResponse"/> <wsdl:output message="this:dissemResponse"/>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="mediumSize"> <wsdl:operation name="mediumSize">
<wsdl:input message="this:mediumSizeRequest"/> <wsdl:input message="this:mediumSizeRequest"/>
<wsdl:output message="this:dissemResponse"/> <wsdl:output message="this:dissemResponse"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="DualResImageImpl"> <wsdl:service name="DualResImageImpl">
<wsdl:port binding="this:DualResImageImpl_http" name="DualResImageImpl_port"> <wsdl:port binding="this:DualResImageImpl_http" name="DualResImageImpl_port">
<http:address location="LOCAL"/> <http:address location="LOCAL"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="DualResImageImpl_http" type="this:DualResImageImplPortType"> <wsdl:binding name="DualResImageImpl_http" type="this:DualResImageImplPortType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="fullSize"> <wsdl:operation name="fullSize">
<http:operation location="(FULL_SIZE)"/> <http:operation location="(FULL_SIZE)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="image/jpeg"/> <mime:content type="image/jpeg"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="mediumSize"> <wsdl:operation name="mediumSize">
<http:operation location="(MEDIUM_SIZE)"/> <http:operation location="(MEDIUM_SIZE)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="image/jpeg"/> <mime:content type="image/jpeg"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

108
content_models/demo_DualResolution.xml

@ -1,65 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="demo:DualResolution" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="demo:DualResolution" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Definition Object (Image) for Image Collection Demo"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Service Definition Object (Image) for Image Collection Demo"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2008-07-02T05:09:42.015Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.765Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-03-29T14:15:20.765Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:42.015Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2011-03-29T14:15:20.765Z</audit:date> <audit:date>2011-03-29T14:15:20.765Z</audit:date>
<audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDefObjects/demo_DualResolution.xml</audit:justification> <audit:justification>Ingested from local file /usr/local/fedora/client/demo/foxml/local-server-demos/image-collection-demo/sDefObjects/demo_DualResolution.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.156Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.156Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="431"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="431">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Service Definition Object (Image) for Image Collection Demo</dc:title> <dc:title>Service Definition Object (Image) for Image Collection Demo</dc:title>
<dc:identifier>demo:DualResolution</dc:identifier> <dc:identifier>demo:DualResolution</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.156Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.156Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="408"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="408">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/demo:DualResolution"> <rdf:Description rdf:about="info:fedora/demo:DualResolution">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2008-07-02T05:09:43.156Z" <foxml:datastreamVersion CREATED="2008-07-02T05:09:43.156Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP1.0" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP1.0" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="367"> MIMETYPE="text/xml" SIZE="367">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="MethodMap - Dual Resolution Image" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="MethodMap - Dual Resolution Image" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationLabel="A full-size image" operationName="fullSize"/> <fmm:Method operationLabel="A full-size image" operationName="fullSize"/>
<fmm:Method operationLabel="A medium-size image" operationName="mediumSize"/> <fmm:Method operationLabel="A medium-size image" operationName="mediumSize"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

1282
content_models/ilives_bookCModel.xml

File diff suppressed because it is too large Load Diff

124
content_models/ilives_jp2Sdef.xml

@ -1,73 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="ilives:jp2Sdef" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="ilives:jp2Sdef" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:jp2Sdef"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:jp2Sdef"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T15:07:42.398Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T15:07:42.398Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-25T13:17:14.106Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-25T13:17:14.106Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-12T14:56:59.840Z</audit:date> <audit:date>2009-11-12T14:56:59.840Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_jp2Sdef.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_jp2Sdef.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-05-25T13:17:14.106Z</audit:date> <audit:date>2010-05-25T13:17:14.106Z</audit:date>
<audit:justification>Fedora Object Ingested</audit:justification> <audit:justification>Fedora Object Ingested</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.487Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.487Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="363"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="363">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/ilives:jp2Sdef"> <rdf:Description rdf:about="info:fedora/ilives:jp2Sdef">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="381"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="381">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>ilives:jp2Sdef</dc:title> <dc:title>ilives:jp2Sdef</dc:title>
<dc:identifier>ilives:jp2Sdef</dc:identifier> <dc:identifier>ilives:jp2Sdef</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T20:08:16.294Z" <foxml:datastreamVersion CREATED="2009-05-18T20:08:16.294Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.3" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.3" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="245"> MIMETYPE="text/xml" SIZE="245">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="getMetadata"/> <fmm:Method operationName="getMetadata"/>
<fmm:Method operationName="getRegion"/> <fmm:Method operationName="getRegion"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

322
content_models/ilives_jp2Sdep-pageCModel.xml

@ -1,179 +1,179 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="ilives:jp2Sdep-pageCModel" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="ilives:jp2Sdep-pageCModel" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:jp2Sdep-pageCModel"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:jp2Sdep-pageCModel"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-21T03:24:05.906Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-21T03:24:05.906Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T00:48:39.302Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T00:48:39.302Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z" <foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-12T14:57:00.246Z</audit:date> <audit:date>2009-11-12T14:57:00.246Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_jp2Sdep-pageCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_jp2Sdep-pageCModel.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-06-01T00:46:19.239Z</audit:date> <audit:date>2010-06-01T00:46:19.239Z</audit:date>
<audit:justification>Ingested from local file /Users/al/Desktop/ilives_jp2Sdep-pageCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/al/Desktop/ilives_jp2Sdep-pageCModel.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-06-01T00:48:39.302Z</audit:date> <audit:date>2010-06-01T00:48:39.302Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="403"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="403">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>ilives:jp2Sdep-pageCModel</dc:title> <dc:title>ilives:jp2Sdep-pageCModel</dc:title>
<dc:identifier>ilives:jp2Sdep-pageCModel</dc:identifier> <dc:identifier>ilives:jp2Sdep-pageCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-21T03:26:21.830Z" <foxml:datastreamVersion CREATED="2009-05-21T03:26:21.830Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.1" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.1" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="2498"> MIMETYPE="text/xml" SIZE="2498">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap bDefPID="djatoka:bDef" name="MethodMap - djatoka Service Methods" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap bDefPID="djatoka:bDef" name="MethodMap - djatoka Service Methods" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="getMetadata" wsdlMsgName="getMetadataRequest" wsdlMsgOutput="response"> <fmm:Method operationName="getMetadata" wsdlMsgName="getMetadataRequest" wsdlMsgOutput="response">
<fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getMetadata" parmName="svc_id" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getMetadata" parmName="svc_id" passBy="VALUE" required="true"/>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/>
<fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="application/json"/> <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="application/json"/>
</fmm:Method> </fmm:Method>
<fmm:Method operationName="getRegion" wsdlMsgName="getRegionRequest" wsdlMsgOutput="response"> <fmm:Method operationName="getRegion" wsdlMsgName="getRegionRequest" wsdlMsgOutput="response">
<fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getRegion" parmName="svc_id" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getRegion" parmName="svc_id" passBy="VALUE" required="true"/>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/>
<fmm:UserInputParm defaultValue="" parmName="region" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="region" passBy="VALUE" required="false"/>
<fmm:UserInputParm defaultValue="0" parmName="rotate" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="0" parmName="rotate" passBy="VALUE" required="false"/>
<fmm:UserInputParm defaultValue="-1" parmName="level" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="-1" parmName="level" passBy="VALUE" required="false"/>
<fmm:UserInputParm defaultValue="" parmName="scale" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="scale" passBy="VALUE" required="false"/>
<fmm:UserInputParm defaultValue="" parmName="clayers" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="clayers" passBy="VALUE" required="false"/>
<fmm:UserInputParm defaultValue="image/jpeg" parmName="format" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="image/jpeg" parmName="format" passBy="VALUE" required="false"/>
<fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="image/jpeg"/> <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="image/jpeg"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-21T03:26:44.151Z" <foxml:datastreamVersion CREATED="2009-05-21T03:26:44.151Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="401"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="401">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="jp2SdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="jp2SdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC">
<fbs:DSInputLabel>DC</fbs:DSInputLabel> <fbs:DSInputLabel>DC</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-21T03:27:46.103Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2009-05-21T03:27:46.103Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL.1" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="3258"> ID="WSDL.1" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="3258">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="Fedora Local Djatoka Service" targetNamespace="jp2SDep" <wsdl:definitions name="Fedora Local Djatoka Service" targetNamespace="jp2SDep"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="djatoka" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="djatoka"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="getMetadataRequest"> <wsdl:message name="getMetadataRequest">
<wsdl:part name="PID" type="xsd:string"/> <wsdl:part name="PID" type="xsd:string"/>
<wsdl:part name="DSID" type="xsd:string"/> <wsdl:part name="DSID" type="xsd:string"/>
<wsdl:part name="svc_id" type="xsd:string"/> <wsdl:part name="svc_id" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="getRegionRequest"> <wsdl:message name="getRegionRequest">
<wsdl:part name="PID" type="xsd:string"/> <wsdl:part name="PID" type="xsd:string"/>
<wsdl:part name="DSID" type="xsd:string"/> <wsdl:part name="DSID" type="xsd:string"/>
<wsdl:part name="svc_id" type="xsd:string"/> <wsdl:part name="svc_id" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="response"> <wsdl:message name="response">
<wsdl:part name="exhibit" type="xsd:base64Binary"/> <wsdl:part name="exhibit" type="xsd:base64Binary"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="FedoraDjatokaPortType"> <wsdl:portType name="FedoraDjatokaPortType">
<wsdl:operation name="getMetadata"> <wsdl:operation name="getMetadata">
<wsdl:input message="this:getMetadataRequest"/> <wsdl:input message="this:getMetadataRequest"/>
<wsdl:output message="this:response"/> <wsdl:output message="this:response"/>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="getRegion"> <wsdl:operation name="getRegion">
<wsdl:input message="this:getRegionRequest"/> <wsdl:input message="this:getRegionRequest"/>
<wsdl:output message="this:response"/> <wsdl:output message="this:response"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="FedoraDjatoka"> <wsdl:service name="FedoraDjatoka">
<wsdl:port binding="this:FedoraDjatoka_http" name="FedoraDjatoka_port"> <wsdl:port binding="this:FedoraDjatoka_http" name="FedoraDjatoka_port">
<http:address location="http://local.fedora.server/"/> <http:address location="http://local.fedora.server/"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="FedoraDjatoka_http" type="this:FedoraDjatokaPortType"> <wsdl:binding name="FedoraDjatoka_http" type="this:FedoraDjatokaPortType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="getMetadata"> <wsdl:operation name="getMetadata">
<http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)"/> <http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="application/json"/> <mime:content type="application/json"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="getRegion"> <wsdl:operation name="getRegion">
<http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&amp;svc.format=(format)&amp;svc.level=(level)&amp;svc.rotate=(rotate)&amp;svc.region=(region)&amp;svc.scale=(scale)&amp;svc.clayers=(clayers)"/> <http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&amp;svc.format=(format)&amp;svc.level=(level)&amp;svc.rotate=(rotate)&amp;svc.region=(region)&amp;svc.scale=(scale)&amp;svc.clayers=(clayers)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="image/jpeg"/> <mime:content type="image/jpeg"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2010-06-01T00:48:39.302Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-06-01T00:48:39.302Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.2" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="688"> ID="RELS-EXT.2" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="688">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/ilives:jp2Sdep-pageCModel"> <rdf:Description rdf:about="info:fedora/ilives:jp2Sdep-pageCModel">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/ilives:jp2Sdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/ilives:jp2Sdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/ilives:pageCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/ilives:pageCModel" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/newspapers:pageCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/newspapers:pageCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

122
content_models/ilives_tei2htmlSdef.xml

@ -1,72 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="ilives:tei2htmlSdef" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="ilives:tei2htmlSdef" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:tei2htmlSdef"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:tei2htmlSdef"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T15:07:42.398Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T15:07:42.398Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T00:46:19.652Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T00:46:19.652Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-12T14:57:01.057Z</audit:date> <audit:date>2009-11-12T14:57:01.057Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_tei2htmlSdef.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_tei2htmlSdef.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-06-01T00:46:19.652Z</audit:date> <audit:date>2010-06-01T00:46:19.652Z</audit:date>
<audit:justification>Ingested from local file /Users/al/Desktop/ilives_tei2htmlSdef.xml</audit:justification> <audit:justification>Ingested from local file /Users/al/Desktop/ilives_tei2htmlSdef.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.487Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.487Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="368"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="368">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/ilives:tei2htmlSdef"> <rdf:Description rdf:about="info:fedora/ilives:tei2htmlSdef">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="391"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="391">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>ilives:tei2htmlSdef</dc:title> <dc:title>ilives:tei2htmlSdef</dc:title>
<dc:identifier>ilives:tei2htmlSdef</dc:identifier> <dc:identifier>ilives:tei2htmlSdef</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T20:08:16.294Z" <foxml:datastreamVersion CREATED="2009-05-18T20:08:16.294Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.3" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.3" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="180"> MIMETYPE="text/xml" SIZE="180">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="tei2html"/> <fmm:Method operationName="tei2html"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

435
content_models/ilives_tei2htmlSdep-pageCModel.xml

@ -1,234 +1,241 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="ilives:tei2htmlSdep-pageCModel" VERSION="1.1" <foxml:digitalObject PID="ilives:tei2htmlSdep-pageCModel" VERSION="1.1"
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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:tei2htmlSdep-pageCModel"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:tei2htmlSdep-pageCModel"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-21T03:24:05.906Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-21T03:24:05.906Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T00:46:19.847Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T00:46:19.847Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z" <foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-12T14:57:01.366Z</audit:date> <audit:date>2009-11-12T14:57:01.366Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_tei2htmlSdep-pageCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_tei2htmlSdep-pageCModel.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>XSL</audit:componentID> <audit:componentID>XSL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-12-11T19:09:52.417Z</audit:date> <audit:date>2009-12-11T19:09:52.417Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>XSL</audit:componentID> <audit:componentID>XSL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-12-11T19:22:11.096Z</audit:date> <audit:date>2009-12-11T19:22:11.096Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-06-01T00:46:19.847Z</audit:date> <audit:date>2010-06-01T00:46:19.847Z</audit:date>
<audit:justification>Ingested from local file /Users/al/Desktop/ilives_tei2htmlSdep-pageCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/al/Desktop/ilives_tei2htmlSdep-pageCModel.xml</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-21T03:25:04.961Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2009-05-21T03:25:04.961Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="614"> ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="614">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/ilives:tei2htmlSdep-pageCModel"> <rdf:Description rdf:about="info:fedora/ilives:tei2htmlSdep-pageCModel">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/ilives:tei2htmlSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/ilives:tei2htmlSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/ilives:pageCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/ilives:pageCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-05-21T03:24:05.906Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="413"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="413">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>ilives:tei2htmlSdep-pageCModel</dc:title> <dc:title>ilives:tei2htmlSdep-pageCModel</dc:title>
<dc:identifier>ilives:tei2htmlSdep-pageCModel</dc:identifier> <dc:identifier>ilives:tei2htmlSdep-pageCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-09-17T02:47:11.226Z" <foxml:datastreamVersion CREATED="2009-09-17T02:47:11.226Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.3" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.3"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="718"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="718">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="tei2htmlSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="tei2htmlSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="TEI"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="TEI">
<fbs:DSInputLabel>TEI</fbs:DSInputLabel> <fbs:DSInputLabel>TEI</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" pid="ilives:tei2htmlSdep-pageCModel" wsdlMsgPartName="XSL"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" pid="ilives:tei2htmlSdep-pageCModel" wsdlMsgPartName="XSL">
<fbs:DSInputLabel>XSL</fbs:DSInputLabel> <fbs:DSInputLabel>XSL</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-09-17T02:47:56.422Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2009-09-17T02:47:56.422Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL.3" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1938"> ID="WSDL.3" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1938">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="tei2htmlSdep" targetNamespace="tei2htmlSdep" <wsdl:definitions name="tei2htmlSdep" targetNamespace="tei2htmlSdep"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="tei2htmlSdep" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="tei2htmlSdep"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="tei2htmlRequestMsg"> <wsdl:message name="tei2htmlRequestMsg">
<wsdl:part name="TEI" type="xsd:string"/> <wsdl:part name="TEI" type="xsd:string"/>
<wsdl:part name="XSL" type="xsd:string"/> <wsdl:part name="XSL" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="response"> <wsdl:message name="response">
<wsdl:part name="exhibit" type="xsd:base64Binary"/> <wsdl:part name="exhibit" type="xsd:base64Binary"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="tei2html_portType"> <wsdl:portType name="tei2html_portType">
<wsdl:operation name="tei2html"> <wsdl:operation name="tei2html">
<wsdl:input message="this:tei2htmlRequestMsg"/> <wsdl:input message="this:tei2htmlRequestMsg"/>
<wsdl:output message="this:response"/> <wsdl:output message="this:response"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="tei2html_service"> <wsdl:service name="tei2html_service">
<wsdl:port binding="this:tei2html_binding" name="tei2html_port"> <wsdl:port binding="this:tei2html_binding" name="tei2html_port">
<http:address location="http://local.fedora.server/saxon/"/> <http:address location="http://local.fedora.server/saxon/"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="tei2html_binding" type="this:tei2html_portType"> <wsdl:binding name="tei2html_binding" type="this:tei2html_portType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="tei2html"> <wsdl:operation name="tei2html">
<http:operation location="SaxonServlet?source=(TEI)&amp;style=(XSL)&amp;clear-stylesheet-cache=yes"/> <http:operation location="SaxonServlet?source=(TEI)&amp;style=(XSL)&amp;clear-stylesheet-cache=yes"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/html"/> <mime:content type="text/html"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-09-17T02:51:06.102Z" <foxml:datastreamVersion CREATED="2009-09-17T02:51:06.102Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.6" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.6" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="695"> MIMETYPE="text/xml" SIZE="695">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="tei2html" wsdlMsgName="tei2htmlRequestMsg" wsdlMsgOutput="response"> <fmm:Method operationName="tei2html" wsdlMsgName="tei2htmlRequestMsg" wsdlMsgOutput="response">
<fmm:DatastreamInputParm parmName="TEI" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm parmName="TEI" passBy="URL_REF" required="true"/>
<fmm:DatastreamInputParm parmName="XSL" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm parmName="XSL" passBy="URL_REF" required="true"/>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/>
<fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="text/html"/> <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="text/html"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="XSL" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="XSL" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-12-11T19:22:11.096Z" ID="XSL.2" <foxml:datastreamVersion CREATED="2009-12-11T19:22:11.096Z" ID="XSL.2"
LABEL="XSL stylesheet for tei2html conversion" MIMETYPE="text/xml" SIZE="3406"> LABEL="XSL stylesheet for tei2html conversion" MIMETYPE="text/xml" SIZE="3406">
<foxml:xmlContent> <foxml:xmlContent>
<xsl:stylesheet exclude-result-prefixes="tei" version="2.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet exclude-result-prefixes="tei" version="2.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output doctype-public="-//W3C//DTD HTML 4.01 Strict//EN" <xsl:output doctype-public="-//W3C//DTD HTML 4.01 Strict//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd" indent="yes" method="html" omit-xml-declaration="yes"/> doctype-system="http://www.w3.org/TR/html4/strict.dtd" indent="yes" method="html" omit-xml-declaration="yes"/>
<xsl:template match="tei:TEI"> <xsl:template match="tei:TEI">
<html> <html>
<head> <head>
<title> <title>
<xsl:value-of select="normalize-space(tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title)"/> <xsl:value-of select="normalize-space(tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title)"/>
</title> </title>
</head> </head>
<body> <body>
<xsl:apply-templates/> <xsl:apply-templates/>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
<xsl:template match="tei:body"> <xsl:template match="tei:body">
<div class="tei"> <div class="tei">
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</xsl:template> </xsl:template>
<xsl:template match="tei:p"> <xsl:template match="tei:p">
<p> <p>
<xsl:apply-templates/> <xsl:apply-templates/>
</p> </p>
</xsl:template> </xsl:template>
<xsl:template match="tei:date"> <xsl:template match="tei:date">
<span class="date"> <span class="date">
<xsl:value-of select="normalize-space(.)"/> <xsl:value-of select="normalize-space(.)"/>
</span> </span>
</xsl:template> </xsl:template>
<xsl:template match="tei:persName"> <xsl:template match="tei:persName">
<xsl:choose> <xsl:choose>
<xsl:when test="(.//tei:surname) and (.//tei:forename)"> <xsl:when test="(.//tei:surname) and (.//tei:forename)">
<span class="persName"> <span class="persName">
<a> <a>
<xsl:attribute name="class">search persName</xsl:attribute> <xsl:attribute name="class">search persName</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>
<xsl:attribute <xsl:attribute
name="href">http://islandlives.net/fedora/ilives_book_search/tei.persNameTERM:%22<xsl:value-of name="href">http://islandlives.net/fedora/ilives_book_search/tei.persNameTERM:%22
select=".//tei:surname"/>+<xsl:value-of select=".//tei:forename"/>%22+AND+dc.type:collection</xsl:attribute> <xsl:value-of
<xsl:apply-templates select="*|node()"/> select=".//tei:surname"/>+
</a> <xsl:value-of select=".//tei:forename"/>%22+AND+dc.type:collection
</span> </xsl:attribute>
</xsl:when> <xsl:apply-templates select="*|node()"/>
<xsl:otherwise> </a>
<xsl:apply-templates select="*|node()"/> </span>
</xsl:otherwise> </xsl:when>
</xsl:choose> <xsl:otherwise>
</xsl:template> <xsl:apply-templates select="*|node()"/>
<xsl:template match="tei:placeName"> </xsl:otherwise>
<a> </xsl:choose>
<xsl:attribute name="class">search placeName</xsl:attribute> </xsl:template>
<xsl:attribute name="target">_blank</xsl:attribute> <xsl:template match="tei:placeName">
<xsl:attribute <a>
name="href">http://islandlives.net/fedora/ilives_book_search/tei.placeNameTERM:%22<xsl:value-of select="normalize-space(.)"/>%22+AND+dc.type:collection</xsl:attribute> <xsl:attribute name="class">search placeName</xsl:attribute>
<xsl:value-of select="normalize-space(.)"/> <xsl:attribute name="target">_blank</xsl:attribute>
</a> <xsl:attribute
</xsl:template> name="href">http://islandlives.net/fedora/ilives_book_search/tei.placeNameTERM:%22
<xsl:template match="tei:orgName"> <xsl:value-of select="normalize-space(.)"/>%22+AND+dc.type:collection
<a> </xsl:attribute>
<xsl:attribute name="class">search orgName</xsl:attribute> <xsl:value-of select="normalize-space(.)"/>
<xsl:attribute name="target">_blank</xsl:attribute> </a>
<xsl:attribute </xsl:template>
name="href">http://islandlives.net/fedora/ilives_book_search/tei.orgNameTERM:%22<xsl:value-of select="normalize-space(.)"/>%22+AND+dc.type:collection</xsl:attribute> <xsl:template match="tei:orgName">
<xsl:value-of select="normalize-space(.)"/> <a>
</a> <xsl:attribute name="class">search orgName</xsl:attribute>
</xsl:template> <xsl:attribute name="target">_blank</xsl:attribute>
<xsl:template match="tei:teiHeader"/> <xsl:attribute
</xsl:stylesheet> name="href">http://islandlives.net/fedora/ilives_book_search/tei.orgNameTERM:%22
</foxml:xmlContent> <xsl:value-of select="normalize-space(.)"/>%22+AND+dc.type:collection
</foxml:datastreamVersion> </xsl:attribute>
</foxml:datastream> <xsl:value-of select="normalize-space(.)"/>
</a>
</xsl:template>
<xsl:template match="tei:teiHeader"/>
</xsl:stylesheet>
</foxml:xmlContent>
</foxml:datastreamVersion>
</foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

122
content_models/ilives_viewerSdef.xml

@ -1,72 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="ilives:viewerSdef" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="ilives:viewerSdef" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:viewerSdef"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:viewerSdef"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T15:07:42.398Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T15:07:42.398Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-25T13:17:14.247Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-25T13:17:14.247Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-12T17:09:29.912Z</audit:date> <audit:date>2009-11-12T17:09:29.912Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_viewerSdef.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_viewerSdef.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-05-25T13:17:14.247Z</audit:date> <audit:date>2010-05-25T13:17:14.247Z</audit:date>
<audit:justification>Fedora Object Ingested</audit:justification> <audit:justification>Fedora Object Ingested</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.487Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.487Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="366"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="366">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/ilives:viewerSdef"> <rdf:Description rdf:about="info:fedora/ilives:viewerSdef">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-05-18T15:07:42.398Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="387"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="387">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>ilives:viewerSdef</dc:title> <dc:title>ilives:viewerSdef</dc:title>
<dc:identifier>ilives:viewerSdef</dc:identifier> <dc:identifier>ilives:viewerSdef</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T20:08:16.294Z" <foxml:datastreamVersion CREATED="2009-05-18T20:08:16.294Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.3" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.3" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="181"> MIMETYPE="text/xml" SIZE="181">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="getViewer"/> <fmm:Method operationName="getViewer"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

276
content_models/ilives_viewerSdep-bookCModel.xml

@ -1,157 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="ilives:viewerSdep-bookCModel" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="ilives:viewerSdep-bookCModel" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:viewerSdep-bookCModel"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="ilives:viewerSdep-bookCModel"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T19:50:00.488Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-05-18T19:50:00.488Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-31T20:57:49.117Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-31T20:57:49.117Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T19:50:00.488Z" <foxml:datastreamVersion CREATED="2009-05-18T19:50:00.488Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-12T17:09:41.797Z</audit:date> <audit:date>2009-11-12T17:09:41.797Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_viewerSdep-bookCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/dev/iiv/iiv/etc/fedora-objects/ilives_viewerSdep-bookCModel.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-05-31T20:03:42.709Z</audit:date> <audit:date>2010-05-31T20:03:42.709Z</audit:date>
<audit:justification>Ingested from source repository with pid ilives:viewerSdep-bookCModel</audit:justification> <audit:justification>Ingested from source repository with pid ilives:viewerSdep-bookCModel</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-05-31T20:04:57.893Z</audit:date> <audit:date>2010-05-31T20:04:57.893Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-05-31T20:57:49.117Z</audit:date> <audit:date>2010-05-31T20:57:49.117Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-05-18T19:50:00.488Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-05-18T19:50:00.488Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="409"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="409">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>ilives:viewerSdep-bookCModel</dc:title> <dc:title>ilives:viewerSdep-bookCModel</dc:title>
<dc:identifier>ilives:viewerSdep-bookCModel</dc:identifier> <dc:identifier>ilives:viewerSdep-bookCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-18T19:52:55.042Z" <foxml:datastreamVersion CREATED="2009-05-18T19:52:55.042Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="404"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="404">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="viewerSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="viewerSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC">
<fbs:DSInputLabel>DC</fbs:DSInputLabel> <fbs:DSInputLabel>DC</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-19T13:34:53.687Z" <foxml:datastreamVersion CREATED="2009-05-19T13:34:53.687Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.2" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.2" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="955"> MIMETYPE="text/xml" SIZE="955">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="getViewer" wsdlMsgName="getViewerRequestMsg" wsdlMsgOutput="getViewerResponseMsg"> <fmm:Method operationName="getViewer" wsdlMsgName="getViewerRequestMsg" wsdlMsgOutput="getViewerResponseMsg">
<fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="ilives:bookCModel" label="content model" parmName="CMODEL" <fmm:DefaultInputParm defaultValue="ilives:bookCModel" label="content model" parmName="CMODEL"
passBy="VALUE" required="true"/> passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/>
<fmm:MethodReturnType wsdlMsgName="getViewerResponseMsg" wsdlMsgTOMIME="text/html"/> <fmm:MethodReturnType wsdlMsgName="getViewerResponseMsg" wsdlMsgTOMIME="text/html"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-05-19T13:34:20.768Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2009-05-19T13:34:20.768Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL.4" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="2073"> ID="WSDL.4" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="2073">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="viewerSdep" targetNamespace="viewerSdep" <wsdl:definitions name="viewerSdep" targetNamespace="viewerSdep"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="viewerSdep" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="viewerSdep"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="getViewerRequestMsg"> <wsdl:message name="getViewerRequestMsg">
<wsdl:part name="PID" type="xsd:string"/> <wsdl:part name="PID" type="xsd:string"/>
<wsdl:part name="CMODEL" type="xsd:string"/> <wsdl:part name="CMODEL" type="xsd:string"/>
<wsdl:part name="DSID" type="xsd:string"/> <wsdl:part name="DSID" type="xsd:string"/>
<wsdl:part name="uid" type="xsd:string"/> <wsdl:part name="uid" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="getViewerResponseMsg"> <wsdl:message name="getViewerResponseMsg">
<wsdl:part name="RESPONSE" type="xsd:string"/> <wsdl:part name="RESPONSE" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="viewer_portType"> <wsdl:portType name="viewer_portType">
<wsdl:operation name="getViewer"> <wsdl:operation name="getViewer">
<wsdl:input message="this:getViewerRequestMsg"/> <wsdl:input message="this:getViewerRequestMsg"/>
<wsdl:output message="this:getViewerResponseMsg"/> <wsdl:output message="this:getViewerResponseMsg"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="viewer_service"> <wsdl:service name="viewer_service">
<wsdl:port binding="this:viewer_binding" name="viewer_port"> <wsdl:port binding="this:viewer_binding" name="viewer_port">
<http:address location="http://local.fedora.server/iiv/viewer.jsp"/> <http:address location="http://local.fedora.server/iiv/viewer.jsp"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="viewer_binding" type="this:viewer_portType"> <wsdl:binding name="viewer_binding" type="this:viewer_portType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="getViewer"> <wsdl:operation name="getViewer">
<http:operation location="?pid=(PID)&amp;cmodel=(CMODEL)&amp;dsid=(DSID)&amp;uid=(uid)"/> <http:operation location="?pid=(PID)&amp;cmodel=(CMODEL)&amp;dsid=(DSID)&amp;uid=(uid)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/html"/> <mime:content type="text/html"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2010-05-31T20:57:49.117Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-05-31T20:57:49.117Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.3" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="562"> ID="RELS-EXT.3" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="562">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/ilives:viewerSdep-bookCModel"> <rdf:Description rdf:about="info:fedora/ilives:viewerSdep-bookCModel">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/ilives:bookCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/ilives:bookCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

1118
content_models/islandora_collectionCModel.xml

File diff suppressed because it is too large Load Diff

3556
content_models/islandora_herbCModel.xml

File diff suppressed because it is too large Load Diff

508
content_models/islandora_jp2Sdep-slideCModel.xml

@ -3,197 +3,197 @@
xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:foxml="info:fedora/fedora-system:def/foxml#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
<foxml:objectProperties> <foxml:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="islandora:jp2Sdep-slideCModel"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="islandora:jp2Sdep-slideCModel"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-11-27T18:25:48.654Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-11-27T18:25:48.654Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-03-11T20:58:05.234Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-03-11T20:58:05.234Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false"> <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
<foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2009-11-27T18:25:48.654Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit"> <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2009-11-27T18:25:48.654Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID></audit:componentID> <audit:componentID></audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:25:48.654Z</audit:date> <audit:date>2009-11-27T18:25:48.654Z</audit:date>
<audit:justification>Created with Admin GUI &quot;New Object&quot; command</audit:justification> <audit:justification>Created with Admin GUI &quot;New Object&quot; command</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>METHODMAP</audit:componentID> <audit:componentID>METHODMAP</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:30:03.064Z</audit:date> <audit:date>2009-11-27T18:30:03.064Z</audit:date>
<audit:justification></audit:justification> <audit:justification></audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>DSINPUTSPEC</audit:componentID> <audit:componentID>DSINPUTSPEC</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:30:34.272Z</audit:date> <audit:date>2009-11-27T18:30:34.272Z</audit:date>
<audit:justification></audit:justification> <audit:justification></audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>WSDL</audit:componentID> <audit:componentID>WSDL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:31:33.967Z</audit:date> <audit:date>2009-11-27T18:31:33.967Z</audit:date>
<audit:justification></audit:justification> <audit:justification></audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC5"> <audit:record ID="AUDREC5">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:36:14.648Z</audit:date> <audit:date>2009-11-27T18:36:14.648Z</audit:date>
<audit:justification></audit:justification> <audit:justification></audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC6"> <audit:record ID="AUDREC6">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID></audit:componentID> <audit:componentID></audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-01-26T20:06:07.452Z</audit:date> <audit:date>2010-01-26T20:06:07.452Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/Desktop/tmp/islandora_jp2Sdep-slideCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/Desktop/tmp/islandora_jp2Sdep-slideCModel.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC7"> <audit:record ID="AUDREC7">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-05T16:47:23.192Z</audit:date> <audit:date>2010-03-05T16:47:23.192Z</audit:date>
<audit:justification></audit:justification> <audit:justification></audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC8"> <audit:record ID="AUDREC8">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-11T20:58:05.234Z</audit:date> <audit:date>2010-03-11T20:58:05.234Z</audit:date>
<audit:justification></audit:justification> <audit:justification></audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
<foxml:datastreamVersion ID="RELS-EXT1.0" LABEL="RDF Statements about this object" CREATED="2009-11-27T18:25:48.726Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="618"> <foxml:datastreamVersion ID="RELS-EXT1.0" LABEL="RDF Statements about this object" CREATED="2009-11-27T18:25:48.726Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="618">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></fedora-model:hasModel> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></fedora-model:hasModel>
<fedora-model:isDeploymentOf rdf:resource="info:fedora/changeme-to-sDefPid"></fedora-model:isDeploymentOf> <fedora-model:isDeploymentOf rdf:resource="info:fedora/changeme-to-sDefPid"></fedora-model:isDeploymentOf>
<fedora-model:isContractorOf rdf:resource="info:fedora/changeme-to-cModelPid"></fedora-model:isContractorOf> <fedora-model:isContractorOf rdf:resource="info:fedora/changeme-to-cModelPid"></fedora-model:isContractorOf>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion ID="RELS-EXT.1" LABEL="RDF Statements about this object" CREATED="2009-11-27T18:36:14.648Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="612"> <foxml:datastreamVersion ID="RELS-EXT.1" LABEL="RDF Statements about this object" CREATED="2009-11-27T18:36:14.648Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="612">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel">
<hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel> <hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel>
<isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/ilives:jp2Sdef"></isDeploymentOf> <isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/ilives:jp2Sdef"></isDeploymentOf>
<isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:slideCModel"></isContractorOf> <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:slideCModel"></isContractorOf>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion ID="RELS-EXT.2" LABEL="RDF Statements about this object" CREATED="2010-03-05T16:47:23.192Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="695"> <foxml:datastreamVersion ID="RELS-EXT.2" LABEL="RDF Statements about this object" CREATED="2010-03-05T16:47:23.192Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="695">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel">
<hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel> <hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel>
<isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/ilives:jp2Sdef"></isDeploymentOf> <isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/ilives:jp2Sdef"></isDeploymentOf>
<isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:slideCModel"></isContractorOf> <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:slideCModel"></isContractorOf>
<isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:herbCModel"></isContractorOf> <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:herbCModel"></isContractorOf>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion ID="RELS-EXT.3" LABEL="RDF Statements about this object" CREATED="2010-03-11T20:58:05.234Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="825"> <foxml:datastreamVersion ID="RELS-EXT.3" LABEL="RDF Statements about this object" CREATED="2010-03-11T20:58:05.234Z" MIMETYPE="application/rdf+xml" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" SIZE="825">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:jp2Sdep-slideCModel">
<hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel> <hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel>
<isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/ilives:jp2Sdef"></isDeploymentOf> <isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/ilives:jp2Sdef"></isDeploymentOf>
<isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:slideCModel"></isContractorOf> <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:slideCModel"></isContractorOf>
<isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:herbCModel"></isContractorOf> <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:herbCModel"></isContractorOf>
<isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:mapCModel"></isContractorOf> <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:mapCModel"></isContractorOf>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream ID="METHODMAP" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastream ID="METHODMAP" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
<foxml:datastreamVersion ID="METHODMAP1.0" LABEL="Deployment Method Map" CREATED="2009-11-27T18:25:48.726Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" SIZE="298"> <foxml:datastreamVersion ID="METHODMAP1.0" LABEL="Deployment Method Map" CREATED="2009-11-27T18:25:48.726Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" SIZE="298">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This METHODMAP datastream is included as a starting point to This METHODMAP datastream is included as a starting point to
assist in the creation of a service deployment. The METHODMAP assist in the creation of a service deployment. The METHODMAP
should define the the mapping of the WSDL to Fedora object methods. should define the the mapping of the WSDL to Fedora object methods.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion ID="METHODMAP.1" LABEL="Deployment Method Map" CREATED="2009-11-27T18:30:03.064Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" SIZE="2498"> <foxml:datastreamVersion ID="METHODMAP.1" LABEL="Deployment Method Map" CREATED="2009-11-27T18:30:03.064Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" SIZE="2498">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" bDefPID="djatoka:bDef" name="MethodMap - djatoka Service Methods"> <fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" bDefPID="djatoka:bDef" name="MethodMap - djatoka Service Methods">
<fmm:Method operationName="getMetadata" wsdlMsgName="getMetadataRequest" wsdlMsgOutput="response"> <fmm:Method operationName="getMetadata" wsdlMsgName="getMetadataRequest" wsdlMsgOutput="response">
<fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"></fmm:DefaultInputParm> <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"></fmm:DefaultInputParm>
<fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"></fmm:DefaultInputParm> <fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"></fmm:DefaultInputParm>
<fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getMetadata" parmName="svc_id" passBy="VALUE" required="true"></fmm:DefaultInputParm> <fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getMetadata" parmName="svc_id" passBy="VALUE" required="true"></fmm:DefaultInputParm>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="application/json"></fmm:MethodReturnType> <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="application/json"></fmm:MethodReturnType>
</fmm:Method> </fmm:Method>
<fmm:Method operationName="getRegion" wsdlMsgName="getRegionRequest" wsdlMsgOutput="response"> <fmm:Method operationName="getRegion" wsdlMsgName="getRegionRequest" wsdlMsgOutput="response">
<fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"></fmm:DefaultInputParm> <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"></fmm:DefaultInputParm>
<fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"></fmm:DefaultInputParm> <fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"></fmm:DefaultInputParm>
<fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getRegion" parmName="svc_id" passBy="VALUE" required="true"></fmm:DefaultInputParm> <fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getRegion" parmName="svc_id" passBy="VALUE" required="true"></fmm:DefaultInputParm>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:UserInputParm defaultValue="" parmName="region" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="" parmName="region" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:UserInputParm defaultValue="0" parmName="rotate" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="0" parmName="rotate" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:UserInputParm defaultValue="-1" parmName="level" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="-1" parmName="level" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:UserInputParm defaultValue="" parmName="scale" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="" parmName="scale" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:UserInputParm defaultValue="" parmName="clayers" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="" parmName="clayers" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:UserInputParm defaultValue="image/jpeg" parmName="format" passBy="VALUE" required="false"></fmm:UserInputParm> <fmm:UserInputParm defaultValue="image/jpeg" parmName="format" passBy="VALUE" required="false"></fmm:UserInputParm>
<fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="image/jpeg"></fmm:MethodReturnType> <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="image/jpeg"></fmm:MethodReturnType>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream ID="DSINPUTSPEC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastream ID="DSINPUTSPEC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
<foxml:datastreamVersion ID="DSINPUTSPEC1.0" LABEL="Datastream Input Specification" CREATED="2009-11-27T18:25:48.726Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" SIZE="300"> <foxml:datastreamVersion ID="DSINPUTSPEC1.0" LABEL="Datastream Input Specification" CREATED="2009-11-27T18:25:48.726Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" SIZE="300">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This DSINPUTSPEC datastream is included as a starting point to This DSINPUTSPEC datastream is included as a starting point to
assist in the creation of a service deployment. The DSINPUTSPEC assist in the creation of a service deployment. The DSINPUTSPEC
should define the datastreams to be used by WSDL-defined methods. should define the datastreams to be used by WSDL-defined methods.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion ID="DSINPUTSPEC.1" LABEL="Datastream Input Specification" CREATED="2009-11-27T18:30:34.272Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" SIZE="401"> <foxml:datastreamVersion ID="DSINPUTSPEC.1" LABEL="Datastream Input Specification" CREATED="2009-11-27T18:30:34.272Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" SIZE="401">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec" label="jp2SdepInputSpec"> <fbs:DSInputSpec xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec" label="jp2SdepInputSpec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC">
<fbs:DSInputLabel>DC</fbs:DSInputLabel> <fbs:DSInputLabel>DC</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction></fbs:DSInputInstruction> <fbs:DSInputInstruction></fbs:DSInputInstruction>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream ID="WSDL" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastream ID="WSDL" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
<foxml:datastreamVersion ID="WSDL1.0" LABEL="WSDL Bindings" CREATED="2009-11-27T18:25:48.732Z" MIMETYPE="text/xml" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" SIZE="752"> <foxml:datastreamVersion ID="WSDL1.0" LABEL="WSDL Bindings" CREATED="2009-11-27T18:25:48.732Z" MIMETYPE="text/xml" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" SIZE="752">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This WSDL datastream is included as a starting point to This WSDL datastream is included as a starting point to
assist in the creation of a service deployment. The WSDL assist in the creation of a service deployment. The WSDL
should define the services provided by this should define the services provided by this
@ -205,73 +205,73 @@ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/
demo:2, demo:13, demo:20, and demo:28. demo:2, demo:13, demo:20, and demo:28.
For more information about the demonstration objects, see: For more information about the demonstration objects, see:
http://fedora-commons.org/confluence/x/AwFI. http://fedora-commons.org/confluence/x/AwFI.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion ID="WSDL.1" LABEL="WSDL Bindings" CREATED="2009-11-27T18:31:33.967Z" MIMETYPE="text/xml" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" SIZE="3258"> <foxml:datastreamVersion ID="WSDL.1" LABEL="WSDL Bindings" CREATED="2009-11-27T18:31:33.967Z" MIMETYPE="text/xml" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" SIZE="3258">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="djatoka" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Fedora Local Djatoka Service" targetNamespace="jp2SDep"> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="djatoka" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Fedora Local Djatoka Service" targetNamespace="jp2SDep">
<wsdl:message name="getMetadataRequest"> <wsdl:message name="getMetadataRequest">
<wsdl:part name="PID" type="xsd:string"></wsdl:part> <wsdl:part name="PID" type="xsd:string"></wsdl:part>
<wsdl:part name="DSID" type="xsd:string"></wsdl:part> <wsdl:part name="DSID" type="xsd:string"></wsdl:part>
<wsdl:part name="svc_id" type="xsd:string"></wsdl:part> <wsdl:part name="svc_id" type="xsd:string"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="getRegionRequest"> <wsdl:message name="getRegionRequest">
<wsdl:part name="PID" type="xsd:string"></wsdl:part> <wsdl:part name="PID" type="xsd:string"></wsdl:part>
<wsdl:part name="DSID" type="xsd:string"></wsdl:part> <wsdl:part name="DSID" type="xsd:string"></wsdl:part>
<wsdl:part name="svc_id" type="xsd:string"></wsdl:part> <wsdl:part name="svc_id" type="xsd:string"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="response"> <wsdl:message name="response">
<wsdl:part name="exhibit" type="xsd:base64Binary"></wsdl:part> <wsdl:part name="exhibit" type="xsd:base64Binary"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:portType name="FedoraDjatokaPortType"> <wsdl:portType name="FedoraDjatokaPortType">
<wsdl:operation name="getMetadata"> <wsdl:operation name="getMetadata">
<wsdl:input message="this:getMetadataRequest"></wsdl:input> <wsdl:input message="this:getMetadataRequest"></wsdl:input>
<wsdl:output message="this:response"></wsdl:output> <wsdl:output message="this:response"></wsdl:output>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="getRegion"> <wsdl:operation name="getRegion">
<wsdl:input message="this:getRegionRequest"></wsdl:input> <wsdl:input message="this:getRegionRequest"></wsdl:input>
<wsdl:output message="this:response"></wsdl:output> <wsdl:output message="this:response"></wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="FedoraDjatoka"> <wsdl:service name="FedoraDjatoka">
<wsdl:port binding="this:FedoraDjatoka_http" name="FedoraDjatoka_port"> <wsdl:port binding="this:FedoraDjatoka_http" name="FedoraDjatoka_port">
<http:address location="http://local.fedora.server/"></http:address> <http:address location="http://local.fedora.server/"></http:address>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="FedoraDjatoka_http" type="this:FedoraDjatokaPortType"> <wsdl:binding name="FedoraDjatoka_http" type="this:FedoraDjatokaPortType">
<http:binding verb="GET"></http:binding> <http:binding verb="GET"></http:binding>
<wsdl:operation name="getMetadata"> <wsdl:operation name="getMetadata">
<http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)"></http:operation> <http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)"></http:operation>
<wsdl:input> <wsdl:input>
<http:urlReplacement></http:urlReplacement> <http:urlReplacement></http:urlReplacement>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="application/json"></mime:content> <mime:content type="application/json"></mime:content>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="getRegion"> <wsdl:operation name="getRegion">
<http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&amp;svc.format=(format)&amp;svc.level=(level)&amp;svc.rotate=(rotate)&amp;svc.region=(region)&amp;svc.scale=(scale)&amp;svc.clayers=(clayers)"></http:operation> <http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&amp;svc.format=(format)&amp;svc.level=(level)&amp;svc.rotate=(rotate)&amp;svc.region=(region)&amp;svc.scale=(scale)&amp;svc.clayers=(clayers)"></http:operation>
<wsdl:input> <wsdl:input>
<http:urlReplacement></http:urlReplacement> <http:urlReplacement></http:urlReplacement>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="image/jpeg"></mime:content> <mime:content type="image/jpeg"></mime:content>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
<foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2009-11-27T18:25:48.654Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="411"> <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2009-11-27T18:25:48.654Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="411">
<foxml:xmlContent> <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"> <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:jp2Sdep-slideCModel</dc:title> <dc:title>islandora:jp2Sdep-slideCModel</dc:title>
<dc:identifier>islandora:jp2Sdep-slideCModel</dc:identifier> <dc:identifier>islandora:jp2Sdep-slideCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

466
content_models/islandora_largeimages.xml

@ -1,247 +1,247 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="islandora:largeimages" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="islandora:largeimages" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Large Images Collection"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Large Images Collection"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-12-20T16:02:16.800Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-12-20T16:02:16.800Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-12-20T16:09:32.544Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-12-20T16:09:32.544Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2010-12-20T16:02:16.800Z" <foxml:datastreamVersion CREATED="2010-12-20T16:02:16.800Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:02:16.800Z</audit:date> <audit:date>2010-12-20T16:02:16.800Z</audit:date>
<audit:justification>Fedora Object Ingested</audit:justification> <audit:justification>Fedora Object Ingested</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>addDatastream</audit:action> <audit:action>addDatastream</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:02:17.020Z</audit:date> <audit:date>2010-12-20T16:02:17.020Z</audit:date>
<audit:justification>Ingested object RELS-EXT</audit:justification> <audit:justification>Ingested object RELS-EXT</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:02:17.091Z</audit:date> <audit:date>2010-12-20T16:02:17.091Z</audit:date>
<audit:justification>Modified by Islandora API</audit:justification> <audit:justification>Modified by Islandora API</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:02:17.142Z</audit:date> <audit:date>2010-12-20T16:02:17.142Z</audit:date>
<audit:justification>Modified by Islandora API</audit:justification> <audit:justification>Modified by Islandora API</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC5"> <audit:record ID="AUDREC5">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>addDatastream</audit:action> <audit:action>addDatastream</audit:action>
<audit:componentID>COLLECTION_POLICY</audit:componentID> <audit:componentID>COLLECTION_POLICY</audit:componentID>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:02:17.213Z</audit:date> <audit:date>2010-12-20T16:02:17.213Z</audit:date>
<audit:justification>Ingested object COLLECTION_POLICY</audit:justification> <audit:justification>Ingested object COLLECTION_POLICY</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC6"> <audit:record ID="AUDREC6">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:08:27.075Z</audit:date> <audit:date>2010-12-20T16:08:27.075Z</audit:date>
<audit:justification>Fedora Object Ingested</audit:justification> <audit:justification>Fedora Object Ingested</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC7"> <audit:record ID="AUDREC7">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>addDatastream</audit:action> <audit:action>addDatastream</audit:action>
<audit:componentID>TN</audit:componentID> <audit:componentID>TN</audit:componentID>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-12-20T16:08:27.131Z</audit:date> <audit:date>2010-12-20T16:08:27.131Z</audit:date>
<audit:justification>Ingested object TN</audit:justification> <audit:justification>Ingested object TN</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC8"> <audit:record ID="AUDREC8">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>purgeDatastream</audit:action> <audit:action>purgeDatastream</audit:action>
<audit:componentID>TN</audit:componentID> <audit:componentID>TN</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-12-20T16:09:24.726Z</audit:date> <audit:date>2010-12-20T16:09:24.726Z</audit:date>
<audit:justification>DatastreamPane generated this logMessage. . . . Purged datastream (ID=TN), versions ranging from 2010-12-20T12:08:27.131Z to 2010-12-20T12:08:27.131Z. This resulted in the permanent removal of 1 datastream version(s) (2010-12-20T12:08:27.131Z) and all associated audit records.</audit:justification> <audit:justification>DatastreamPane generated this logMessage. . . . Purged datastream (ID=TN), versions ranging from 2010-12-20T12:08:27.131Z to 2010-12-20T12:08:27.131Z. This resulted in the permanent removal of 1 datastream version(s) (2010-12-20T12:08:27.131Z) and all associated audit records.</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC9"> <audit:record ID="AUDREC9">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>COLLECTION_POLICY</audit:componentID> <audit:componentID>COLLECTION_POLICY</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-12-20T16:09:32.544Z</audit:date> <audit:date>2010-12-20T16:09:32.544Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-12-20T16:02:16.800Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2010-12-20T16:02:16.800Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="397"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="397">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>Large Images Collection</dc:title> <dc:title>Large Images Collection</dc:title>
<dc:identifier>islandora:largeimages</dc:identifier> <dc:identifier>islandora:largeimages</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-12-20T16:02:17.020Z" ID="RELS-EXT.0" <foxml:datastreamVersion CREATED="2010-12-20T16:02:17.020Z" ID="RELS-EXT.0"
LABEL="Fedora object-to-object relationship metadata" MIMETYPE="text/xml" SIZE="178"> LABEL="Fedora object-to-object relationship metadata" MIMETYPE="text/xml" SIZE="178">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:largeimages"/> <rdf:Description rdf:about="info:fedora/islandora:largeimages"/>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-12-20T16:02:17.091Z" ID="RELS-EXT.1" <foxml:datastreamVersion CREATED="2010-12-20T16:02:17.091Z" ID="RELS-EXT.1"
LABEL="Fedora Object-to-Object Relationship Metadata" MIMETYPE="text/xml" SIZE="361"> LABEL="Fedora Object-to-Object Relationship Metadata" MIMETYPE="text/xml" SIZE="361">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:largeimages"> <rdf:Description rdf:about="info:fedora/islandora:largeimages">
<fedora-model:hasModel rdf:resource="info:fedora/islandora:collectionCModel" xmlns:fedora-model="info:fedora/fedora-system:def/model#"/> <fedora-model:hasModel rdf:resource="info:fedora/islandora:collectionCModel" xmlns:fedora-model="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-12-20T16:02:17.142Z" ID="RELS-EXT.2" <foxml:datastreamVersion CREATED="2010-12-20T16:02:17.142Z" ID="RELS-EXT.2"
LABEL="Fedora Object-to-Object Relationship Metadata" MIMETYPE="text/xml" SIZE="520"> LABEL="Fedora Object-to-Object Relationship Metadata" MIMETYPE="text/xml" SIZE="520">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:largeimages"> <rdf:Description rdf:about="info:fedora/islandora:largeimages">
<fedora-model:hasModel rdf:resource="info:fedora/islandora:collectionCModel" xmlns:fedora-model="info:fedora/fedora-system:def/model#"/> <fedora-model:hasModel rdf:resource="info:fedora/islandora:collectionCModel" xmlns:fedora-model="info:fedora/fedora-system:def/model#"/>
<isMemberOfCollection rdf:resource="info:fedora/islandora:demos" xmlns="info:fedora/fedora-system:def/relations-external#"/> <isMemberOfCollection rdf:resource="info:fedora/islandora:demos" xmlns="info:fedora/fedora-system:def/relations-external#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="COLLECTION_POLICY" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="COLLECTION_POLICY" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-12-20T16:02:17.213Z" ID="COLLECTION_POLICY.0" LABEL="Large Images Collection" <foxml:datastreamVersion CREATED="2010-12-20T16:02:17.213Z" ID="COLLECTION_POLICY.0" LABEL="Large Images Collection"
MIMETYPE="text/xml" SIZE="2533"> MIMETYPE="text/xml" SIZE="2533">
<foxml:xmlContent> <foxml:xmlContent>
<collection_policy name="Large Images Collection"> <collection_policy name="Large Images Collection">
<contentmodels> <contentmodels>
<contentmodel name="SLIDE_CMODEL"> <contentmodel name="SLIDE_CMODEL">
<pid_namespace>islandora:slide</pid_namespace> <pid_namespace>islandora:slide</pid_namespace>
<pid>islandora:slideCModel</pid> <pid>islandora:slideCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
<contentmodel name="MAP_CMODEL"> <contentmodel name="MAP_CMODEL">
<pid_namespace>islandora:map</pid_namespace> <pid_namespace>islandora:map</pid_namespace>
<pid>islandora:mapCModel</pid> <pid>islandora:mapCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
<contentmodel name="HERB_CMODEL"> <contentmodel name="HERB_CMODEL">
<pid_namespace>islandora:herb</pid_namespace> <pid_namespace>islandora:herb</pid_namespace>
<pid>islandora:herbCModel</pid> <pid>islandora:herbCModel</pid>
<dsid>ISLANDORACM</dsid> <dsid>ISLANDORACM</dsid>
</contentmodel> </contentmodel>
</contentmodels> </contentmodels>
<relationship>isMemberOfCollection</relationship> <relationship>isMemberOfCollection</relationship>
<search_terms> <search_terms>
<default>dc.description</default> <default>dc.description</default>
<term> <term>
<field>dc.title</field> <field>dc.title</field>
<value>dc.title</value> <value>dc.title</value>
</term> </term>
<term> <term>
<field>dc.creator</field> <field>dc.creator</field>
<value>dc.creator</value> <value>dc.creator</value>
</term> </term>
<term> <term>
<field>dc.description</field> <field>dc.description</field>
<value>dc.description</value> <value>dc.description</value>
</term> </term>
<term> <term>
<field>dc.date</field> <field>dc.date</field>
<value>dc.date</value> <value>dc.date</value>
</term> </term>
<term> <term>
<field>dc.identifier</field> <field>dc.identifier</field>
<value>dc.identifier</value> <value>dc.identifier</value>
</term> </term>
<term> <term>
<field>dc.language</field> <field>dc.language</field>
<value>dc.language</value> <value>dc.language</value>
</term> </term>
<term> <term>
<field>dc.publisher</field> <field>dc.publisher</field>
<value>dc.publisher</value> <value>dc.publisher</value>
</term> </term>
<term> <term>
<field>dc.rights</field> <field>dc.rights</field>
<value>dc.rights</value> <value>dc.rights</value>
</term> </term>
<term> <term>
<field>dc.subject</field> <field>dc.subject</field>
<value>dc.subject</value> <value>dc.subject</value>
</term> </term>
<term> <term>
<field>dc.relation</field> <field>dc.relation</field>
<value>dc.relation</value> <value>dc.relation</value>
</term> </term>
<term> <term>
<field>dcterms.temporal</field> <field>dcterms.temporal</field>
<value>dcterms.temporal</value> <value>dcterms.temporal</value>
</term> </term>
<term> <term>
<field>dcterms.spatial</field> <field>dcterms.spatial</field>
<value>dcterms.spatial</value> <value>dcterms.spatial</value>
</term> </term>
<term> <term>
<field>fgs.DS.first.text</field> <field>fgs.DS.first.text</field>
<value>Full Text</value> <value>Full Text</value>
</term> </term>
</search_terms> </search_terms>
</collection_policy> </collection_policy>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-12-20T16:09:32.544Z" ID="COLLECTION_POLICY.1" LABEL="Large Images Collection" <foxml:datastreamVersion CREATED="2010-12-20T16:09:32.544Z" ID="COLLECTION_POLICY.1" LABEL="Large Images Collection"
MIMETYPE="text/xml" SIZE="1428"> MIMETYPE="text/xml" SIZE="1428">
<foxml:xmlContent> <foxml:xmlContent>
<collection_policy name="Large Images Collection" xmlns="http://www.islandora.ca" <collection_policy name="Large Images Collection" xmlns="http://www.islandora.ca"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://syn.lib.umanitoba.ca/collection_policy.xsd">
<content_models> <content_models>
<content_model dsid="ISLANDORACM" name="SLIDE_CMODEL" namespace="islandora:slide" pid="islandora:slideCModel"/> <content_model dsid="ISLANDORACM" name="SLIDE_CMODEL" namespace="islandora:slide" pid="islandora:slideCModel"/>
<content_model dsid="ISLANDORACM" name="MAP_CMODEL" namespace="islandora:map" pid="islandora:mapCModel"/> <content_model dsid="ISLANDORACM" name="MAP_CMODEL" namespace="islandora:map" pid="islandora:mapCModel"/>
<content_model dsid="ISLANDORACM" name="HERB_CMODEL" namespace="islandora:herb" pid="islandora:herbCModel"/> <content_model dsid="ISLANDORACM" name="HERB_CMODEL" namespace="islandora:herb" pid="islandora:herbCModel"/>
</content_models> </content_models>
<search_terms> <search_terms>
<term field="dc.title">dc.title</term> <term field="dc.title">dc.title</term>
<term field="dc.creator">dc.creator</term> <term field="dc.creator">dc.creator</term>
<term default="true" field="dc.description">dc.description</term> <term default="true" field="dc.description">dc.description</term>
<term field="dc.date">dc.date</term> <term field="dc.date">dc.date</term>
<term field="dc.identifier">dc.identifier</term> <term field="dc.identifier">dc.identifier</term>
<term field="dc.language">dc.language</term> <term field="dc.language">dc.language</term>
<term field="dc.publisher">dc.publisher</term> <term field="dc.publisher">dc.publisher</term>
<term field="dc.rights">dc.rights</term> <term field="dc.rights">dc.rights</term>
<term field="dc.subject">dc.subject</term> <term field="dc.subject">dc.subject</term>
<term field="dc.relation">dc.relation</term> <term field="dc.relation">dc.relation</term>
<term field="dcterms.temporal">dcterms.temporal</term> <term field="dcterms.temporal">dcterms.temporal</term>
<term field="dcterms.spatial">dcterms.spatial</term> <term field="dcterms.spatial">dcterms.spatial</term>
<term field="fgs.DS.first.text">Full Text</term> <term field="fgs.DS.first.text">Full Text</term>
</search_terms> </search_terms>
<relationship>isMemberOfCollection</relationship> <relationship>isMemberOfCollection</relationship>
</collection_policy> </collection_policy>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

672
content_models/islandora_mapCModel.xml

@ -1,73 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="islandora:mapCModel" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="islandora:mapCModel" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Islandora Map Content Model"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Islandora Map Content Model"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-05-25T12:52:58.656Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-05-25T12:52:58.656Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-09-16T16:13:49.927Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-09-16T16:13:49.927Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2010-05-25T12:52:58.656Z" <foxml:datastreamVersion CREATED="2010-05-25T12:52:58.656Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-05-25T12:52:58.656Z</audit:date> <audit:date>2010-05-25T12:52:58.656Z</audit:date>
<audit:justification>Created with Admin GUI "New Object" command</audit:justification> <audit:justification>Created with Admin GUI "New Object" command</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>addDatastream</audit:action> <audit:action>addDatastream</audit:action>
<audit:componentID>ISLANDORACM</audit:componentID> <audit:componentID>ISLANDORACM</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-05-25T12:53:38.788Z</audit:date> <audit:date>2010-05-25T12:53:38.788Z</audit:date>
<audit:justification>DatastreamsPane generated this logMessage.</audit:justification> <audit:justification>DatastreamsPane generated this logMessage.</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-09-16T16:13:13.388Z</audit:date> <audit:date>2010-09-16T16:13:13.388Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/fedora_repository/content_models/islandora_mapCModel.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/fedora_repository/content_models/islandora_mapCModel.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>ISLANDORACM</audit:componentID> <audit:componentID>ISLANDORACM</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-09-16T16:13:49.927Z</audit:date> <audit:date>2010-09-16T16:13:49.927Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-05-25T12:52:58.744Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-05-25T12:52:58.744Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="363"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="363">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:mapCModel"> <rdf:Description rdf:about="info:fedora/islandora:mapCModel">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ContentModel-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DS-COMPOSITE-MODEL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DS-COMPOSITE-MODEL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-05-25T12:52:58.745Z" <foxml:datastreamVersion CREATED="2010-05-25T12:52:58.745Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0" ID="DS-COMPOSITE-MODEL1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSCompositeModel-1.0" ID="DS-COMPOSITE-MODEL1.0"
LABEL="Datastream Composite Model" MIMETYPE="text/xml" SIZE="1120"> LABEL="Datastream Composite Model" MIMETYPE="text/xml" SIZE="1120">
<foxml:xmlContent> <foxml:xmlContent>
<dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#"> <dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#">
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This DS-COMPOSITE-MODEL datastream is included as a starting point to This DS-COMPOSITE-MODEL datastream is included as a starting point to
assist in the creation of a content model. The DS-COMPOSITE-MODEL assist in the creation of a content model. The DS-COMPOSITE-MODEL
should define the datastreams that are required for any objects should define the datastreams that are required for any objects
@ -80,287 +80,287 @@
demo:TEI_TO_PDFDOC, and demo:XML_TO_HTMLDOC. demo:TEI_TO_PDFDOC, and demo:XML_TO_HTMLDOC.
For more information about the demonstration objects, see: For more information about the demonstration objects, see:
http://fedora-commons.org/confluence/x/AwFI. http://fedora-commons.org/confluence/x/AwFI.
</comment> </comment>
<dsTypeModel ID="DSID"> <dsTypeModel ID="DSID">
<form MIME="text/xml"/> <form MIME="text/xml"/>
</dsTypeModel> </dsTypeModel>
</dsCompositeModel> </dsCompositeModel>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-05-25T12:52:58.656Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2010-05-25T12:52:58.656Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="399"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="399">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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 Map Content Model</dc:title> <dc:title>Islandora Map Content Model</dc:title>
<dc:identifier>islandora:mapCModel</dc:identifier> <dc:identifier>islandora:mapCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="ISLANDORACM" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="ISLANDORACM" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-05-25T12:53:38.788Z" ID="ISLANDORACM.0" <foxml:datastreamVersion CREATED="2010-05-25T12:53:38.788Z" ID="ISLANDORACM.0"
LABEL="Islandora Content Model Object" MIMETYPE="text/xml" SIZE="7098"> LABEL="Islandora Content Model Object" MIMETYPE="text/xml" SIZE="7098">
<foxml:xmlContent> <foxml:xmlContent>
<content_model name="Standard_Map"> <content_model name="Standard_Map">
<mimetypes> <mimetypes>
<type>image/tiff</type> <type>image/tiff</type>
<type>image/tif</type> <type>image/tif</type>
</mimetypes> </mimetypes>
<display_in_fieldset> <display_in_fieldset>
<datastream id="JPG"> <datastream id="JPG">
<method> <method>
<file>plugins/map_viewer.inc</file> <file>plugins/map_viewer.inc</file>
<class_name>ShowMapStreamsInFieldSets</class_name> <class_name>ShowMapStreamsInFieldSets</class_name>
<method_name>showJPG</method_name> <method_name>showJPG</method_name>
</method> </method>
</datastream> </datastream>
<datastream id="JP2"/> <datastream id="JP2"/>
<datastream id="FULL_SIZE"/> <datastream id="FULL_SIZE"/>
<datastream id="FULL_JPG"/> <datastream id="FULL_JPG"/>
<datastream id="DC"/> <datastream id="DC"/>
<datastream id="MODS"/> <datastream id="MODS"/>
</display_in_fieldset> </display_in_fieldset>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to> <applies_to>
image/tiff image/tiff
</applies_to> </applies_to>
<applies_to> <applies_to>
image/tif image/tif
</applies_to> </applies_to>
<methods> <methods>
<method> <method>
<file>plugins/ImageManipulation.inc</file> <file>plugins/ImageManipulation.inc</file>
<class_name>ImageManipulation</class_name> <class_name>ImageManipulation</class_name>
<method_name>createJP2</method_name> <method_name>createJP2</method_name>
<modified_files_ext>jp2</modified_files_ext> <modified_files_ext>jp2</modified_files_ext>
<datastream_id>JP2</datastream_id> <datastream_id>JP2</datastream_id>
</method> </method>
</methods> </methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method> <form_builder_method>
<file>plugins/DemoFormBuilder.inc</file> <file>plugins/DemoFormBuilder.inc</file>
<class_name>DemoFormBuilder</class_name> <class_name>DemoFormBuilder</class_name>
<method_name>buildQDCForm</method_name> <method_name>buildQDCForm</method_name>
<form_handler>handleQDCForm</form_handler> <form_handler>handleQDCForm</form_handler>
</form_builder_method> </form_builder_method>
<form_elements> <form_elements>
<element> <element>
<label>Title/Caption/Image Name</label> <label>Title/Caption/Image Name</label>
<name>dc:title</name> <name>dc:title</name>
<type>textfield</type> <type>textfield</type>
<description>The name given to the resource</description> <description>The name given to the resource</description>
<required>true</required> <required>true</required>
</element> </element>
<element> <element>
<label>Creator/Photographer</label> <label>Creator/Photographer</label>
<name>dc:creator</name> <name>dc:creator</name>
<type>textfield</type> <type>textfield</type>
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Subject</label> <label>Subject</label>
<name>dc:subject</name> <name>dc:subject</name>
<type>select</type> <type>select</type>
<description>Subject</description> <description>Subject</description>
<required>false</required> <required>false</required>
<authoritative_list> <authoritative_list>
<item> <item>
<field>image</field> <field>image</field>
<value>image</value> <value>image</value>
</item> </item>
<item> <item>
<field>photograph</field> <field>photograph</field>
<value>photograph</value> <value>photograph</value>
</item> </item>
<item> <item>
<field>presentation</field> <field>presentation</field>
<value>presentation</value> <value>presentation</value>
</item> </item>
<item> <item>
<field>art</field> <field>art</field>
<value>art</value> <value>art</value>
</item> </item>
</authoritative_list> </authoritative_list>
</element> </element>
<element> <element>
<label>Description</label> <label>Description</label>
<name>dc:description</name> <name>dc:description</name>
<type>textarea</type> <type>textarea</type>
<description>Description of the Image</description> <description>Description of the Image</description>
<required>true</required> <required>true</required>
</element> </element>
<element> <element>
<label>Publisher</label> <label>Publisher</label>
<name>dc:publisher</name> <name>dc:publisher</name>
<type>textfield</type> <type>textfield</type>
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Contributor</label> <label>Contributor</label>
<name>dc:contributor</name> <name>dc:contributor</name>
<type>textfield</type> <type>textfield</type>
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Date</label> <label>Date</label>
<name>dc:date</name> <name>dc:date</name>
<type>textfield</type> <type>textfield</type>
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Resource Type</label> <label>Resource Type</label>
<name>dc:type</name> <name>dc:type</name>
<type>textfield</type> <type>textfield</type>
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Source</label> <label>Source</label>
<name>dc:source</name> <name>dc:source</name>
<type>textfield</type> <type>textfield</type>
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Identifier</label> <label>Identifier</label>
<name>dc:identifier</name> <name>dc:identifier</name>
<type>textfield</type> <type>textfield</type>
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Language</label> <label>Language</label>
<name>dc:language</name> <name>dc:language</name>
<type>select</type> <type>select</type>
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<required>false</required> <required>false</required>
<authoritative_list> <authoritative_list>
<item> <item>
<field>eng</field> <field>eng</field>
<value>English</value> <value>English</value>
</item> </item>
<item> <item>
<field>fre</field> <field>fre</field>
<value>French</value> <value>French</value>
</item> </item>
</authoritative_list> </authoritative_list>
</element> </element>
<element> <element>
<label>Relation</label> <label>Relation</label>
<name>dc:relation</name> <name>dc:relation</name>
<type>textfield</type> <type>textfield</type>
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
<required>false</required> <required>false</required>
</element> </element>
<element> <element>
<label>Rights Management</label> <label>Rights Management</label>
<name>dc:rights</name> <name>dc:rights</name>
<type>textarea</type> <type>textarea</type>
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
<required>false</required> <required>false</required>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-09-16T16:13:49.927Z" ID="ISLANDORACM.1" <foxml:datastreamVersion CREATED="2010-09-16T16:13:49.927Z" ID="ISLANDORACM.1"
LABEL="Islandora Content Model Object" MIMETYPE="text/xml" SIZE="4279"> LABEL="Islandora Content Model Object" MIMETYPE="text/xml" SIZE="4279">
<foxml:xmlContent> <foxml:xmlContent>
<content_model name="Standard_Map" xmlns="http://www.islandora.ca" <content_model name="Standard_Map" xmlns="http://www.islandora.ca"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>image/tiff</type> <type>image/tiff</type>
<type>image/tif</type> <type>image/tif</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to>image/tiff</applies_to> <applies_to>image/tiff</applies_to>
<applies_to>image/tif</applies_to> <applies_to>image/tif</applies_to>
<ingest_methods> <ingest_methods>
<ingest_method class="ImageManipulation" dsid="JP2" file="plugins/ImageManipulation.inc" <ingest_method class="ImageManipulation" dsid="JP2" file="plugins/ImageManipulation.inc"
method="createJP2" modified_files_ext="jp2" module=""/> method="createJP2" modified_files_ext="jp2" module=""/>
</ingest_methods> </ingest_methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<datastreams> <datastreams>
<datastream dsid="JPG"> <datastream dsid="JPG">
<display_method class="ShowMapStreamsInFieldSets" file="plugins/map_viewer.inc" method="showJPG" module=""/> <display_method class="ShowMapStreamsInFieldSets" file="plugins/map_viewer.inc" method="showJPG" module=""/>
</datastream> </datastream>
<datastream dsid="JP2"/> <datastream dsid="JP2"/>
<datastream dsid="FULL_SIZE"/> <datastream dsid="FULL_SIZE"/>
<datastream dsid="FULL_JPG"/> <datastream dsid="FULL_JPG"/>
<datastream dsid="DC"/> <datastream dsid="DC"/>
<datastream dsid="MODS"/> <datastream dsid="MODS"/>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method class="DemoFormBuilder" file="plugins/DemoFormBuilder.inc" handler="handleQDCForm" <form_builder_method class="DemoFormBuilder" file="plugins/DemoFormBuilder.inc" handler="handleQDCForm"
method="buildQDCForm" module=""/> method="buildQDCForm" module=""/>
<form_elements> <form_elements>
<element label="Title/Caption/Image Name" name="dc:title" required="true" type="textfield"> <element label="Title/Caption/Image Name" name="dc:title" required="true" type="textfield">
<description>The name given to the resource</description> <description>The name given to the resource</description>
</element> </element>
<element label="Creator/Photographer" name="dc:creator" type="textfield"> <element label="Creator/Photographer" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description> <description>An entity primarily responsible for making the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Subject" name="dc:subject" type="select"> <element label="Subject" name="dc:subject" type="select">
<description>Subject</description> <description>Subject</description>
<authoritative_list> <authoritative_list>
<item>image</item> <item>image</item>
<item>photograph</item> <item>photograph</item>
<item>presentation</item> <item>presentation</item>
<item>art</item> <item>art</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Description" name="dc:description" required="true" type="textarea"> <element label="Description" name="dc:description" required="true" type="textarea">
<description>Description of the Image</description> <description>Description of the Image</description>
</element> </element>
<element label="Publisher" name="dc:publisher" type="textfield"> <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description> <description>An entity, (including persons, organizations, or services), responsible for making the resource available.</description>
</element> </element>
<element label="Contributor" name="dc:contributor" type="textfield"> <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description> <description>An entity responsible for contributing to the content of the resource such as a person, organization or service.</description>
</element> </element>
<element label="Date" name="dc:date" type="textfield"> <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description> <description>Temporal scope of the content if known. Date format is YYYY-MM-DD (e.g. 1890,1910-10,or 2007-10-23)</description>
</element> </element>
<element label="Resource Type" name="dc:type" type="textfield"> <element label="Resource Type" name="dc:type" type="textfield">
<description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description> <description>Genre of the content of the resource. Examples include: home page, novel, poem, working paper, technical report, essay, dictionary.</description>
</element> </element>
<element label="Source" name="dc:source" type="textfield"> <element label="Source" name="dc:source" type="textfield">
<description>A reference to a resource from which the present resource is derived.</description> <description>A reference to a resource from which the present resource is derived.</description>
</element> </element>
<element label="Identifier" name="dc:identifier" type="textfield"> <element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this instance, the accession number or collection number.</description> <description>A unique reference to the resource; In this instance, the accession number or collection number.</description>
</element> </element>
<element label="Language" name="dc:language" type="select"> <element label="Language" name="dc:language" type="select">
<description>The language of the intellectual content of the resource.</description> <description>The language of the intellectual content of the resource.</description>
<authoritative_list> <authoritative_list>
<item field="eng">English</item> <item field="eng">English</item>
<item field="fre">French</item> <item field="fre">French</item>
</authoritative_list> </authoritative_list>
</element> </element>
<element label="Relation" name="dc:relation" type="textfield"> <element label="Relation" name="dc:relation" type="textfield">
<description>Reference to a related resource.</description> <description>Reference to a related resource.</description>
</element> </element>
<element label="Rights Management" name="dc:rights" type="textarea"> <element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property rights, copyright, and various property rights.</description> <description>Information about intellectual property rights, copyright, and various property rights.</description>
</element> </element>
</form_elements> </form_elements>
</ingest_form> </ingest_form>
</content_model> </content_model>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

172
content_models/islandora_mods2htmlSdef.xml

@ -1,73 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="islandora:mods2htmlSdef" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="islandora:mods2htmlSdef" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="MODS to HTML Disseminator"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="MODS to HTML Disseminator"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-03-12T14:57:03.509Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-03-12T14:57:03.509Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-25T13:17:13.492Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-25T13:17:13.492Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2010-03-12T14:57:03.509Z" <foxml:datastreamVersion CREATED="2010-03-12T14:57:03.509Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T14:57:03.509Z</audit:date> <audit:date>2010-03-12T14:57:03.509Z</audit:date>
<audit:justification>Created with Admin GUI "New Object" command</audit:justification> <audit:justification>Created with Admin GUI "New Object" command</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>METHODMAP</audit:componentID> <audit:componentID>METHODMAP</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:12:03.341Z</audit:date> <audit:date>2010-03-12T15:12:03.341Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T17:28:34.323Z</audit:date> <audit:date>2010-03-12T17:28:34.323Z</audit:date>
<audit:justification>Ingested from local file /Users/aoneill/fedora_repository/content_models/islandora-mods2htmlSdef.xml</audit:justification> <audit:justification>Ingested from local file /Users/aoneill/fedora_repository/content_models/islandora-mods2htmlSdef.xml</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-05-25T13:17:13.492Z</audit:date> <audit:date>2010-05-25T13:17:13.492Z</audit:date>
<audit:justification>Fedora Object Ingested</audit:justification> <audit:justification>Fedora Object Ingested</audit:justification>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T14:57:03.602Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-03-12T14:57:03.602Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="372"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="372">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdef"> <rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdef">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T14:57:03.602Z" <foxml:datastreamVersion CREATED="2010-03-12T14:57:03.602Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP1.0" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP1.0" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="1005"> MIMETYPE="text/xml" SIZE="1005">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="Fedora MethodMap for SDef" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="Fedora MethodMap for SDef" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This METHODMAP datastream is included as a starting point to This METHODMAP datastream is included as a starting point to
assist in the creation of a service definition. The METHODMAP assist in the creation of a service definition. The METHODMAP
should define the methods and method parameters for this should define the methods and method parameters for this
@ -79,32 +79,32 @@
demo:1, demo:12, demo: 19, and demo:27. demo:1, demo:12, demo: 19, and demo:27.
For more information about the demonstration objects, see: For more information about the demonstration objects, see:
http://fedora-commons.org/confluence/x/AwFI. http://fedora-commons.org/confluence/x/AwFI.
</comment> </comment>
<fmm:Method operationName="changeme"/> <fmm:Method operationName="changeme"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-03-12T15:12:03.341Z" <foxml:datastreamVersion CREATED="2010-03-12T15:12:03.341Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.1" LABEL="Abstract Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDefMethodMap-1.0" ID="METHODMAP.1" LABEL="Abstract Method Map"
MIMETYPE="text/xml" SIZE="181"> MIMETYPE="text/xml" SIZE="181">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="mods2html"/> <fmm:Method operationName="mods2html"/>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T14:57:03.509Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2010-03-12T14:57:03.509Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="401"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="401">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>MODS to HTML Disseminator</dc:title> <dc:title>MODS to HTML Disseminator</dc:title>
<dc:identifier>islandora:mods2htmlSdef</dc:identifier> <dc:identifier>islandora:mods2htmlSdef</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

848
content_models/islandora_mods2htmlSdep.xml

@ -1,188 +1,188 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="islandora:mods2htmlSdep" VERSION="1.1" xmlns:foxml="info:fedora/fedora-system:def/foxml#" <foxml:digitalObject PID="islandora:mods2htmlSdep" VERSION="1.1" 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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="MODS to HTML Disseminator Service Deployment"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="MODS to HTML Disseminator Service Deployment"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-03-12T15:14:29.138Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-03-12T15:14:29.138Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T01:05:17.111Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-06-01T01:05:17.111Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2010-03-12T15:14:29.138Z" <foxml:datastreamVersion CREATED="2010-03-12T15:14:29.138Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:14:29.138Z</audit:date> <audit:date>2010-03-12T15:14:29.138Z</audit:date>
<audit:justification>Created with Admin GUI "New Object" command</audit:justification> <audit:justification>Created with Admin GUI "New Object" command</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>addDatastream</audit:action> <audit:action>addDatastream</audit:action>
<audit:componentID>XSL</audit:componentID> <audit:componentID>XSL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:17:20.270Z</audit:date> <audit:date>2010-03-12T15:17:20.270Z</audit:date>
<audit:justification>DatastreamsPane generated this logMessage.</audit:justification> <audit:justification>DatastreamsPane generated this logMessage.</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:18:27.234Z</audit:date> <audit:date>2010-03-12T15:18:27.234Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>METHODMAP</audit:componentID> <audit:componentID>METHODMAP</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:21:44.430Z</audit:date> <audit:date>2010-03-12T15:21:44.430Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC5"> <audit:record ID="AUDREC5">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>DSINPUTSPEC</audit:componentID> <audit:componentID>DSINPUTSPEC</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:23:21.361Z</audit:date> <audit:date>2010-03-12T15:23:21.361Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC6"> <audit:record ID="AUDREC6">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>WSDL</audit:componentID> <audit:componentID>WSDL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-12T15:27:58.299Z</audit:date> <audit:date>2010-03-12T15:27:58.299Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC7"> <audit:record ID="AUDREC7">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>admin</audit:responsibility> <audit:responsibility>admin</audit:responsibility>
<audit:date>2010-05-25T13:17:13.612Z</audit:date> <audit:date>2010-05-25T13:17:13.612Z</audit:date>
<audit:justification>Fedora Object Ingested</audit:justification> <audit:justification>Fedora Object Ingested</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC8"> <audit:record ID="AUDREC8">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-06-01T01:05:17.111Z</audit:date> <audit:date>2010-06-01T01:05:17.111Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T15:14:29.172Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-03-12T15:14:29.172Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="612"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="612">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdep"> <rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdep">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/>
<fedora-model:isDeploymentOf rdf:resource="info:fedora/changeme-to-sDefPid"/> <fedora-model:isDeploymentOf rdf:resource="info:fedora/changeme-to-sDefPid"/>
<fedora-model:isContractorOf rdf:resource="info:fedora/changeme-to-cModelPid"/> <fedora-model:isContractorOf rdf:resource="info:fedora/changeme-to-cModelPid"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-03-12T15:18:27.234Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-03-12T15:18:27.234Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="613"> ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="613">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdep"> <rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdep">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/islandora:mods2htmlSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/islandora:mods2htmlSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-06-01T01:05:17.111Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-06-01T01:05:17.111Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.2" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="698"> ID="RELS-EXT.2" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="698">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdep"> <rdf:Description rdf:about="info:fedora/islandora:mods2htmlSdep">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/islandora:mods2htmlSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/islandora:mods2htmlSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/newspapers:issueCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/newspapers:issueCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T15:14:29.172Z" <foxml:datastreamVersion CREATED="2010-03-12T15:14:29.172Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="298"> MIMETYPE="text/xml" SIZE="298">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This METHODMAP datastream is included as a starting point to This METHODMAP datastream is included as a starting point to
assist in the creation of a service deployment. The METHODMAP assist in the creation of a service deployment. The METHODMAP
should define the the mapping of the WSDL to Fedora object methods. should define the the mapping of the WSDL to Fedora object methods.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-03-12T15:21:44.430Z" <foxml:datastreamVersion CREATED="2010-03-12T15:21:44.430Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.1" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.1" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="698"> MIMETYPE="text/xml" SIZE="698">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="mods2html" wsdlMsgName="mods2htmlRequestMsg" wsdlMsgOutput="response"> <fmm:Method operationName="mods2html" wsdlMsgName="mods2htmlRequestMsg" wsdlMsgOutput="response">
<fmm:DatastreamInputParm parmName="MODS" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm parmName="MODS" passBy="URL_REF" required="true"/>
<fmm:DatastreamInputParm parmName="XSL" passBy="URL_REF" required="true"/> <fmm:DatastreamInputParm parmName="XSL" passBy="URL_REF" required="true"/>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/>
<fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="text/html"/> <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="text/html"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T15:14:29.172Z" <foxml:datastreamVersion CREATED="2010-03-12T15:14:29.172Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="300"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="300">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This DSINPUTSPEC datastream is included as a starting point to This DSINPUTSPEC datastream is included as a starting point to
assist in the creation of a service deployment. The DSINPUTSPEC assist in the creation of a service deployment. The DSINPUTSPEC
should define the datastreams to be used by WSDL-defined methods. should define the datastreams to be used by WSDL-defined methods.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-03-12T15:23:21.361Z" <foxml:datastreamVersion CREATED="2010-03-12T15:23:21.361Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="714"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="714">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="mods2htmlSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="mods2htmlSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="MODS"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="MODS">
<fbs:DSInputLabel>MODS</fbs:DSInputLabel> <fbs:DSInputLabel>MODS</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" pid="islandora:mods2htmlSdep" wsdlMsgPartName="XSL"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" pid="islandora:mods2htmlSdep" wsdlMsgPartName="XSL">
<fbs:DSInputLabel>XSL</fbs:DSInputLabel> <fbs:DSInputLabel>XSL</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T15:14:29.178Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2010-03-12T15:14:29.178Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="752"> ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="752">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This WSDL datastream is included as a starting point to This WSDL datastream is included as a starting point to
assist in the creation of a service deployment. The WSDL assist in the creation of a service deployment. The WSDL
should define the services provided by this should define the services provided by this
@ -194,271 +194,279 @@
demo:2, demo:13, demo:20, and demo:28. demo:2, demo:13, demo:20, and demo:28.
For more information about the demonstration objects, see: For more information about the demonstration objects, see:
http://fedora-commons.org/confluence/x/AwFI. http://fedora-commons.org/confluence/x/AwFI.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-03-12T15:27:58.299Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2010-03-12T15:27:58.299Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL.1" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1953"> ID="WSDL.1" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1953">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="mods2htmlSdep" targetNamespace="mods2htmlSdep" <wsdl:definitions name="mods2htmlSdep" targetNamespace="mods2htmlSdep"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="mods2htmlSdep" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="mods2htmlSdep"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="mods2htmlRequestMsg"> <wsdl:message name="mods2htmlRequestMsg">
<wsdl:part name="MODS" type="xsd:string"/> <wsdl:part name="MODS" type="xsd:string"/>
<wsdl:part name="XSL" type="xsd:string"/> <wsdl:part name="XSL" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="response"> <wsdl:message name="response">
<wsdl:part name="exhibit" type="xsd:base64Binary"/> <wsdl:part name="exhibit" type="xsd:base64Binary"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="mods2html_portType"> <wsdl:portType name="mods2html_portType">
<wsdl:operation name="mods2html"> <wsdl:operation name="mods2html">
<wsdl:input message="this:mods2htmlRequestMsg"/> <wsdl:input message="this:mods2htmlRequestMsg"/>
<wsdl:output message="this:response"/> <wsdl:output message="this:response"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="mods2html_service"> <wsdl:service name="mods2html_service">
<wsdl:port binding="this:mods2html_binding" name="mods2html_port"> <wsdl:port binding="this:mods2html_binding" name="mods2html_port">
<http:address location="http://local.fedora.server/saxon/"/> <http:address location="http://local.fedora.server/saxon/"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="mods2html_binding" type="this:mods2html_portType"> <wsdl:binding name="mods2html_binding" type="this:mods2html_portType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="mods2html"> <wsdl:operation name="mods2html">
<http:operation location="SaxonServlet?source=(MODS)&amp;style=(XSL)&amp;clear-stylesheet-cache=yes"/> <http:operation location="SaxonServlet?source=(MODS)&amp;style=(XSL)&amp;clear-stylesheet-cache=yes"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/html"/> <mime:content type="text/html"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T15:14:29.138Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2010-03-12T15:14:29.138Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="420"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="420">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>MODS to HTML Disseminator Service Deployment</dc:title> <dc:title>MODS to HTML Disseminator Service Deployment</dc:title>
<dc:identifier>islandora:mods2htmlSdep</dc:identifier> <dc:identifier>islandora:mods2htmlSdep</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="XSL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="XSL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2010-03-12T15:17:20.270Z" ID="XSL.0" <foxml:datastreamVersion CREATED="2010-03-12T15:17:20.270Z" ID="XSL.0"
LABEL="MODS to HTML XSLT Transformation Stylesheet" MIMETYPE="text/xml" SIZE="8864"> LABEL="MODS to HTML XSLT Transformation Stylesheet" MIMETYPE="text/xml" SIZE="8864">
<foxml:xmlContent> <foxml:xmlContent>
<xsl:stylesheet exclude-result-prefixes="mods" version="1.0" xmlns:mods="http://www.loc.gov/mods/v3" <xsl:stylesheet exclude-result-prefixes="mods" version="1.0" xmlns:mods="http://www.loc.gov/mods/v3"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="html"/> <xsl:output indent="yes" method="html"/>
<xsl:variable name="dictionary" select="document('http://www.loc.gov/standards/mods/modsDictionary.xml')/dictionary"/> <xsl:variable name="dictionary" select="document('http://www.loc.gov/standards/mods/modsDictionary.xml')/dictionary"/>
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
<head> <head>
<style type="text/css">TD {vertical-align:top}</style> <style type="text/css">TD {vertical-align:top}</style>
</head> </head>
<body> <body>
<xsl:choose> <xsl:choose>
<xsl:when test="mods:modsCollection"> <xsl:when test="mods:modsCollection">
<xsl:apply-templates select="mods:modsCollection"/> <xsl:apply-templates select="mods:modsCollection"/>
</xsl:when> </xsl:when>
<xsl:when test="mods:mods"> <xsl:when test="mods:mods">
<xsl:apply-templates select="mods:mods"/> <xsl:apply-templates select="mods:mods"/>
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
<xsl:template match="mods:modsCollection"> <xsl:template match="mods:modsCollection">
<xsl:apply-templates select="mods:mods"/> <xsl:apply-templates select="mods:mods"/>
</xsl:template> </xsl:template>
<xsl:template match="mods:mods"> <xsl:template match="mods:mods">
<table> <table>
<xsl:apply-templates/> <xsl:apply-templates/>
</table> </table>
<hr/> <hr/>
</xsl:template> </xsl:template>
<xsl:template match="*"> <xsl:template match="*">
<xsl:choose> <xsl:choose>
<xsl:when test="child::*"> <xsl:when test="child::*">
<tr> <tr>
<td colspan="2"> <td colspan="2">
<b> <b>
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</b> </b>
</td> </td>
</tr> </tr>
<xsl:apply-templates mode="level2"/> <xsl:apply-templates mode="level2"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<tr> <tr>
<td width="300pt"> <td width="300pt">
<b> <b>
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</b> </b>
</td> </td>
<td> <td>
<xsl:call-template name="formatValue"/> <xsl:call-template name="formatValue"/>
</td> </td>
</tr> </tr>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="formatValue"> <xsl:template name="formatValue">
<xsl:choose> <xsl:choose>
<xsl:when test="@type='uri'"> <xsl:when test="@type='uri'">
<a href="{text()}"> <a href="{text()}">
<xsl:value-of select="text()"/> <xsl:value-of select="text()"/>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="text()"/> <xsl:value-of select="text()"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="*" mode="level2"> <xsl:template match="*" mode="level2">
<xsl:choose> <xsl:choose>
<xsl:when test="child::*"> <xsl:when test="child::*">
<tr> <tr>
<td colspan="2"> <td colspan="2">
<p style="margin-left: 1em"> <p style="margin-left: 1em">
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</p> </p>
</td> </td>
</tr> </tr>
<xsl:apply-templates mode="level3"/> <xsl:apply-templates mode="level3"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<tr> <tr>
<td> <td>
<p style="margin-left: 1em"> <p style="margin-left: 1em">
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</p> </p>
</td> </td>
<td> <td>
<xsl:call-template name="formatValue"/> <xsl:call-template name="formatValue"/>
</td> </td>
</tr> </tr>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="*" mode="level3"> <xsl:template match="*" mode="level3">
<xsl:choose> <xsl:choose>
<xsl:when test="child::*"> <xsl:when test="child::*">
<tr> <tr>
<td colspan="2"> <td colspan="2">
<p style="margin-left: 2em"> <p style="margin-left: 2em">
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</p> </p>
</td> </td>
</tr> </tr>
<xsl:apply-templates mode="level4"/> <xsl:apply-templates mode="level4"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<tr> <tr>
<td> <td>
<p style="margin-left: 2em"> <p style="margin-left: 2em">
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</p> </p>
</td> </td>
<td> <td>
<xsl:call-template name="formatValue"/> <xsl:call-template name="formatValue"/>
</td> </td>
</tr> </tr>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="*" mode="level4"> <xsl:template match="*" mode="level4">
<tr> <tr>
<td> <td>
<p style="margin-left: 3em"> <p style="margin-left: 3em">
<xsl:call-template name="longName"> <xsl:call-template name="longName">
<xsl:with-param name="name"> <xsl:with-param name="name">
<xsl:value-of select="local-name()"/> <xsl:value-of select="local-name()"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="attr"/> <xsl:call-template name="attr"/>
</p> </p>
</td> </td>
<td> <td>
<xsl:value-of select="text()"/> <xsl:value-of select="text()"/>
</td> </td>
</tr> </tr>
</xsl:template> </xsl:template>
<xsl:template name="longName"> <xsl:template name="longName">
<xsl:param name="name"/> <xsl:param name="name"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$dictionary/entry[@key=$name]"> <xsl:when test="$dictionary/entry[@key=$name]">
<xsl:value-of select="$dictionary/entry[@key=$name]"/> <xsl:value-of select="$dictionary/entry[@key=$name]"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$name"/> <xsl:value-of select="$name"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="attr"> <xsl:template name="attr">
<xsl:for-each select="@type|@point">:<xsl:call-template name="longName"> <xsl:for-each select="@type|@point">:
<xsl:with-param name="name"> <xsl:call-template name="longName">
<xsl:value-of select="."/> <xsl:with-param name="name">
</xsl:with-param> <xsl:value-of select="."/>
</xsl:call-template> </xsl:with-param>
</xsl:for-each> </xsl:call-template>
<xsl:if test="@authority or @edition"> </xsl:for-each>
<xsl:for-each select="@authority">(<xsl:call-template name="longName"> <xsl:if test="@authority or @edition">
<xsl:with-param name="name"> <xsl:for-each select="@authority">(
<xsl:value-of select="."/> <xsl:call-template name="longName">
</xsl:with-param> <xsl:with-param name="name">
</xsl:call-template> <xsl:value-of select="."/>
</xsl:for-each> </xsl:with-param>
<xsl:if test="@edition">Edition <xsl:value-of select="@edition"/> </xsl:call-template>
</xsl:if>)</xsl:if> </xsl:for-each>
<xsl:variable name="attrStr"> <xsl:if test="@edition">Edition
<xsl:for-each select="@*[local-name()!='edition' and local-name()!='type' and local-name()!='authority' and local-name()!='point']"> <xsl:value-of select="@edition"/>
<xsl:value-of select="local-name()"/>="<xsl:value-of select="."/>",</xsl:for-each> </xsl:if>)
</xsl:variable> </xsl:if>
<xsl:variable name="nattrStr" select="normalize-space($attrStr)"/> <xsl:variable name="attrStr">
<xsl:if test="string-length($nattrStr)">(<xsl:value-of select="substring($nattrStr,1,string-length($nattrStr)-1)"/>)</xsl:if> <xsl:for-each select="@*[local-name()!='edition' and local-name()!='type' and local-name()!='authority' and local-name()!='point']">
</xsl:template> <xsl:value-of select="local-name()"/>="
</xsl:stylesheet> <xsl:value-of select="."/>",
</foxml:xmlContent> </xsl:for-each>
</foxml:datastreamVersion> </xsl:variable>
</foxml:datastream> <xsl:variable name="nattrStr" select="normalize-space($attrStr)"/>
<xsl:if test="string-length($nattrStr)">(
<xsl:value-of select="substring($nattrStr,1,string-length($nattrStr)-1)"/>)
</xsl:if>
</xsl:template>
</xsl:stylesheet>
</foxml:xmlContent>
</foxml:datastreamVersion>
</foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

301
content_models/islandora_qtCModel.xml

@ -3,161 +3,172 @@
xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:foxml="info:fedora/fedora-system:def/foxml#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
<foxml:objectProperties> <foxml:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Generic Content Model for Fedora Attach"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Generic Content Model for Fedora Attach"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-01-26T21:29:20.416Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2010-01-26T21:29:20.416Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-03-11T21:01:44.921Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-03-11T21:01:44.921Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true"> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
<foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2010-01-26T21:29:20.416Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="396"> <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2010-01-26T21:29:20.416Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="396">
<foxml:xmlContent> <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"> <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>Quicktime Content Model</dc:title> <dc:title>Quicktime Content Model</dc:title>
<dc:identifier>islandora:qtCModel</dc:identifier> <dc:identifier>islandora:qtCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream ID="ISLANDORACM" CONTROL_GROUP="X" STATE="A" > <foxml:datastream ID="ISLANDORACM" CONTROL_GROUP="X" STATE="A" >
<foxml:datastreamVersion ID="ISLANDORACM.0" MIMETYPE="application/xml" LABEL="ISLANDORACM.0"> <foxml:datastreamVersion ID="ISLANDORACM.0" MIMETYPE="application/xml" LABEL="ISLANDORACM.0">
<foxml:xmlContent> <foxml:xmlContent>
<content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_qt" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd"> <content_model xmlns="http://www.islandora.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="standard_qt" xsi:schemaLocation="http://www.islandora.ca http://localhost/islandoracm.xsd">
<mimetypes> <mimetypes>
<type>video/quicktime</type> <type>video/quicktime</type>
<type>video/mp4</type> <type>video/mp4</type>
<type>audio/mp3</type> <type>audio/mp3</type>
<type>audio/x-aiff</type> <type>audio/x-aiff</type>
</mimetypes> </mimetypes>
<ingest_rules> <ingest_rules>
<rule> <rule>
<applies_to>video/quicktime</applies_to> <applies_to>video/quicktime</applies_to>
<applies_to>video/mp4</applies_to> <applies_to>video/mp4</applies_to>
<applies_to>audio/mp3</applies_to> <applies_to>audio/mp3</applies_to>
<applies_to>audio/x-aiff</applies_to> <applies_to>audio/x-aiff</applies_to>
<ingest_methods> <ingest_methods>
<ingest_method file="plugins/Exiftool.inc" class="Exiftool" method="extractMetadata" dsid="OBJ_EXIFTOOL" modified_files_ext=""> <ingest_method file="plugins/Exiftool.inc" class="Exiftool" method="extractMetadata" dsid="OBJ_EXIFTOOL" modified_files_ext="">
<parameters></parameters> <parameters></parameters>
</ingest_method> </ingest_method>
<ingest_method class="Ffmpeg" dsid="FULL_SIZE" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg"> <ingest_method class="Ffmpeg" dsid="FULL_SIZE" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg">
<parameters> <parameters>
</parameters> </parameters>
</ingest_method> </ingest_method>
<ingest_method class="Ffmpeg" dsid="TN" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg"> <ingest_method class="Ffmpeg" dsid="TN" file="plugins/Ffmpeg.inc" method="extract_thumbnail" modified_files_ext="jpg">
<parameters> <parameters>
<parameter name="s">92x92</parameter> <parameter name="s">92x92</parameter>
</parameters> </parameters>
</ingest_method> </ingest_method>
</ingest_methods> </ingest_methods>
</rule> </rule>
</ingest_rules> </ingest_rules>
<datastreams> <datastreams>
<datastream dsid="OBJ"> <datastream dsid="OBJ">
<display_method class="ShowQtStreamsInFieldSets" file="plugins/qt_viewer.inc" method="showQt" module=""></display_method> <display_method class="ShowQtStreamsInFieldSets" file="plugins/qt_viewer.inc" method="showQt" module=""></display_method>
</datastream> </datastream>
<datastream dsid="PROXY"></datastream> <datastream dsid="PROXY"></datastream>
<datastream dsid="OBJ_EXIFTOOL"></datastream> <datastream dsid="OBJ_EXIFTOOL"></datastream>
<datastream dsid="TN"></datastream> <datastream dsid="TN"></datastream>
<datastream dsid="FULL_SIZE"></datastream> <datastream dsid="FULL_SIZE"></datastream>
<datastream dsid="QDC"> <datastream dsid="QDC">
<display_method class="ShowStreamsInFieldSets" file="plugins/ShowStreamsInFieldSets.inc" method="showQdc" module=""></display_method> <display_method class="ShowStreamsInFieldSets" file="plugins/ShowStreamsInFieldSets.inc" method="showQdc" module=""></display_method>
</datastream> </datastream>
</datastreams> </datastreams>
<ingest_form dsid="QDC" page="2"> <ingest_form dsid="QDC" page="2">
<form_builder_method class="QtFormBuilder" file="plugins/QtFormBuilder.php" handler="handleQDCForm" method="buildQDCForm" module=""></form_builder_method> <form_builder_method class="QtFormBuilder" file="plugins/QtFormBuilder.php" handler="handleQDCForm" method="buildQDCForm" module=""></form_builder_method>
<form_elements> <form_elements>
<element label="Title/Caption/Media Name" name="dc:title" required="true" type="textfield"> <element label="Title/Caption/Media Name" name="dc:title" required="true" type="textfield">
<description>The name given to the file</description> <description>The name given to the file</description>
</element> </element>
<element label="Creator/" name="dc:creator" type="textfield"> <element label="Creator/" name="dc:creator" type="textfield">
<description>An entity primarily responsible for making the <description>An entity primarily responsible for making the
content of the resource such as a person, organization or content of the resource such as a person, organization or
service.</description> service.
</element> </description>
<element label="Subject" name="dc:subject" type="select"> </element>
<description>An entity primarily responsible for making the <element label="Subject" name="dc:subject" type="select">
<description>An entity primarily responsible for making the
content of the resource such as a person, organization or content of the resource such as a person, organization or
service.</description> service.
<authoritative_list> </description>
<item>home recording</item> <authoritative_list>
<item>meeting</item> <item>home recording</item>
<item>presentation</item> <item>meeting</item>
<item>sound</item> <item>presentation</item>
</authoritative_list> <item>sound</item>
</element> </authoritative_list>
<element label="Description of Media" name="dc:description" required="true" type="textarea"> </element>
<description>Examples include an abstract, table of <element label="Description of Media" name="dc:description" required="true" type="textarea">
<description>Examples include an abstract, table of
contents, or free-text account of the content of the contents, or free-text account of the content of the
resource.</description> resource.
</element> </description>
<element label="Publisher" name="dc:publisher" type="textfield"> </element>
<description>An entity, (including persons, organizations, <element label="Publisher" name="dc:publisher" type="textfield">
<description>An entity, (including persons, organizations,
or services), responsible for making the resource or services), responsible for making the resource
available.</description> available.
</element> </description>
<element label="Contributor" name="dc:contributor" type="textfield"> </element>
<description>An entity responsible for contributing to the <element label="Contributor" name="dc:contributor" type="textfield">
<description>An entity responsible for contributing to the
content of the resource such as a person, organization or content of the resource such as a person, organization or
service.</description> service.
</element> </description>
<element label="Date" name="dc:date" type="textfield"> </element>
<description>Temporal scope of the content if known. Date <element label="Date" name="dc:date" type="textfield">
<description>Temporal scope of the content if known. Date
format is YYYY-MM-DD (e.g. 1890,1910-10,or format is YYYY-MM-DD (e.g. 1890,1910-10,or
2007-10-23)</description> 2007-10-23)
</element> </description>
<element label="Resource Type" name="dc:type" type="select"> </element>
<description>Genre of the content of the resource. Examples <element label="Resource Type" name="dc:type" type="select">
<description>Genre of the content of the resource. Examples
include: home page, novel, poem, working paper, technical include: home page, novel, poem, working paper, technical
report, essay, dictionary.</description> report, essay, dictionary.
<authoritative_list> </description>
<item>none</item> <authoritative_list>
<item>video</item> <item>none</item>
<item>event</item> <item>video</item>
<item>image</item> <item>event</item>
<item>interactive resource</item> <item>image</item>
<item>model</item> <item>interactive resource</item>
<item>party</item> <item>model</item>
<item>physical object</item> <item>party</item>
<item>place</item> <item>physical object</item>
<item>service</item> <item>place</item>
<item>software</item> <item>service</item>
<item>sound</item> <item>software</item>
<item>text</item> <item>sound</item>
</authoritative_list> <item>text</item>
</element> </authoritative_list>
<element label="Source" name="dc:source" type="textfield"> </element>
<description>A reference to a resource from which the <element label="Source" name="dc:source" type="textfield">
present resource is derived.</description> <description>A reference to a resource from which the
</element> present resource is derived.
<element label="Identifier" name="dc:identifier" type="textfield"> </description>
<description>A unique reference to the resource; In this </element>
<element label="Identifier" name="dc:identifier" type="textfield">
<description>A unique reference to the resource; In this
instance, the accession number or collection instance, the accession number or collection
number.</description> number.
</element> </description>
<element label="Language" name="dc:language" type="select"> </element>
<description>The language of the intellectual content of <element label="Language" name="dc:language" type="select">
the resource.</description> <description>The language of the intellectual content of
<authoritative_list> the resource.
<item field="eng">English</item> </description>
<item field="fre">French</item> <authoritative_list>
</authoritative_list> <item field="eng">English</item>
</element> <item field="fre">French</item>
<element label="Relation" name="dc:relation" type="textfield"> </authoritative_list>
<description>Reference to a related resource.</description> </element>
</element> <element label="Relation" name="dc:relation" type="textfield">
<element label="Rights Management" name="dc:rights" type="textarea"> <description>Reference to a related resource.</description>
<description>Information about intellectual property </element>
<element label="Rights Management" name="dc:rights" type="textarea">
<description>Information about intellectual property
rights, copyright, and various property rights, copyright, and various property
rights.</description> rights.
</element> </description>
</form_elements> </element>
</ingest_form> </form_elements>
</content_model> </ingest_form>
</foxml:xmlContent> </content_model>
</foxml:datastreamVersion> </foxml:xmlContent>
</foxml:datastream> </foxml:datastreamVersion>
</foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

2838
content_models/islandora_slideCModel.xml

File diff suppressed because it is too large Load Diff

524
content_models/islandora_viewerSdep-slideCModel.xml

@ -1,199 +1,199 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<foxml:digitalObject PID="islandora:viewerSdep-slideCModel" VERSION="1.1" <foxml:digitalObject PID="islandora:viewerSdep-slideCModel" VERSION="1.1"
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"> 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:objectProperties>
<foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="viewerSdep-slideCModel"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="viewerSdep-slideCModel"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
<foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-11-27T17:57:45.462Z"/> <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2009-11-27T17:57:45.462Z"/>
<foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-14T20:05:44.278Z"/> <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2010-05-14T20:05:44.278Z"/>
</foxml:objectProperties> </foxml:objectProperties>
<foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false"> <foxml:datastream CONTROL_GROUP="X" ID="AUDIT" STATE="A" VERSIONABLE="false">
<foxml:datastreamVersion CREATED="2009-11-27T17:57:45.462Z" <foxml:datastreamVersion CREATED="2009-11-27T17:57:45.462Z"
FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml"> FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit" ID="AUDIT.0" LABEL="Audit Trail for this object" MIMETYPE="text/xml">
<foxml:xmlContent> <foxml:xmlContent>
<audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#"> <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
<audit:record ID="AUDREC1"> <audit:record ID="AUDREC1">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>ingest</audit:action> <audit:action>ingest</audit:action>
<audit:componentID/> <audit:componentID/>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T17:57:45.462Z</audit:date> <audit:date>2009-11-27T17:57:45.462Z</audit:date>
<audit:justification>Created with Admin GUI "New Object" command</audit:justification> <audit:justification>Created with Admin GUI "New Object" command</audit:justification>
</audit:record> </audit:record>
<audit:record ID="AUDREC2"> <audit:record ID="AUDREC2">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:02:20.095Z</audit:date> <audit:date>2009-11-27T18:02:20.095Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC3"> <audit:record ID="AUDREC3">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>METHODMAP</audit:componentID> <audit:componentID>METHODMAP</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:17:31.165Z</audit:date> <audit:date>2009-11-27T18:17:31.165Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC4"> <audit:record ID="AUDREC4">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>DSINPUTSPEC</audit:componentID> <audit:componentID>DSINPUTSPEC</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:20:50.036Z</audit:date> <audit:date>2009-11-27T18:20:50.036Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC5"> <audit:record ID="AUDREC5">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>WSDL</audit:componentID> <audit:componentID>WSDL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:22:44.560Z</audit:date> <audit:date>2009-11-27T18:22:44.560Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC6"> <audit:record ID="AUDREC6">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>WSDL</audit:componentID> <audit:componentID>WSDL</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2009-11-27T18:37:33.153Z</audit:date> <audit:date>2009-11-27T18:37:33.153Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC7"> <audit:record ID="AUDREC7">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-03-11T21:01:10.851Z</audit:date> <audit:date>2010-03-11T21:01:10.851Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
<audit:record ID="AUDREC8"> <audit:record ID="AUDREC8">
<audit:process type="Fedora API-M"/> <audit:process type="Fedora API-M"/>
<audit:action>modifyDatastreamByValue</audit:action> <audit:action>modifyDatastreamByValue</audit:action>
<audit:componentID>RELS-EXT</audit:componentID> <audit:componentID>RELS-EXT</audit:componentID>
<audit:responsibility>fedoraAdmin</audit:responsibility> <audit:responsibility>fedoraAdmin</audit:responsibility>
<audit:date>2010-05-14T20:05:44.278Z</audit:date> <audit:date>2010-05-14T20:05:44.278Z</audit:date>
<audit:justification/> <audit:justification/>
</audit:record> </audit:record>
</audit:auditTrail> </audit:auditTrail>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="RELS-EXT" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-11-27T17:57:46.437Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2009-11-27T17:57:46.437Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="603"> ID="RELS-EXT1.0" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="603">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel">
<fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/> <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"/>
<fedora-model:isDeploymentOf rdf:resource="info:fedora/changeme-to-sDefPid"/> <fedora-model:isDeploymentOf rdf:resource="info:fedora/changeme-to-sDefPid"/>
<fedora-model:isContractorOf rdf:resource="info:fedora/changeme-to-cModelPid"/> <fedora-model:isContractorOf rdf:resource="info:fedora/changeme-to-cModelPid"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2009-11-27T18:02:20.095Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2009-11-27T18:02:20.095Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="570"> ID="RELS-EXT.1" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="570">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:slideCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:slideCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-03-11T21:01:10.851Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-03-11T21:01:10.851Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.2" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="700"> ID="RELS-EXT.2" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="700">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:slideCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:slideCModel" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2010-05-14T20:05:44.278Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" <foxml:datastreamVersion CREATED="2010-05-14T20:05:44.278Z" FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0"
ID="RELS-EXT.3" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="831"> ID="RELS-EXT.3" LABEL="RDF Statements about this object" MIMETYPE="application/rdf+xml" SIZE="831">
<foxml:xmlContent> <foxml:xmlContent>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel"> <rdf:Description rdf:about="info:fedora/islandora:viewerSdep-slideCModel">
<hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/> <hasModel rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0" xmlns="info:fedora/fedora-system:def/model#"/>
<isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/> <isDeploymentOf rdf:resource="info:fedora/ilives:viewerSdef" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:slideCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:slideCModel" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:mapCModel" xmlns="info:fedora/fedora-system:def/model#"/>
<isContractorOf rdf:resource="info:fedora/islandora:herbCModel" xmlns="info:fedora/fedora-system:def/model#"/> <isContractorOf rdf:resource="info:fedora/islandora:herbCModel" xmlns="info:fedora/fedora-system:def/model#"/>
</rdf:Description> </rdf:Description>
</rdf:RDF> </rdf:RDF>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="METHODMAP" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-11-27T17:57:46.437Z" <foxml:datastreamVersion CREATED="2009-11-27T17:57:46.437Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP1.0" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="298"> MIMETYPE="text/xml" SIZE="298">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This METHODMAP datastream is included as a starting point to This METHODMAP datastream is included as a starting point to
assist in the creation of a service deployment. The METHODMAP assist in the creation of a service deployment. The METHODMAP
should define the the mapping of the WSDL to Fedora object methods. should define the the mapping of the WSDL to Fedora object methods.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2009-11-27T18:17:31.165Z" <foxml:datastreamVersion CREATED="2009-11-27T18:17:31.165Z"
FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.1" LABEL="Deployment Method Map" FORMAT_URI="info:fedora/fedora-system:FedoraSDepMethodMap-1.1" ID="METHODMAP.1" LABEL="Deployment Method Map"
MIMETYPE="text/xml" SIZE="895"> MIMETYPE="text/xml" SIZE="895">
<foxml:xmlContent> <foxml:xmlContent>
<fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:MethodMap name="methodmap" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap">
<fmm:Method operationName="getViewer" wsdlMsgName="getViewerRequestMsg" wsdlMsgOutput="getViewerResponseMsg"> <fmm:Method operationName="getViewer" wsdlMsgName="getViewerRequestMsg" wsdlMsgOutput="getViewerResponseMsg">
<fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="islandora:slideCModel" label="content model" parmName="CMODEL" <fmm:DefaultInputParm defaultValue="islandora:slideCModel" label="content model" parmName="CMODEL"
passBy="VALUE" required="true"/> passBy="VALUE" required="true"/>
<fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/> <fmm:DefaultInputParm defaultValue="JP2" label="content model" parmName="DSID" passBy="VALUE" required="true"/>
<fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="uid" passBy="VALUE" required="false"/>
<fmm:MethodReturnType wsdlMsgName="getViewerResponseMsg" wsdlMsgTOMIME="text/html"/> <fmm:MethodReturnType wsdlMsgName="getViewerResponseMsg" wsdlMsgTOMIME="text/html"/>
</fmm:Method> </fmm:Method>
</fmm:MethodMap> </fmm:MethodMap>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DSINPUTSPEC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-11-27T17:57:46.438Z" <foxml:datastreamVersion CREATED="2009-11-27T17:57:46.438Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC1.0"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="300"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="300">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This DSINPUTSPEC datastream is included as a starting point to This DSINPUTSPEC datastream is included as a starting point to
assist in the creation of a service deployment. The DSINPUTSPEC assist in the creation of a service deployment. The DSINPUTSPEC
should define the datastreams to be used by WSDL-defined methods. should define the datastreams to be used by WSDL-defined methods.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2009-11-27T18:20:50.036Z" <foxml:datastreamVersion CREATED="2009-11-27T18:20:50.036Z"
FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1" FORMAT_URI="info:fedora/fedora-system:FedoraDSInputSpec-1.1" ID="DSINPUTSPEC.1"
LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="356"> LABEL="Datastream Input Specification" MIMETYPE="text/xml" SIZE="356">
<foxml:xmlContent> <foxml:xmlContent>
<fbs:DSInputSpec label="viewerSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInputSpec label="viewerSdepInputSpec" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec">
<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC">
<fbs:DSInputLabel>DC</fbs:DSInputLabel> <fbs:DSInputLabel>DC</fbs:DSInputLabel>
<fbs:DSMIME>text/xml</fbs:DSMIME> <fbs:DSMIME>text/xml</fbs:DSMIME>
<fbs:DSInputInstruction/> <fbs:DSInputInstruction/>
</fbs:DSInput> </fbs:DSInput>
</fbs:DSInputSpec> </fbs:DSInputSpec>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="WSDL" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-11-27T17:57:46.443Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2009-11-27T17:57:46.443Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="752"> ID="WSDL1.0" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="752">
<foxml:xmlContent> <foxml:xmlContent>
<comment xmlns="info:fedora/fedora-system:def/comment#"> <comment xmlns="info:fedora/fedora-system:def/comment#">
This WSDL datastream is included as a starting point to This WSDL datastream is included as a starting point to
assist in the creation of a service deployment. The WSDL assist in the creation of a service deployment. The WSDL
should define the services provided by this should define the services provided by this
@ -205,107 +205,107 @@
demo:2, demo:13, demo:20, and demo:28. demo:2, demo:13, demo:20, and demo:28.
For more information about the demonstration objects, see: For more information about the demonstration objects, see:
http://fedora-commons.org/confluence/x/AwFI. http://fedora-commons.org/confluence/x/AwFI.
</comment> </comment>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2009-11-27T18:22:44.560Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2009-11-27T18:22:44.560Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL.1" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1815"> ID="WSDL.1" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1815">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="viewerSdep" targetNamespace="viewerSdep" <wsdl:definitions name="viewerSdep" targetNamespace="viewerSdep"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="viewerSdep" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="viewerSdep"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="getViewerRequestMsg"> <wsdl:message name="getViewerRequestMsg">
<wsdl:part name="PID" type="xsd:string"/> <wsdl:part name="PID" type="xsd:string"/>
<wsdl:part name="CMODEL" type="xsd:string"/> <wsdl:part name="CMODEL" type="xsd:string"/>
<wsdl:part name="DSID" type="xsd:string"/> <wsdl:part name="DSID" type="xsd:string"/>
<wsdl:part name="uid" type="xsd:string"/> <wsdl:part name="uid" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="getViewerResponseMsg"> <wsdl:message name="getViewerResponseMsg">
<wsdl:part name="RESPONSE" type="xsd:string"/> <wsdl:part name="RESPONSE" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="viewer_portType"> <wsdl:portType name="viewer_portType">
<wsdl:operation name="getViewer"> <wsdl:operation name="getViewer">
<wsdl:input message="this:getViewerRequestMsg"/> <wsdl:input message="this:getViewerRequestMsg"/>
<wsdl:output message="this:getViewerResponseMsg"/> <wsdl:output message="this:getViewerResponseMsg"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="viewer_service"> <wsdl:service name="viewer_service">
<wsdl:port binding="this:viewer_binding" name="viewer_port"> <wsdl:port binding="this:viewer_binding" name="viewer_port">
<http:address location="http://local.fedora.server/iiv/page_viewer.jsp"/> <http:address location="http://local.fedora.server/iiv/page_viewer.jsp"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="viewer_binding" type="this:viewer_portType"> <wsdl:binding name="viewer_binding" type="this:viewer_portType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="getViewer"> <wsdl:operation name="getViewer">
<http:operation location="?pid=(PID)&amp;cmodel=(CMODEL)&amp;dsid=(DSID)&amp;uid=(uid)"/> <http:operation location="?pid=(PID)&amp;cmodel=(CMODEL)&amp;dsid=(DSID)&amp;uid=(uid)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/xhtml"/> <mime:content type="text/xhtml"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
<foxml:datastreamVersion CREATED="2009-11-27T18:37:33.153Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/" <foxml:datastreamVersion CREATED="2009-11-27T18:37:33.153Z" FORMAT_URI="http://schemas.xmlsoap.org/wsdl/"
ID="WSDL.2" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1816"> ID="WSDL.2" LABEL="WSDL Bindings" MIMETYPE="text/xml" SIZE="1816">
<foxml:xmlContent> <foxml:xmlContent>
<wsdl:definitions name="viewerSdep" targetNamespace="viewerSdep" <wsdl:definitions name="viewerSdep" targetNamespace="viewerSdep"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="viewerSdep" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="viewerSdep"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="getViewerRequestMsg"> <wsdl:message name="getViewerRequestMsg">
<wsdl:part name="PID" type="xsd:string"/> <wsdl:part name="PID" type="xsd:string"/>
<wsdl:part name="CMODEL" type="xsd:string"/> <wsdl:part name="CMODEL" type="xsd:string"/>
<wsdl:part name="DSID" type="xsd:string"/> <wsdl:part name="DSID" type="xsd:string"/>
<wsdl:part name="uid" type="xsd:string"/> <wsdl:part name="uid" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="getViewerResponseMsg"> <wsdl:message name="getViewerResponseMsg">
<wsdl:part name="RESPONSE" type="xsd:string"/> <wsdl:part name="RESPONSE" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:portType name="viewer_portType"> <wsdl:portType name="viewer_portType">
<wsdl:operation name="getViewer"> <wsdl:operation name="getViewer">
<wsdl:input message="this:getViewerRequestMsg"/> <wsdl:input message="this:getViewerRequestMsg"/>
<wsdl:output message="this:getViewerResponseMsg"/> <wsdl:output message="this:getViewerResponseMsg"/>
</wsdl:operation> </wsdl:operation>
</wsdl:portType> </wsdl:portType>
<wsdl:service name="viewer_service"> <wsdl:service name="viewer_service">
<wsdl:port binding="this:viewer_binding" name="viewer_port"> <wsdl:port binding="this:viewer_binding" name="viewer_port">
<http:address location="http://local.fedora.server/iiv/slide_viewer.jsp"/> <http:address location="http://local.fedora.server/iiv/slide_viewer.jsp"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
<wsdl:binding name="viewer_binding" type="this:viewer_portType"> <wsdl:binding name="viewer_binding" type="this:viewer_portType">
<http:binding verb="GET"/> <http:binding verb="GET"/>
<wsdl:operation name="getViewer"> <wsdl:operation name="getViewer">
<http:operation location="?pid=(PID)&amp;cmodel=(CMODEL)&amp;dsid=(DSID)&amp;uid=(uid)"/> <http:operation location="?pid=(PID)&amp;cmodel=(CMODEL)&amp;dsid=(DSID)&amp;uid=(uid)"/>
<wsdl:input> <wsdl:input>
<http:urlReplacement/> <http:urlReplacement/>
</wsdl:input> </wsdl:input>
<wsdl:output> <wsdl:output>
<mime:content type="text/xhtml"/> <mime:content type="text/xhtml"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
</wsdl:binding> </wsdl:binding>
</wsdl:definitions> </wsdl:definitions>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
<foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true"> <foxml:datastream CONTROL_GROUP="X" ID="DC" STATE="A" VERSIONABLE="true">
<foxml:datastreamVersion CREATED="2009-11-27T17:57:45.462Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" <foxml:datastreamVersion CREATED="2009-11-27T17:57:45.462Z" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/"
ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="407"> ID="DC1.0" LABEL="Dublin Core Record for this object" MIMETYPE="text/xml" SIZE="407">
<foxml:xmlContent> <foxml:xmlContent>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
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"> 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>viewerSdep-slideCModel</dc:title> <dc:title>viewerSdep-slideCModel</dc:title>
<dc:identifier>islandora:viewerSdep-slideCModel</dc:identifier> <dc:identifier>islandora:viewerSdep-slideCModel</dc:identifier>
</oai_dc:dc> </oai_dc:dc>
</foxml:xmlContent> </foxml:xmlContent>
</foxml:datastreamVersion> </foxml:datastreamVersion>
</foxml:datastream> </foxml:datastream>
</foxml:digitalObject> </foxml:digitalObject>

434
example_collection_views/MHL-sparqltoHtml.xsl

@ -1,196 +1,270 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3"> <table cellpadding="3" cellspacing="3">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div align="center"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div align="center">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
<xsl:apply-templates select="sparql/results"/> </td>
</table><br clear="all" /> </tr>
<div align="center"> <xsl:apply-templates select="sparql/results"/>
<xsl:choose> </table>
<xsl:when test="$end >= $count and $start = 1"> <br clear="all" />
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <div align="center">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:choose>
</xsl:when> <xsl:when test="$end >= $count and $start = 1">
<xsl:when test="$end >= $count"> <xsl:value-of select="$start"/>-
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>
of <xsl:value-of select="$count"/>&#160;<br /> of
<a> <xsl:value-of select="$count"/>&#160;
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <br />
</xsl:attribute> </xsl:when>
<xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="sparql/results"> <xsl:template match="sparql/results">
<xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="result"> <xsl:template match="result">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="title"/> <xsl:with-param name="text" select="title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="(content='Collection' or content='Community')"> <xsl:when test="(content='Collection' or content='Community')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/<xsl:value-of select="title"/>/<xsl:value-of select="title"/> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:variable> <xsl:copy-of select="$PID"/>/
<td valign="top" width="25%"> <xsl:value-of select="title"/>/
<a> <xsl:value-of select="title"/>
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> </xsl:otherwise>
</xsl:attribute> </xsl:choose>
<img> </xsl:variable>
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <td valign="top" width="25%">
</xsl:attribute> <a>
</img> </a> <br clear="all" /> <xsl:attribute name="href">
<a> <xsl:value-of select="$linkUrl"/>
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> </xsl:attribute>
</xsl:attribute> <img>
<xsl:value-of select="$newTitle"/> <xsl:attribute name="src">
</a> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:if test="(content!='Collection' and content!='Community')"> <xsl:value-of select="$PID"/>/TN
<br />--<a> </xsl:attribute>
<xsl:attribute name="href"> </img>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> </a>
</xsl:attribute> <br clear="all" />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$linkUrl"/>
</xsl:attribute>
<xsl:value-of select="$newTitle"/>
</a>
<xsl:if test="(content!='Collection' and content!='Community')">
<br />--
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="title"/>
</xsl:attribute>
DETAILS DETAILS
</a>-- </a>--
</xsl:if> </xsl:if>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

113
example_collection_views/critter.xsl

@ -1,33 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:critters="http://vre.upei.ca/critters/"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:critters="http://vre.upei.ca/critters/">
<xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:output method="xml" omit-xml-declaration="yes"/>
<!-- CRITTER XSLT --> <!-- CRITTER XSLT -->
<xsl:template match="/"> <xsl:template match="/">
<ul> <ul>
<li><b>Date Collected:</b><xsl:text> </xsl:text> <xsl:value-of select="/critters:sample/critters:date_collected"/></li> <li>
<li><b>Type:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:type"/></li> <b>Date Collected:</b>
<li><b>Phylum:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:phylum"/></li> <xsl:text> </xsl:text>
<li><b>SubPhylum:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:SubPhylum"/></li> <xsl:value-of select="/critters:sample/critters:date_collected"/>
<li><b>Class:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:class"/></li> </li>
<li><b>Order:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:order"/></li> <li>
<li><b>Family:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:family"/></li> <b>Type:</b>
<li><b>Genus:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:genus"/></li> <xsl:text> </xsl:text>
<li><b>Species:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:taxonomy/critters:species"/></li> <xsl:value-of select="/critters:sample/critters:type"/>
</li>
<li>
<b>Phylum:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:phylum"/>
</li>
<li>
<b>SubPhylum:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:SubPhylum"/>
</li>
<li>
<b>Class:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:class"/>
</li>
<li>
<b>Order:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:order"/>
</li>
<li>
<b>Family:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:family"/>
</li>
<li>
<b>Genus:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:genus"/>
</li>
<li>
<b>Species:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:taxonomy/critters:species"/>
</li>
</ul> </ul>
<h4>Collection Location</h4> <h4>Collection Location</h4>
<ul> <ul>
<li><b>Site Name:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:site/critters:sitename"/></li> <li>
<li><b>Country:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:site/critters:country"/></li> <b>Site Name:</b>
<li><b>Region:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:site/critters:region"/></li> <xsl:text> </xsl:text>
<li><b>Latitude:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:site/critters:latitude"/></li> <xsl:value-of select="/critters:sample/critters:site/critters:sitename"/>
<li><b>Longitude:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:site/critters:longitude"/></li> </li>
<li><b>Depth:</b> <xsl:text> </xsl:text><xsl:value-of select="/critters:sample/critters:site/critters:depth"/><xsl:text> </xsl:text>Feet</li> <li>
</ul> <b>Country:</b>
<h4>Description</h4> <xsl:text> </xsl:text>
<div><xsl:value-of select="/critters:sample/critters:description"/></div> <xsl:value-of select="/critters:sample/critters:site/critters:country"/>
</li>
<li>
<b>Region:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:site/critters:region"/>
</li>
<li>
<b>Latitude:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:site/critters:latitude"/>
</li>
<li>
<b>Longitude:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:site/critters:longitude"/>
</li>
<li>
<b>Depth:</b>
<xsl:text> </xsl:text>
<xsl:value-of select="/critters:sample/critters:site/critters:depth"/>
<xsl:text> </xsl:text>Feet
</li>
</ul>
<h4>Description</h4>
<div>
<xsl:value-of select="/critters:sample/critters:description"/>
</div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

427
example_collection_views/flv-sparqltoHtml.xsl

@ -1,65 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3" width="90%"> <table cellpadding="3" cellspacing="3" width="90%">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div STYLE="text-align: center;"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
</td>
</tr>
<!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
@ -79,134 +110,176 @@
</tr> </tr>
</xsl:for-each>- </xsl:for-each>-
--> -->
<xsl:apply-templates select="sparql/results"/> <xsl:apply-templates select="sparql/results"/>
</table><br clear="all" /> </table>
<div STYLE="text-align: center;"> <br clear="all" />
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="sparql/results"> <xsl:template match="sparql/results">
<xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="result"> <xsl:template match="result">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="title"/> <xsl:with-param name="text" select="title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="(content='Collection' or content='Community')"> <xsl:when test="(content='Collection' or content='Community')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="title"/> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:variable> <xsl:copy-of select="$PID"/>/OBJ/
<td valign="top" width="25%"> <xsl:value-of select="title"/>
<a> </xsl:otherwise>
<xsl:attribute name="href"> </xsl:choose>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> </xsl:variable>
</xsl:attribute> <td valign="top" width="25%">
<img> <a>
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:attribute name="alt"><xsl:value-of select="$newTitle"/> <xsl:copy-of select="$PID"/>/-/
</xsl:attribute> <xsl:value-of select="title"/>
</img> </a> <br clear="all" /> </xsl:attribute>
<a> <img>
<xsl:attribute name="href"> <xsl:attribute name="src">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:attribute> <xsl:value-of select="$PID"/>/TN
<xsl:value-of select="$newTitle"/> </xsl:attribute>
</a> <xsl:attribute name="alt">
<xsl:value-of select="$newTitle"/>
</xsl:attribute>
</img>
</a>
<br clear="all" />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="title"/>
</xsl:attribute>
<xsl:value-of select="$newTitle"/>
</a>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

417
example_collection_views/mlp-sparqltoHtml.xsl

@ -1,193 +1,264 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3"> <table cellpadding="3" cellspacing="3">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div align="center"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div align="center">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
<xsl:apply-templates select="sparql/results"/> </td>
</table><br clear="all" /> </tr>
<div align="center"> <xsl:apply-templates select="sparql/results"/>
<xsl:choose> </table>
<xsl:when test="$end >= $count and $start = 1"> <br clear="all" />
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <div align="center">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:choose>
</xsl:when> <xsl:when test="$end >= $count and $start = 1">
<xsl:when test="$end >= $count"> <xsl:value-of select="$start"/>-
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>
of <xsl:value-of select="$count"/>&#160;<br /> of
<a> <xsl:value-of select="$count"/>&#160;
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <br />
</xsl:attribute> </xsl:when>
<xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="sparql/results"> <xsl:template match="sparql/results">
<xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="result"> <xsl:template match="result">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="title"/> <xsl:with-param name="text" select="title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="(content='Collection' or content='Community')"> <xsl:when test="(content='Collection' or content='Community')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/<xsl:value-of select="title"/>/<xsl:value-of select="title"/> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:variable> <xsl:copy-of select="$PID"/>/
<td valign="top" width="25%"> <xsl:value-of select="title"/>/
<xsl:value-of select="title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td valign="top" width="25%">
<img> <img>
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <xsl:attribute name="src">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</img> <br clear="all" /> <xsl:value-of select="$PID"/>/TN
</xsl:attribute>
</img>
<br clear="all" />
<xsl:value-of select="$newTitle"/> <xsl:value-of select="$newTitle"/>
<xsl:if test="(content!='Collection' and content!='Community')"> <xsl:if test="(content!='Collection' and content!='Community')">
<br />--<a> <br />--
<xsl:attribute name="href"> <a>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="title"/>
</xsl:attribute>
DETAILS DETAILS
</a>-- </a>--
</xsl:if> </xsl:if>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

298
example_collection_views/refworks.xsl

@ -1,92 +1,216 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:output method="xml" omit-xml-declaration="yes"/>
<!-- refworks xslt --> <!-- refworks xslt -->
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="/reference/jf"> <xsl:if test="/reference/jf">
<h2>General Information</h2> <h2>General Information</h2>
<table cellpadding="2" cellspacing="2"> <table cellpadding="2" cellspacing="2">
<tr><td ><strong>Periodical:</strong></td><td><xsl:value-of select="/reference/jf"/></td></tr> <tr>
<tr><td><strong>Abbreviation:</strong></td><td><xsl:value-of select="/reference/jo"/></td></tr> <td >
<tr><td><strong>Volume:</strong></td><td><xsl:value-of select="/reference/vo"/></td></tr> <strong>Periodical:</strong>
<tr><td><strong>Issue:</strong></td><td><xsl:value-of select="/reference/is"/></td></tr> </td>
<tr><td><strong>Publisher:</strong></td><td><xsl:value-of select="/reference/pb"/></td></tr> <td>
<tr><td><strong>Place of Publication:</strong></td><td><xsl:value-of select="/reference/pp"/></td></tr> <xsl:value-of select="/reference/jf"/>
<tr><td><strong>Edition:</strong></td><td><xsl:value-of select="/reference/ed"/></td></tr> </td>
<tr><td><strong>Year:</strong></td><td><xsl:value-of select="/reference/yr"/></td></tr> </tr>
<tr><td><strong>Date:</strong></td><td><xsl:value-of select="/reference/fd"/></td></tr> <tr>
<tr><td><strong>Start Page:</strong></td><td><xsl:value-of select="/reference/sp"/></td></tr> <td>
<tr><td><strong>Other Pages:</strong></td><td><xsl:value-of select="/reference/op"/></td></tr> <strong>Abbreviation:</strong>
<tr><td><strong>ISSN/ISBN:</strong></td><td><xsl:value-of select="/reference/sn"/></td></tr> </td>
<tr><td><strong>Language:</strong></td><td><xsl:value-of select="/reference/la"/></td></tr> <td>
<tr><td><strong>UL:</strong></td><td><xsl:value-of select="/reference/ul"/></td></tr> <xsl:value-of select="/reference/jo"/>
</table> </td>
</xsl:if> </tr>
<xsl:if test="/reference/t1"> <tr>
<h2>Titles</h2> <td>
<ul> <strong>Volume:</strong>
<xsl:for-each select="/reference/t1"> </td>
<li><xsl:value-of select="."/></li> <td>
</xsl:for-each> <xsl:value-of select="/reference/vo"/>
</ul> </td>
</xsl:if> </tr>
<xsl:if test="/reference/t2"> <tr>
<ul> <td>
<h3>Secondary Titles</h3> <strong>Issue:</strong>
<xsl:for-each select="/reference/t2"> </td>
<li><xsl:value-of select="."/></li> <td>
</xsl:for-each> <xsl:value-of select="/reference/is"/>
</ul> </td>
</xsl:if> </tr>
<xsl:if test="/reference/a1"> <tr>
<h2>Authors</h2> <td>
<ul> <strong>Publisher:</strong>
<xsl:for-each select="/reference/a1"> </td>
<li><xsl:value-of select="."/></li> <td>
</xsl:for-each> <xsl:value-of select="/reference/pb"/>
</ul> </td>
</xsl:if> </tr>
<tr>
<td>
<strong>Place of Publication:</strong>
</td>
<td>
<xsl:value-of select="/reference/pp"/>
</td>
</tr>
<tr>
<td>
<strong>Edition:</strong>
</td>
<td>
<xsl:value-of select="/reference/ed"/>
</td>
</tr>
<tr>
<td>
<strong>Year:</strong>
</td>
<td>
<xsl:value-of select="/reference/yr"/>
</td>
</tr>
<tr>
<td>
<strong>Date:</strong>
</td>
<td>
<xsl:value-of select="/reference/fd"/>
</td>
</tr>
<tr>
<td>
<strong>Start Page:</strong>
</td>
<td>
<xsl:value-of select="/reference/sp"/>
</td>
</tr>
<tr>
<td>
<strong>Other Pages:</strong>
</td>
<td>
<xsl:value-of select="/reference/op"/>
</td>
</tr>
<tr>
<td>
<strong>ISSN/ISBN:</strong>
</td>
<td>
<xsl:value-of select="/reference/sn"/>
</td>
</tr>
<tr>
<td>
<strong>Language:</strong>
</td>
<td>
<xsl:value-of select="/reference/la"/>
</td>
</tr>
<tr>
<td>
<strong>UL:</strong>
</td>
<td>
<xsl:value-of select="/reference/ul"/>
</td>
</tr>
</table>
</xsl:if>
<xsl:if test="/reference/t1">
<h2>Titles</h2>
<ul>
<xsl:for-each select="/reference/t1">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="/reference/t2">
<ul>
<h3>Secondary Titles</h3>
<xsl:for-each select="/reference/t2">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="/reference/a1">
<h2>Authors</h2>
<ul>
<xsl:for-each select="/reference/a1">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="/reference/a2"> <xsl:if test="/reference/a2">
<ul> <ul>
<h3>Secondary Authors</h3> <h3>Secondary Authors</h3>
<xsl:for-each select="/reference/a2"> <xsl:for-each select="/reference/a2">
<li><xsl:value-of select="."/></li> <li>
</xsl:for-each> <xsl:value-of select="."/>
</ul> </li>
</xsl:if> </xsl:for-each>
<xsl:if test="/reference/k1"> </ul>
<h2>Keywords</h2> </xsl:if>
<ul> <xsl:if test="/reference/k1">
<xsl:for-each select="/reference/k1"> <h2>Keywords</h2>
<li><xsl:value-of select="."/></li> <ul>
</xsl:for-each> <xsl:for-each select="/reference/k1">
</ul> <li>
</xsl:if> <xsl:value-of select="."/>
<xsl:if test="/reference/ab"> </li>
<h2>Abstract</h2> </xsl:for-each>
<xsl:for-each select="/reference/ab"> </ul>
<div><xsl:value-of select="."/> </div> </xsl:if>
</xsl:for-each> <xsl:if test="/reference/ab">
</xsl:if> <h2>Abstract</h2>
<xsl:if test="/reference/no"> <xsl:for-each select="/reference/ab">
<h2>Notes</h2> <div>
<xsl:for-each select="/reference/no"> <xsl:value-of select="."/>
<div><xsl:value-of select="."/> </div> </div>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
<xsl:variable name="ISSN"> <xsl:if test="/reference/no">
<xsl:value-of select="/reference/sn"/> <h2>Notes</h2>
</xsl:variable> <xsl:for-each select="/reference/no">
<xsl:variable name="BASEURL"> <div>
http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&amp;issn=<xsl:value-of select="/reference/sn/text()"/>&amp;date=<xsl:value-of select="/reference/yr/text()"/>&amp;volume=<xsl:value-of select="/reference/vo/text()"/>&amp;issue=<xsl:value-of select="/reference/is/text()"/>&amp;spage=<xsl:value-of select="/reference/sp/text()"/>&amp;atitle=<xsl:value-of select="/reference/t1"/>&amp;stitle=<xsl:value-of select="/reference/jf"/> <xsl:value-of select="."/>
</xsl:variable> </div>
<br /> </xsl:for-each>
<xsl:if test="/reference/sn"> </xsl:if>
<div><a> <xsl:variable name="ISSN">
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/></xsl:attribute> <xsl:value-of select="/reference/sn"/>
<xsl:attribute name="target">_blank</xsl:attribute> </xsl:variable>
<img src="http://asin1.its.unb.ca:8000/muse/images/getit4.gif"/> </a></div> <xsl:variable name="BASEURL">
</xsl:if> http://articles.library.upei.ca:7888/godot/hold_tab.cgi?hold_tab_branch=PCU&amp;issn=
</xsl:template> <xsl:value-of select="/reference/sn/text()"/>&amp;date=
<xsl:value-of select="/reference/yr/text()"/>&amp;volume=
<xsl:value-of select="/reference/vo/text()"/>&amp;issue=
<xsl:value-of select="/reference/is/text()"/>&amp;spage=
<xsl:value-of select="/reference/sp/text()"/>&amp;atitle=
<xsl:value-of select="/reference/t1"/>&amp;stitle=
<xsl:value-of select="/reference/jf"/>
</xsl:variable>
<br />
<xsl:if test="/reference/sn">
<div>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<img src="http://asin1.its.unb.ca:8000/muse/images/getit4.gif"/>
</a>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

438
example_collection_views/riri-sparqltoHtml.xsl

@ -1,65 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Red and White XSLT --> <!-- Red and White XSLT -->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name="cellsPerRow" select="4"/> <xsl:variable name="cellsPerRow" select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table cellpadding="3" cellspacing="3" width="90%"> <table cellpadding="3" cellspacing="3" width="90%">
<tr><td colspan="{$cellsPerRow}"> <tr>
<div STYLE="text-align: center;"> <td colspan="{$cellsPerRow}">
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <br clear="all" /> </div>
</td></tr> <br clear="all" />
</td>
</tr>
<!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <!--<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
@ -79,139 +110,182 @@
</tr> </tr>
</xsl:for-each>- </xsl:for-each>-
--> -->
<xsl:apply-templates select="sparql/results"/> <xsl:apply-templates select="sparql/results"/>
</table><br clear="all" /> </table>
<div STYLE="text-align: center;"> <br clear="all" />
<xsl:choose> <div STYLE="text-align: center;">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="sparql/results"> <xsl:template match="sparql/results">
<xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]"> <xsl:for-each select="result[position() mod $cellsPerRow = 1 and position()>=$start and position() &lt;=$end]">
<tr> <tr>
<xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/> <xsl:apply-templates select=". | following-sibling::result[position() &lt; $cellsPerRow]"/>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<xsl:template match="result"> <xsl:template match="result">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<xsl:variable name="newTitle" > <xsl:variable name="newTitle" >
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="title"/> <xsl:with-param name="text" select="title"/>
<xsl:with-param name="from" select="'_'"/> <xsl:with-param name="from" select="'_'"/>
<xsl:with-param name="to" select="' '"/> <xsl:with-param name="to" select="' '"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="linkUrl"> <xsl:variable name="linkUrl">
<xsl:choose> <xsl:choose>
<xsl:when test="(content='Collection' or content='Community')"> <xsl:when test="(content='Collection' or content='Community')">
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:when> <xsl:copy-of select="$PID"/>/-/
<xsl:otherwise> <xsl:value-of select="title"/>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/OBJ/<xsl:value-of select="title"/>.pdf <!-- we know in riri that all OBJ streams are pdf so we can add the extension to tell browsers what it is--> </xsl:when>
</xsl:otherwise> <xsl:otherwise>
</xsl:choose> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:variable> <xsl:copy-of select="$PID"/>/OBJ/
<td valign="top" width="25%"> <xsl:value-of select="title"/>.pdf <!-- we know in riri that all OBJ streams are pdf so we can add the extension to tell browsers what it is-->
<a> </xsl:otherwise>
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> </xsl:choose>
</xsl:attribute> </xsl:variable>
<img> <td valign="top" width="25%">
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <a>
</xsl:attribute> <xsl:attribute name="href">
<xsl:attribute name="alt"><xsl:value-of select="$newTitle"/> <xsl:value-of select="$linkUrl"/>
</xsl:attribute> </xsl:attribute>
</img> </a> <br clear="all" /> <img>
<a> <xsl:attribute name="src">
<xsl:attribute name="href"><xsl:value-of select="$linkUrl"/> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:attribute> <xsl:value-of select="$PID"/>/TN
<xsl:value-of select="$newTitle"/> </xsl:attribute>
</a> <xsl:attribute name="alt">
<xsl:if test="(content!='Collection' and content!='Community')"> <xsl:value-of select="$newTitle"/>
<br />--<a> </xsl:attribute>
<xsl:attribute name="href"> </img>
<xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> </a>
</xsl:attribute> <br clear="all" />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$linkUrl"/>
</xsl:attribute>
<xsl:value-of select="$newTitle"/>
</a>
<xsl:if test="(content!='Collection' and content!='Community')">
<br />--
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:copy-of select="$PID"/>/-/
<xsl:value-of select="title"/>
</xsl:attribute>
DETAILS DETAILS
</a>-- </a>--
</xsl:if> </xsl:if>
</td> </td>
<xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)"> <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellsPerRow - position()"/> <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="FillerCells"> <xsl:template name="FillerCells">
<xsl:param name="cellCount"/> <xsl:param name="cellCount"/>
<td>&#160;</td> <td>&#160;</td>
<xsl:if test="$cellCount > 1"> <xsl:if test="$cellCount > 1">
<xsl:call-template name="FillerCells"> <xsl:call-template name="FillerCells">
<xsl:with-param name="cellCount" select="$cellCount - 1"/> <xsl:with-param name="cellCount" select="$cellCount - 1"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="replace-string"> <xsl:template name="replace-string">
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="from"/> <xsl:param name="from"/>
<xsl:param name="to"/> <xsl:param name="to"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($text, $from)"> <xsl:when test="contains($text, $from)">
<xsl:variable name="before" select="substring-before($text, $from)"/> <xsl:variable name="before" select="substring-before($text, $from)"/>
<xsl:variable name="after" select="substring-after($text, $from)"/> <xsl:variable name="after" select="substring-after($text, $from)"/>
<xsl:variable name="prefix" select="concat($before, $to)"/> <xsl:variable name="prefix" select="concat($before, $to)"/>
<xsl:value-of select="$before"/> <xsl:value-of select="$before"/>
<xsl:value-of select="$to"/> <xsl:value-of select="$to"/>
<xsl:call-template name="replace-string"> <xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$after"/> <xsl:with-param name="text" select="$after"/>
<xsl:with-param name="from" select="$from"/> <xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/> <xsl:with-param name="to" select="$to"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

287
example_collection_views/sparqltoHtml.xsl

@ -1,125 +1,190 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- DEFAULT XSLT FOR COLLECTIONS THAT DO NOT DEFINE THEIR OWN--> <!-- DEFAULT XSLT FOR COLLECTIONS THAT DO NOT DEFINE THEIR OWN-->
<xsl:variable name="BASEURL"> <xsl:variable name="BASEURL">
<xsl:value-of select="$baseUrl"/> <xsl:value-of select="$baseUrl"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="PATH"> <xsl:variable name="PATH">
<xsl:value-of select="$path"/> <xsl:value-of select="$path"/>
</xsl:variable> </xsl:variable>
<xsl:variable name="thisPid" select="$collectionPid"/> <xsl:variable name="thisPid" select="$collectionPid"/>
<xsl:variable name="thisTitle" select="$collectionTitle"/> <xsl:variable name="thisTitle" select="$collectionTitle"/>
<xsl:variable name="size" select="20"/> <xsl:variable name="size" select="20"/>
<xsl:variable name="page" select="$hitPage"/> <xsl:variable name="page" select="$hitPage"/>
<xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/> <xsl:variable name="start" select="((number($page) - 1) * number($size)) + 1"/>
<xsl:variable name="end" select="($start - 1) + number($size)"/> <xsl:variable name="end" select="($start - 1) + number($size)"/>
<xsl:variable name='columns' select="4"/> <xsl:variable name='columns' select="4"/>
<xsl:variable name="count" select="count(sparql/results/result)"/> <xsl:variable name="count" select="count(sparql/results/result)"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:if test="$count>0"> <xsl:if test="$count>0">
<table width='100%'> <table width='100%'>
<tr><td colspan="2"> <tr>
<div align="center"> <td colspan="2">
<xsl:choose> <div align="center">
<xsl:when test="$end >= $count and $start = 1"> <xsl:choose>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:when test="$end >= $count and $start = 1">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$start"/>-
</xsl:when> <xsl:value-of select="$count"/>
<xsl:when test="$end >= $count"> of
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <xsl:value-of select="$count"/>&#160;
of <xsl:value-of select="$count"/>&#160;<br /> <br />
<a> </xsl:when>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:when test="$end >= $count">
</xsl:attribute> <xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</td></tr> </td>
</tr>
<!--select="//guestbook/entry[position()>=$start and $end>=position()]">--> <!--select="//guestbook/entry[position()>=$start and $end>=position()]">-->
<xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]"> <xsl:for-each select="/sparql/results/result[position()>=$start and position() &lt;=$end]">
<xsl:variable name='OBJECTURI' select="object/@uri"/> <xsl:variable name='OBJECTURI' select="object/@uri"/>
<xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/> <xsl:variable name='PID' select="substring-after($OBJECTURI,'/')"/>
<tr> <tr>
<td> <td>
<img> <img>
<xsl:attribute name="src"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$PID"/>/TN <xsl:attribute name="src">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</img> <xsl:value-of select="$PID"/>/TN
</td><td> </xsl:attribute>
<a> </img>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:copy-of select="$PID"/>/-/<xsl:value-of select="title"/> </td>
</xsl:attribute> <td>
<xsl:value-of select="title"/> <a>
</a> <xsl:attribute name="href">
</td></tr> <xsl:value-of select="$BASEURL"/>/fedora/repository/
</xsl:for-each> <xsl:copy-of select="$PID"/>/-/
</table> <xsl:value-of select="title"/>
<div align="center"> </xsl:attribute>
<xsl:choose> <xsl:value-of select="title"/>
<xsl:when test="$end >= $count and $start = 1"> </a>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> </td>
of <xsl:value-of select="$count"/>&#160;<br /> </tr>
</xsl:when> </xsl:for-each>
<xsl:when test="$end >= $count"> </table>
<xsl:value-of select="$start"/>-<xsl:value-of select="$count"/> <div align="center">
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:choose>
<a> <xsl:when test="$end >= $count and $start = 1">
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$start"/>-
</xsl:attribute> <xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
</xsl:when>
<xsl:when test="$end >= $count">
<xsl:value-of select="$start"/>-
<xsl:value-of select="$count"/>
of
<xsl:value-of select="$count"/>&#160;
<br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a> </a>
</xsl:when> </xsl:when>
<xsl:when test="$start = 1"> <xsl:when test="$start = 1">
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$start"/>-<xsl:value-of select="$end"/> <xsl:value-of select="$start"/>-
of <xsl:value-of select="$count"/>&#160;<br /> <xsl:value-of select="$end"/>
<a> of
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page - 1"/> <xsl:value-of select="$count"/>&#160;
</xsl:attribute> <br />
<a>
<xsl:attribute name="href">
<xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page - 1"/>
</xsl:attribute>
&lt;&lt;Prev &lt;&lt;Prev
</a>&#160; </a>&#160;
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$BASEURL"/>/fedora/repository/<xsl:value-of select="$thisPid"/>/-/<xsl:value-of select="$thisTitle"/>/<xsl:value-of select="$page + 1"/> <xsl:attribute name="href">
</xsl:attribute> <xsl:value-of select="$BASEURL"/>/fedora/repository/
<xsl:value-of select="$thisPid"/>/-/
<xsl:value-of select="$thisTitle"/>/
<xsl:value-of select="$page + 1"/>
</xsl:attribute>
Next>> Next>>
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

5
fedora_repository.install

@ -1,5 +1,6 @@
<?php <?php
// $Id$
/** /**
* @file fedora_repository.install * @file fedora_repository.install
@ -59,7 +60,7 @@ function fedora_repository_requirements($phase) {
$requirements['fedora-repository']['value'] = t("Not available"); $requirements['fedora-repository']['value'] = t("Not available");
$requirements['fedora-repository']['severity'] = REQUIREMENT_ERROR; $requirements['fedora-repository']['severity'] = REQUIREMENT_ERROR;
$requirements['fedora-repository']['description'] = t('Ensure that Fedora is running and that the <a href="@collection-settings">collection settings</a> are correct.', $requirements['fedora-repository']['description'] = t('Ensure that Fedora is running and that the <a href="@collection-settings">collection settings</a> are correct.',
array('@collection-settings' => $base_url.'/admin/settings/fedora_repository')); array('@collection-settings' => $base_url . '/admin/settings/fedora_repository'));
} }
else { else {
$requirements['fedora-repository']['value'] = t("Available"); $requirements['fedora-repository']['value'] = t("Available");

131
fedora_repository.module

@ -1,6 +1,6 @@
<?php <?php
// $Id$
/* /*
* Created on Aug 10, 2007 * Created on Aug 10, 2007
@ -22,8 +22,6 @@ function fedora_repository_admin() {
return $adminForm->createAdminForm(); return $adminForm->createAdminForm();
} }
/** /**
* drupal hook * drupal hook
* calls the fedora_repositorys_admin form * calls the fedora_repositorys_admin form
@ -56,9 +54,9 @@ function fedora_repository_purge_object($pid = NULL, $name = NULL) {
return ''; return '';
} }
$output = t('Are you sure you wish to purge object %name %pid!<br /><b>This cannot be undone</b><br />', $output = t('Are you sure you wish to purge object %name %pid!<br /><b>This cannot be undone</b><br />',
array( array(
'%name' => $name, '%name' => $name,
'%pid' => $pid) '%pid' => $pid)
); );
$output .= drupal_get_form('fedora_repository_purge_object_form', $pid); $output .= drupal_get_form('fedora_repository_purge_object_form', $pid);
@ -201,7 +199,7 @@ function fedora_repository_ingest_form_validate($form, &$form_state) {
if (!empty($file)) { if (!empty($file)) {
if (!in_array($dformat, $allowedMimeTypes)) { if (!in_array($dformat, $allowedMimeTypes)) {
form_set_error('ingest-file-location', t('The uploaded file\'s mimetype (' . $dformat . ') is not associated with this Content Model. The allowed types are ' . form_set_error('ingest-file-location', t('The uploaded file\'s mimetype (' . $dformat . ') is not associated with this Content Model. The allowed types are ' .
implode(' ', $allowedMimeTypes))); implode(' ', $allowedMimeTypes)));
file_delete($file); file_delete($file);
return; return;
} }
@ -368,9 +366,9 @@ function add_stream_form_validate($form, &$form_state) {
return FALSE; return FALSE;
} }
$validators = array( $validators = array(
// 'file_validate_is_image' => array(), // 'file_validate_is_image' => array(),
// 'file_validate_image_resolution' => array('85x85'), // 'file_validate_image_resolution' => array('85x85'),
// 'file_validate_size' => array(30 * 1024), // 'file_validate_size' => array(30 * 1024),
); );
$fileObject = file_save_upload('add-stream-file-location', $validators); $fileObject = file_save_upload('add-stream-file-location', $validators);
@ -395,8 +393,8 @@ function fedora_repository_purge_stream($pid = NULL, $dsId = NULL, $name = NULL)
} }
$output = t('Are you sure you wish to purge this datastream %name<br />', $output = t('Are you sure you wish to purge this datastream %name<br />',
array( array(
'%name' => $name) '%name' => $name)
); );
$output .= drupal_get_form('fedora_repository_purge_stream_form', $pid, $dsId); $output .= drupal_get_form('fedora_repository_purge_stream_form', $pid, $dsId);
return $output; return $output;
@ -527,8 +525,8 @@ function fedora_repository_replace_stream_form_submit($form, &$form_state) {
$dsid = $form_state['values']['dsId']; $dsid = $form_state['values']['dsId'];
$dsLabel = $form_state['values']['dsLabel']; $dsLabel = $form_state['values']['dsLabel'];
// Remove the original file extension from the label and add the new one // Remove the original file extension from the label and add the new one
$indexOfDot = strrpos($dsLabel,'.');//use strrpos to get the last dot $indexOfDot = strrpos($dsLabel, '.'); //use strrpos to get the last dot
if($indexOfDot !== FALSE){ if ($indexOfDot !== FALSE) {
$dsLabel = substr($dsLabel, 0, $indexOfDot); $dsLabel = substr($dsLabel, 0, $indexOfDot);
$dsLabel .= substr($file->filename, strrpos($file->filename, '.')); // Add the file extention to the end of the label.; $dsLabel .= substr($file->filename, strrpos($file->filename, '.')); // Add the file extention to the end of the label.;
} }
@ -550,7 +548,6 @@ function fedora_repository_replace_stream_form_submit($form, &$form_state) {
$item->modify_datastream_by_reference($streamUrl, $dsid, $dsLabel, $dformat); $item->modify_datastream_by_reference($streamUrl, $dsid, $dsLabel, $dformat);
$form_state['redirect'] = 'fedora/repository/' . $pid; $form_state['redirect'] = 'fedora/repository/' . $pid;
} }
function fedora_repository_edit_qdc_page($pid = NULL, $dsId = NULL) { function fedora_repository_edit_qdc_page($pid = NULL, $dsId = NULL) {
@ -727,7 +724,7 @@ function fedora_repository_get_items($pid = NULL, $dsId = NULL, $collection = NU
return ''; return '';
} }
if ($pid &!validPid($pid)) { if ($pid & !validPid($pid)) {
drupal_set_message(t("Invalid PID!"), 'error'); drupal_set_message(t("Invalid PID!"), 'error');
return ' '; return ' ';
@ -869,7 +866,7 @@ function repository_service($pid = NULL, $servicePid = NULL, $serviceMethod = NU
$item = new Fedora_Item($pid); $item = new Fedora_Item($pid);
if ($item !== false) { if ($item !== FALSE) {
echo $item->get_dissemination($servicePid, $serviceMethod); echo $item->get_dissemination($servicePid, $serviceMethod);
} }
@ -1180,7 +1177,6 @@ function fedora_repository_theme() {
'arguments' => array( 'arguments' => array(
'element' => NULL 'element' => NULL
), ),
'fedora_repository_solution_packs_list' => array( 'fedora_repository_solution_packs_list' => array(
'arguments' => array( 'arguments' => array(
'solution_packs' => NULL, 'solution_packs' => NULL,
@ -1263,10 +1259,10 @@ function fedora_repository_demo_objects_form() {
); );
foreach (array( foreach (array(
'islandora:collectionCModel' => 'Islandora default content models', 'islandora:collectionCModel' => 'Islandora default content models',
'islandora:top' => 'Islandora top-level collection', 'islandora:top' => 'Islandora top-level collection',
'islandora:demos' => 'Islandora demos collection', 'islandora:demos' => 'Islandora demos collection',
'islandora:largeimages' => 'Sample large image content model (requires <a href="http://sourceforge.net/projects/djatoka/">Djatoka</a> and <a href="http://www.kakadusoftware.com/index.php?option=com_content&task=view&id=26&Itemid=22">Kakadu</a>.)', 'islandora:largeimages' => 'Sample large image content model (requires <a href="http://sourceforge.net/projects/djatoka/">Djatoka</a> and <a href="http://www.kakadusoftware.com/index.php?option=com_content&task=view&id=26&Itemid=22">Kakadu</a>.)',
) )
as $available_demo => $available_demo_desc) { as $available_demo => $available_demo_desc) {
try { try {
@ -1432,7 +1428,7 @@ function fedora_repository_demo_objects_form_submit($form, &$form_state) {
if (!empty($form_state['values']['demo_collections']['islandora:largeimages'])) { if (!empty($form_state['values']['demo_collections']['islandora:largeimages'])) {
$error = ''; $error = '';
foreach (array('islandora_jp2Sdep-slideCModel.xml', 'islandora_mods2htmlSdef.xml', 'islandora_mods2htmlSdep.xml', foreach (array('islandora_jp2Sdep-slideCModel.xml', 'islandora_mods2htmlSdef.xml', 'islandora_mods2htmlSdep.xml',
'islandora_slideCModel.xml', 'islandora_viewerSdep-slideCModel.xml', 'ilives_jp2Sdef.xml', 'ilives_viewerSdef.xml') as $foxml_file) { 'islandora_slideCModel.xml', 'islandora_viewerSdep-slideCModel.xml', 'ilives_jp2Sdef.xml', 'ilives_viewerSdef.xml') as $foxml_file) {
try { try {
$item = Fedora_Item::ingest_from_FOXML_file(drupal_get_path('module', 'fedora_repository') . '/content_models/' . $foxml_file); $item = Fedora_Item::ingest_from_FOXML_file(drupal_get_path('module', 'fedora_repository') . '/content_models/' . $foxml_file);
} catch (exception $e) { } catch (exception $e) {
@ -1454,16 +1450,15 @@ function fedora_repository_demo_objects_form_submit($form, &$form_state) {
} }
} }
function fedora_repository_required_fedora_objects() { function fedora_repository_required_fedora_objects() {
// array( 'path-to-foxml-file', 'pid', 'dsid', 'path-to-datastream-file', int dsversion, boolean required) // array( 'path-to-foxml-file', 'pid', 'dsid', 'path-to-datastream-file', int dsversion, boolean required)
$module_path = drupal_get_path('module', 'fedora_repository'); $module_path = drupal_get_path('module', 'fedora_repository');
return array ( return array(
'fedora_repository' => array( 'fedora_repository' => array(
'module' => 'fedora_repository', 'module' => 'fedora_repository',
'title' => 'Islandora Core', 'title' => 'Islandora Core',
'objects' => array ( 'objects' => array(
array ( array(
'pid' => 'islandora:collectionCModel', 'pid' => 'islandora:collectionCModel',
'label' => 'Islandora Collection Content Model', 'label' => 'Islandora Collection Content Model',
'dsid' => 'ISLANDORACM', 'dsid' => 'ISLANDORACM',
@ -1471,7 +1466,7 @@ function fedora_repository_required_fedora_objects() {
'dsversion' => 2, 'dsversion' => 2,
'cmodel' => 'fedora-system:ContentModel-3.0', 'cmodel' => 'fedora-system:ContentModel-3.0',
), ),
array ( array(
'pid' => 'islandora:strict_pdf', 'pid' => 'islandora:strict_pdf',
'label' => 'Islandora strict PDF content model', 'label' => 'Islandora strict PDF content model',
'dsid' => 'ISLANDORACM', 'dsid' => 'ISLANDORACM',
@ -1482,85 +1477,85 @@ function fedora_repository_required_fedora_objects() {
'pid' => 'islandora:top', 'pid' => 'islandora:top',
'label' => 'Islandora Top-level Collection', 'label' => 'Islandora Top-level Collection',
'cmodel' => 'islandora:collectionCModel', 'cmodel' => 'islandora:collectionCModel',
'datastreams' => array ( 'datastreams' => array(
array ( array(
'dsid' => 'COLLECTION_POLICY', 'dsid' => 'COLLECTION_POLICY',
'datastream_file' => "$module_path/collection_policies/COLLECTION-COLLECTION POLICY.xml", 'datastream_file' => "$module_path/collection_policies/COLLECTION-COLLECTION POLICY.xml",
), ),
array ( array(
'dsid' => 'TN', 'dsid' => 'TN',
'datastream_file' => "$module_path/images/Gnome-emblem-photos.png", 'datastream_file' => "$module_path/images/Gnome-emblem-photos.png",
'mimetype' => 'image/png', 'mimetype' => 'image/png',
), ),
), ),
), ),
array ( array(
'pid' => 'islandora:ContentModelCollection', 'pid' => 'islandora:ContentModelCollection',
'label' => 'Collection of installed content models', 'label' => 'Collection of installed content models',
'cmodel' => 'islandora:collectionCModel', 'cmodel' => 'islandora:collectionCModel',
'parent' => 'islandora:top', 'parent' => 'islandora:top',
'datastreams' => array ( 'datastreams' => array(
array ( array(
'dsid' => 'COLLECTION_VIEW', 'dsid' => 'COLLECTION_VIEW',
'datastream_file' => "$module_path/collection_views/simple_list_view.xml", 'datastream_file' => "$module_path/collection_views/simple_list_view.xml",
), ),
array ( array(
'dsid' => 'TN', 'dsid' => 'TN',
'datastream_file' => "$module_path/images/contentModel.jpg", 'datastream_file' => "$module_path/images/contentModel.jpg",
'mimetype' => 'image/jpeg', 'mimetype' => 'image/jpeg',
), ),
array ( array(
'dsid' => 'QUERY', 'dsid' => 'QUERY',
'datastream_file' => "$module_path/collection_views/cmodel_collection_query.txt", 'datastream_file' => "$module_path/collection_views/cmodel_collection_query.txt",
'mimetype' => 'text/plain', 'mimetype' => 'text/plain',
), ),
), ),
), ),
array ( array(
'pid' => 'islandora:demos', 'pid' => 'islandora:demos',
'label' => 'Islandora demos collection', 'label' => 'Islandora demos collection',
'cmodel' => 'islandora:collectionCModel', 'cmodel' => 'islandora:collectionCModel',
'parent' => 'islandora:top', 'parent' => 'islandora:top',
'datastreams' => array ( 'datastreams' => array(
array ( array(
'dsid' => 'TN', 'dsid' => 'TN',
'datastream_file' => "$module_path/images/Gnome-emblem-photos.png", 'datastream_file' => "$module_path/images/Gnome-emblem-photos.png",
'mimetype' => 'image/png', 'mimetype' => 'image/png',
), ),
array ( array(
'dsid' => 'COLLECTION_POLICY', 'dsid' => 'COLLECTION_POLICY',
'datastream_file' => "$module_path/collection_policies/COLLECTION-COLLECTION POLICY.xml", 'datastream_file' => "$module_path/collection_policies/COLLECTION-COLLECTION POLICY.xml",
), ),
), ),
), ),
array ( array(
'pid' => 'islandora:pdf_collection', 'pid' => 'islandora:pdf_collection',
'label' => 'Islandora Demo PDF Collection', 'label' => 'Islandora Demo PDF Collection',
'cmodel' => 'islandora:collectionCModel', 'cmodel' => 'islandora:collectionCModel',
'parent' => 'islandora:demos', 'parent' => 'islandora:demos',
'datastreams' => array ( 'datastreams' => array(
array ( array(
'dsid' => 'TN', 'dsid' => 'TN',
'datastream_file' => "$module_path/images/Crystal_Clear_mimetype_pdf.png", 'datastream_file' => "$module_path/images/Crystal_Clear_mimetype_pdf.png",
'mimetype' => 'image/png', 'mimetype' => 'image/png',
), ),
array ( array(
'dsid' => 'COLLECTION_POLICY', 'dsid' => 'COLLECTION_POLICY',
'datastream_file' => "$module_path/collection_policies/PDF-COLLECTION POLICY.xml", 'datastream_file' => "$module_path/collection_policies/PDF-COLLECTION POLICY.xml",
), ),
), ),
), ),
array ( array(
'pid' => 'demo:DualResImage', 'pid' => 'demo:DualResImage',
'foxml_file' => "$module_path/content_models/demo_DualResImage.xml", 'foxml_file' => "$module_path/content_models/demo_DualResImage.xml",
'datastreams' => array( 'datastreams' => array(
array ( array(
'dsid' => 'ISLANDORACM', 'dsid' => 'ISLANDORACM',
'datastream_file' => "$module_path/content_models/STANDARD JPG.xml", 'datastream_file' => "$module_path/content_models/STANDARD JPG.xml",
), ),
), ),
), ),
array ( array(
'pid' => 'demo:DualResImageCollection', 'pid' => 'demo:DualResImageCollection',
'foxml_file' => "$module_path/content_models/demo_DualResImageCollection.xml", 'foxml_file' => "$module_path/content_models/demo_DualResImageCollection.xml",
'datastreams' => array( 'datastreams' => array(
@ -1570,47 +1565,47 @@ function fedora_repository_required_fedora_objects() {
), ),
), ),
), ),
array ( array(
'pid' => 'demo:DualResolution', 'pid' => 'demo:DualResolution',
'foxml_file' => "$module_path/content_models/demo_DualResolution.xml", 'foxml_file' => "$module_path/content_models/demo_DualResolution.xml",
), ),
array ( array(
'pid' => 'demo:DualResImageImpl', 'pid' => 'demo:DualResImageImpl',
'foxml_file' => "$module_path/content_models/demo_DualResImageImpl.xml", 'foxml_file' => "$module_path/content_models/demo_DualResImageImpl.xml",
), ),
array ( array(
'pid' => 'demo:CollectionImpl', 'pid' => 'demo:CollectionImpl',
'foxml_file' => "$module_path/content_models/demo_CollectionImpl.xml", 'foxml_file' => "$module_path/content_models/demo_CollectionImpl.xml",
), ),
array ( array(
'pid' => 'demo:Collection', 'pid' => 'demo:Collection',
'foxml_file' => "$module_path/content_models/demo_Collection.xml", 'foxml_file' => "$module_path/content_models/demo_Collection.xml",
), ),
array ( array(
'pid' => 'islandora:demo_image_collection', 'pid' => 'islandora:demo_image_collection',
'label' => 'Demo Image Collection', 'label' => 'Demo Image Collection',
'cmodel' => 'demo:DualResImageCollection', 'cmodel' => 'demo:DualResImageCollection',
'parent' => 'islandora:demos', 'parent' => 'islandora:demos',
'datastreams' => array ( 'datastreams' => array(
array ( array(
'dsid' => 'COLLECTION_POLICY', 'dsid' => 'COLLECTION_POLICY',
'datastream_file' => "$module_path/collection_policies/JPG-COLLECTION POLICY.xml", 'datastream_file' => "$module_path/collection_policies/JPG-COLLECTION POLICY.xml",
), ),
array ( array(
'dsid' => 'TN', 'dsid' => 'TN',
'datastream_file' => "$module_path/images/Gnome-emblem-photos.png", 'datastream_file' => "$module_path/images/Gnome-emblem-photos.png",
'mimetype' => 'image/png', 'mimetype' => 'image/png',
), ),
array ( array(
'dsid' => 'COLLECTION_VIEW', 'dsid' => 'COLLECTION_VIEW',
'datastream_file' => "$module_path/collection_views/standard_jpeg_collection_view.xml", 'datastream_file' => "$module_path/collection_views/standard_jpeg_collection_view.xml",
), ),
array ( array(
'dsid' => 'QUERY', 'dsid' => 'QUERY',
'datastream_file' => "$module_path/collection_views/standard_jpeg_collection_query.txt", 'datastream_file' => "$module_path/collection_views/standard_jpeg_collection_query.txt",
'mimetype' => 'text/plain', 'mimetype' => 'text/plain',
), ),
array ( array(
'dsid' => 'DC', 'dsid' => 'DC',
'datastream_file' => "$module_path/collection_views/demo_image_collection_dc_record.xml", 'datastream_file' => "$module_path/collection_views/demo_image_collection_dc_record.xml",
), ),
@ -1939,9 +1934,9 @@ function theme_add_to_basket_link($pid, $type = 'object') {
*/ */
if (!_is_added_to_basket($pid)) { if (!_is_added_to_basket($pid)) {
return l( return l(
theme('image', drupal_get_path('module', 'Fedora_Repository') . '/images/' . $save, t("Add to basket"), t("Add this @object to my basket", array('@object' => $object))), theme('image', drupal_get_path('module', 'Fedora_Repository') . '/images/' . $save, t("Add to basket"), t("Add this @object to my basket", array('@object' => $object))),
"fedora/repository/addToBasket/" . $path, "fedora/repository/addToBasket/" . $path,
array('html' => TRUE) array('html' => TRUE)
); );
} }
@ -1964,7 +1959,6 @@ function fedora_repository_display_schema($file) {
return; return;
} }
function fedora_repository_batch_reingest_object($object, &$context) { function fedora_repository_batch_reingest_object($object, &$context) {
module_load_include('inc', 'fedora_repository', 'api/fedora_item'); module_load_include('inc', 'fedora_repository', 'api/fedora_item');
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); module_load_include('inc', 'fedora_repository', 'api/fedora_utils');
@ -1989,8 +1983,8 @@ function fedora_repository_batch_reingest_object($object, &$context) {
} }
} }
if (!empty($object['dsid']) && !empty($object['datastream_file'])) { if (!empty($object['dsid']) && !empty($object['datastream_file'])) {
$datastreams = array ( $datastreams = array(
array ( array(
'dsid' => $object['dsid'], 'dsid' => $object['dsid'],
'datastream_file' => $object['datastream_file'], 'datastream_file' => $object['datastream_file'],
) )
@ -2011,7 +2005,7 @@ function fedora_repository_batch_reingest_object($object, &$context) {
if (!empty($object['parent'])) { if (!empty($object['parent'])) {
$new_item->add_relationship('isMemberOfCollection', $object['parent']); $new_item->add_relationship('isMemberOfCollection', $object['parent']);
} }
foreach($datastreams as $ds) { foreach ($datastreams as $ds) {
if ($ds['dsid'] == 'DC') { if ($ds['dsid'] == 'DC') {
$new_item->modify_datastream_by_value(file_get_contents($ds['datastream_file']), $ds['dsid'], $ds['label'], 'text/xml'); $new_item->modify_datastream_by_value(file_get_contents($ds['datastream_file']), $ds['dsid'], $ds['label'], 'text/xml');
} }
@ -2037,13 +2031,14 @@ function fedora_repository_get_islandora_datastream_version($item = NULL, $dsid
$return = NULL; $return = NULL;
if (isset($item)) { if (isset($item)) {
$doc = simplexml_load_string($item->get_datastream_dissemination($dsid)); $doc = simplexml_load_string($item->get_datastream_dissemination($dsid));
} elseif (isset($datastream_file)) { }
elseif (isset($datastream_file)) {
$doc = simplexml_load_file($datastream_file); $doc = simplexml_load_file($datastream_file);
} }
if (!empty($doc)) { if (!empty($doc)) {
$attrs = $doc->attributes(); $attrs = $doc->attributes();
foreach($attrs as $name => $value) { foreach ($attrs as $name => $value) {
if ($name == 'version') { if ($name == 'version') {
$return = (int) $value; $return = (int) $value;
break; break;
@ -2063,7 +2058,7 @@ function theme_fedora_repository_solution_packs_list($solution_packs) {
drupal_add_css(drupal_get_path('module', 'update') .'/update.css'); drupal_add_css(drupal_get_path('module', 'update') . '/update.css');
return $output; return $output;
} }

10
fedora_repository.solutionpacks.inc

@ -1,6 +1,5 @@
<?php <?php
/** /**
* Invokes a hook to any dependent modules asking them if their installations require * Invokes a hook to any dependent modules asking them if their installations require
* any fedora objects to be present. Modules implementing this hook should return an array * any fedora objects to be present. Modules implementing this hook should return an array
@ -87,7 +86,8 @@ function fedora_repository_solution_pack_form(&$form_state, $solution_pack_modul
if (!$item->exists()) { if (!$item->exists()) {
$object_status = 'Missing'; $object_status = 'Missing';
$needs_install = TRUE; $needs_install = TRUE;
} else { }
else {
if (isset($object['dsid']) && isset($object['datastream_file']) && isset($object['dsversion'])) { if (isset($object['dsid']) && isset($object['datastream_file']) && isset($object['dsversion'])) {
$datastreams = array( $datastreams = array(
array( array(
@ -96,7 +96,8 @@ function fedora_repository_solution_pack_form(&$form_state, $solution_pack_modul
'dsversion' => $object['dsversion'], 'dsversion' => $object['dsversion'],
), ),
); );
} elseif (!empty($object['datastreams'])) { }
elseif (!empty($object['datastreams'])) {
$datastreams = $object['datastreams']; $datastreams = $object['datastreams'];
} }
if (!empty($datastreams) && is_array($datastreams)) { if (!empty($datastreams) && is_array($datastreams)) {
@ -137,7 +138,8 @@ function fedora_repository_solution_pack_form(&$form_state, $solution_pack_modul
); );
if (!$needs_install && !$needs_update) { if (!$needs_install && !$needs_update) {
$form['install_status']['#value'] = theme_image('misc/watchdog-ok.png') . t('All required objects are installed and up-to-date.'); $form['install_status']['#value'] = theme_image('misc/watchdog-ok.png') . t('All required objects are installed and up-to-date.');
} else { }
else {
$form['install_status']['#value'] = theme_image('misc/watchdog-warning.png') . t('Some objects must be re-ingested. See Objects list for details.'); $form['install_status']['#value'] = theme_image('misc/watchdog-warning.png') . t('Some objects must be re-ingested. See Objects list for details.');
} }
$form['submit'] = array( $form['submit'] = array(

27
formClass.inc

@ -1,6 +1,6 @@
<?php <?php
// $Id$
/* /*
* Created on Jan 22, 2008 * Created on Jan 22, 2008
@ -37,12 +37,12 @@ class formClass {
); );
$items['admin/settings/fedora_repository/demoobjects'] = array( $items['admin/settings/fedora_repository/demoobjects'] = array(
'title' => t('Solution Packs'), 'title' => t('Solution Packs'),
'description' => t('Install content models and collections required by installed solution packs.'), 'description' => t('Install content models and collections required by installed solution packs.'),
'page callback' => 'fedora_repository_solution_packs_page', 'page callback' => 'fedora_repository_solution_packs_page',
'access arguments' => array('add fedora datastreams'), 'access arguments' => array('add fedora datastreams'),
'file' => 'fedora_repository.solutionpacks.inc', 'file' => 'fedora_repository.solutionpacks.inc',
'type' => MENU_LOCAL_TASK, 'type' => MENU_LOCAL_TASK,
); );
$items['islandoracm.xsd'] = array( $items['islandoracm.xsd'] = array(
@ -78,7 +78,7 @@ class formClass {
'page callback' => 'repository_page', 'page callback' => 'repository_page',
'type' => MENU_NORMAL_ITEM, 'type' => MENU_NORMAL_ITEM,
'access arguments' => array('view fedora collection'), 'access arguments' => array('view fedora collection'),
// 'access' => TRUE // 'access' => TRUE
); );
$items['fedora/repository/service'] = array( $items['fedora/repository/service'] = array(
@ -242,7 +242,7 @@ class formClass {
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Fedora RISearch URL'), '#title' => t('Fedora RISearch URL'),
'#default_value' => variable_get('fedora_repository_url', '#default_value' => variable_get('fedora_repository_url',
'http://localhost:8080/fedora/risearch'), 'http://localhost:8080/fedora/risearch'),
'#description' => t('The url of the Fedora server'), '#required' => TRUE, '#description' => t('The url of the Fedora server'), '#required' => TRUE,
'#weight' => 0 '#weight' => 0
); );
@ -577,7 +577,6 @@ class formClass {
if (!empty($newElements)) { if (!empty($newElements)) {
$available_dsids = array_merge($available_dsids, $newElements); $available_dsids = array_merge($available_dsids, $newElements);
} }
} }
} }
@ -640,10 +639,10 @@ class formClass {
); );
if (!empty($unused_dsids)) { if (!empty($unused_dsids)) {
$dsidsForForm = array(); $dsidsForForm = array();
foreach ($unused_dsids as $dsid){ foreach ($unused_dsids as $dsid) {
$dsidsForForm[$dsid]=$dsid; $dsidsForForm[$dsid] = $dsid;
} }
$form['stream_id'] = array( $form['stream_id'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Datastream ID'), '#title' => t('Datastream ID'),

8
form_elements/css/copyright.css

@ -1,7 +1,7 @@
.cc_preview .cc_preview
{ {
width: 250px; width: 250px;
overflow: none; overflow: none;
border: 0px solid black; border: 0px solid black;
float: right; float: right;
} }

56
form_elements/css/filechooser.css

@ -3,24 +3,24 @@
float: left; float: left;
background-color: #dfdfdf; background-color: #dfdfdf;
/* /*
position: relative; position: relative;
visibility: hidden; visibility: hidden;
left: -5000px;*/ left: -5000px;*/
width: 680px; width: 680px;
height: 200px; height: 200px;
} }
.carousel li .carousel li
{ {
cursor:pointer; cursor:pointer;
} }
.carousel li.selected .carousel li.selected
{ {
background-color: #999; background-color: #999;
} }
.carousel li div .carousel li div
@ -56,38 +56,38 @@
.carousel li div.audioplaceholder .carousel li div.audioplaceholder
{ {
width: 128px; width: 128px;
height: 128px; height: 128px;
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
background-image: url('../images/video.png'); background-image: url('../images/video.png');
background-repeat:no-repeat; background-repeat:no-repeat;
} }
.carousel li div.imageplaceholder .carousel li div.imageplaceholder
{ {
width: 128px; width: 128px;
height: 128px; height: 128px;
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
background-image: url('../images/image.png'); background-image: url('../images/image.png');
background-repeat:no-repeat; background-repeat:no-repeat;
} }
.carousel li div.applicationplaceholder .carousel li div.applicationplaceholder
{ {
width: 128px; width: 128px;
height: 128px; height: 128px;
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
background-image: url('../images/application.png'); background-image: url('../images/application.png');
background-repeat:no-repeat; background-repeat:no-repeat;
} }
.carousel li.loading .carousel li.loading
{ {
font-size: 150%; font-size: 150%;
margin: auto; margin: auto;
margin-top: 50px; margin-top: 50px;
text-align: center; text-align: center;
width: 250px; width: 250px;
} }

28
form_elements/css/list.css

@ -1,25 +1,25 @@
.tagEditor .tagEditor
{ {
margin: 4px 0; margin: 4px 0;
padding: 0; padding: 0;
} }
.tagEditor li .tagEditor li
{ {
display: inline; display: inline;
background-image: url('../images/minus_small.png'); background-image: url('../images/minus_small.png');
background-color: #efe; background-color: #efe;
background-position: right center; background-position: right center;
background-repeat: no-repeat; background-repeat: no-repeat;
list-style-type: none; list-style-type: none;
padding: 0 18px 0 6px; padding: 0 18px 0 6px;
margin: 0 4px; margin: 0 4px;
cursor: pointer; cursor: pointer;
-moz-border-radius: 5px; -moz-border-radius: 5px;
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
} }
.tagEditor li:hover .tagEditor li:hover
{ {
background-color: #eee; background-color: #eee;
} }

120
form_elements/css/people.css

@ -4,134 +4,134 @@
#ife-peoplelist-table #ife-peoplelist-table
{ {
margin-top: 15px; margin-top: 15px;
width: 100%; width: 100%;
} }
#ife-peoplelist-table .form-item { #ife-peoplelist-table .form-item {
margin-bottom: 5px; margin-bottom: 5px;
} }
#ife-peoplelist-table .form-item .description { #ife-peoplelist-table .form-item .description {
margin-top: 3px; margin-top: 3px;
} }
#ife-peoplelist-table .ife-person-name { #ife-peoplelist-table .ife-person-name {
width: auto; width: auto;
height: 125px; height: 125px;
} }
#ife-peoplelist-table .ife-person-name label{ #ife-peoplelist-table .ife-person-name label{
font-weight: bold; font-weight: bold;
float: left; float: left;
clear: left; clear: left;
width: 125px; width: 125px;
} }
#ife-peoplelist-table .ife-person-role { #ife-peoplelist-table .ife-person-role {
width: 150px; width: 150px;
padding-right: 50px; padding-right: 50px;
} }
#ife-peoplelist-table .ife-person-remove { #ife-peoplelist-table .ife-person-remove {
width: 100px; width: 100px;
} }
#ife-peoplelist-table .description { #ife-peoplelist-table .description {
white-space: normal; white-space: normal;
} }
#ife-peoplelist-table .ife-person-content .form-item .form-text { #ife-peoplelist-table .ife-person-content .form-item .form-text {
width: 150px; width: 150px;
} }
#ife-peoplelist-table .ife-person-view-content input.form-submit { #ife-peoplelist-table .ife-person-view-content input.form-submit {
display: none; display: none;
} }
#ife-peoplelist-table .ife-person-content { #ife-peoplelist-table .ife-person-content {
display: none; display: none;
} }
#ife-peoplelist-table .ife-person-remove label, #ife-peoplelist-table .ife-person-remove label,
#add-more-people-button label, #add-more-people-button label,
#add-more-conf-button label, #add-more-conf-button label,
#add-more-org-button label { #add-more-org-button label {
font-weight: bold; font-weight: bold;
float: left; float: left;
clear: left; clear: left;
width: auto; width: auto;
} }
#add-more-org-button, #add-more-org-button,
#add-more-conf-button, #add-more-conf-button,
#add-more-people-button { #add-more-people-button {
width: 150px; width: 150px;
display: block; display: block;
margin-top: 20px; margin-top: 20px;
float: right; float: right;
} }
.add-person, .add-conf, .add-org, .add-person, .add-conf, .add-org,
#ife-peoplelist-table .delete-person { #ife-peoplelist-table .delete-person {
display: block; display: block;
overflow: hidden; overflow: hidden;
width: 32px; width: 32px;
height: 32px; height: 32px;
padding: 0; padding: 0;
margin: 0; margin: 0;
border: 0; border: 0;
text-indent: -9999px; text-indent: -9999px;
cursor: pointer; /* hand-shaped cursor */ cursor: pointer; /* hand-shaped cursor */
cursor: hand; /* for IE 5.x */ cursor: hand; /* for IE 5.x */
} }
.add-person { .add-person {
background: transparent url(../images/add_user.png) no-repeat 0 0; background: transparent url(../images/add_user.png) no-repeat 0 0;
} }
.delete-person { .delete-person {
background: transparent url(../images/editdelete.png) no-repeat 0 0; background: transparent url(../images/editdelete.png) no-repeat 0 0;
} }
.add-org { .add-org {
background: transparent url(../images/add_group.png) no-repeat 0 0; background: transparent url(../images/add_group.png) no-repeat 0 0;
} }
.add-conf { .add-conf {
background: transparent url(../images/groupevent.png) no-repeat 0 0; background: transparent url(../images/groupevent.png) no-repeat 0 0;
} }
/* QT style selection form */ /* QT style selection form */
div.ife-people-preview { div.ife-people-preview {
border: none; border: none;
width: 280px; width: 280px;
height: 80px; height: 80px;
} }
#ife-people-settings .ife-people-styles .form-item { #ife-people-settings .ife-people-styles .form-item {
width: 280px; width: 280px;
float: left; float: left;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
border: 1px solid #ccc; border: 1px solid #ccc;
background-color: #fff; background-color: #fff;
} }
#ife-people-settings .ife-people-styles .form-item .option { #ife-people-settings .ife-people-styles .form-item .option {
display: block; display: block;
background-color: #bfe3ff; background-color: #bfe3ff;
font: bold 12px/18px verdana; font: bold 12px/18px verdana;
color: #0a5793; color: #0a5793;
} }
#ife-people-settings .ife-people-styles .form-item .option:hover { #ife-people-settings .ife-people-styles .form-item .option:hover {
background-color: #aadaff; background-color: #aadaff;
cursor: pointer; cursor: pointer;
color: #003863; color: #003863;
} }
#ife-people-settings .ife-people-styles .form-item .option .form-radio { #ife-people-settings .ife-people-styles .form-item .option .form-radio {
margin-right: 5px; margin-right: 5px;
float: left; float: left;
height: 15px; height: 15px;
margin-top: 2px; margin-top: 2px;
} }
#ife-people-settings .ife-people_wrapper { #ife-people-settings .ife-people_wrapper {
margin: 5px; margin: 5px;
font: bold 12px/170% Verdana; font: bold 12px/170% Verdana;
} }

24
form_elements/css/sticky.css

@ -1,18 +1,18 @@
input.sticky { input.sticky {
height: 18px; height: 18px;
padding-left: 15px; padding-left: 15px;
background: url(../images/pushpin.png) top left no-repeat; background: url(../images/pushpin.png) top left no-repeat;
filter:alpha(opacity=50); filter:alpha(opacity=50);
-moz-opacity:0.5; -moz-opacity:0.5;
-khtml-opacity:0.5; -khtml-opacity:0.5;
opacity:0.5; opacity:0.5;
} }
input.sticky:checked { input.sticky:checked {
background-image: url(../images/pushpin.png); background-image: url(../images/pushpin.png);
filter:alpha(opacity=100); filter:alpha(opacity=100);
-moz-opacity:1; -moz-opacity:1;
-khtml-opacity:1; -khtml-opacity:1;
opacity:1; opacity:1;
} }

64
form_elements/css/ui-lightness/jquery-ui-1.8.4.custom.css vendored

@ -6,7 +6,7 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Theming/API * http://docs.jquery.com/UI/Theming/API
*/ */
/* Layout helpers /* Layout helpers
----------------------------------*/ ----------------------------------*/
@ -51,7 +51,7 @@
* http://docs.jquery.com/UI/Theming/API * http://docs.jquery.com/UI/Theming/API
* *
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
*/ */
/* Component containers /* Component containers
@ -300,7 +300,7 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Resizable#theming * http://docs.jquery.com/UI/Resizable#theming
*/ */
.ui-resizable { position: relative;} .ui-resizable { position: relative;}
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
@ -319,7 +319,7 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Selectable#theming * http://docs.jquery.com/UI/Selectable#theming
*/ */
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; } .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
/* /*
* jQuery UI Accordion @VERSION * jQuery UI Accordion @VERSION
@ -329,7 +329,7 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Accordion#theming * http://docs.jquery.com/UI/Accordion#theming
*/ */
/* IE/Win - Fix animation bug - #4615 */ /* IE/Win - Fix animation bug - #4615 */
.ui-accordion { width: 100%; } .ui-accordion { width: 100%; }
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
@ -347,7 +347,7 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Autocomplete#theming * http://docs.jquery.com/UI/Autocomplete#theming
*/ */
.ui-autocomplete { position: absolute; cursor: default; } .ui-autocomplete { position: absolute; cursor: default; }
/* workarounds */ /* workarounds */
@ -361,36 +361,36 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Menu#theming * http://docs.jquery.com/UI/Menu#theming
*/ */
.ui-menu { .ui-menu {
list-style:none; list-style:none;
padding: 2px; padding: 2px;
margin: 0; margin: 0;
display:block; display:block;
float: left; float: left;
} }
.ui-menu .ui-menu { .ui-menu .ui-menu {
margin-top: -3px; margin-top: -3px;
} }
.ui-menu .ui-menu-item { .ui-menu .ui-menu-item {
margin:0; margin:0;
padding: 0; padding: 0;
zoom: 1; zoom: 1;
float: left; float: left;
clear: left; clear: left;
width: 100%; width: 100%;
} }
.ui-menu .ui-menu-item a { .ui-menu .ui-menu-item a {
text-decoration:none; text-decoration:none;
display:block; display:block;
padding:.2em .4em; padding:.2em .4em;
line-height:1.5; line-height:1.5;
zoom:1; zoom:1;
} }
.ui-menu .ui-menu-item a.ui-state-hover, .ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active { .ui-menu .ui-menu-item a.ui-state-active {
font-weight: normal; font-weight: normal;
margin: -1px; margin: -1px;
} }
/* /*
* jQuery UI Button @VERSION * jQuery UI Button @VERSION
@ -400,7 +400,7 @@
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Button#theming * http://docs.jquery.com/UI/Button#theming
*/ */
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
@ -438,7 +438,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Dialog#theming * http://docs.jquery.com/UI/Dialog#theming
*/ */
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
.ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative; } .ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative; }
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; } .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; }
@ -459,7 +459,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Slider#theming * http://docs.jquery.com/UI/Slider#theming
*/ */
.ui-slider { position: relative; text-align: left; } .ui-slider { position: relative; text-align: left; }
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
@ -482,7 +482,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Tabs#theming * http://docs.jquery.com/UI/Tabs#theming
*/ */
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
@ -500,7 +500,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Datepicker#theming * http://docs.jquery.com/UI/Datepicker#theming
*/ */
.ui-datepicker { width: 17em; padding: .2em .2em 0; } .ui-datepicker { width: 17em; padding: .2em .2em 0; }
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
@ -567,6 +567,6 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://jquery.org/license * http://jquery.org/license
* *
* http://docs.jquery.com/UI/Progressbar#theming * http://docs.jquery.com/UI/Progressbar#theming
*/ */
.ui-progressbar { height:2em; text-align: left; } .ui-progressbar { height:2em; text-align: left; }
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }

300
form_elements/includes/autocomplete.inc

@ -1,214 +1,213 @@
<?php <?php
// $Id$
function ife_autocomplete_person($string) {
$string=trim(strtolower($string));
module_load_include('inc', 'fedora_repository', 'api/fedora_item'); function ife_autocomplete_person($string) {
module_load_include('php', 'islandora_solr_search', 'Solr/Service'); $string = trim(strtolower($string));
$host = variable_get('islandora_solr_search_block_host','localhost');
$port = variable_get('islandora_solr_search_block_port','8080');
$appName = variable_get('islandora_solr_search_block_app_name','solr');
$requestHandler = variable_get("islandora_solr_search_block_request_handler",t("standard"));
$solr = new Apache_Solr_Service($host, $port, '/'.$appName.'/'); module_load_include('inc', 'fedora_repository', 'api/fedora_item');
module_load_include('php', 'islandora_solr_search', 'Solr/Service');
$host = variable_get('islandora_solr_search_block_host', 'localhost');
$port = variable_get('islandora_solr_search_block_port', '8080');
$appName = variable_get('islandora_solr_search_block_app_name', 'solr');
$requestHandler = variable_get("islandora_solr_search_block_request_handler", t("standard"));
$string=$solr->escape($string); $solr = new Apache_Solr_Service($host, $port, '/' . $appName . '/');
$query = 'name_personal_t:'.$string.'* OR name_organization_t:'.$string.'* OR name_conference_t:'.$string.'*';
$additionalParams = array( $string = $solr->escape($string);
'facet' => 'false', $query = 'name_personal_t:' . $string . '* OR name_organization_t:' . $string . '* OR name_conference_t:' . $string . '*';
'qt' => $requestHandler,
);
try { $additionalParams = array(
$results = $solr->search($query, 0, 10,$additionalParams); 'facet' => 'false',
}catch (Exception $e) { 'qt' => $requestHandler,
drupal_set_message(t('error searching ').$e->getMessage()); );
}
if(empty($results)){ try {
drupal_set_message(t('Error searching solr index. Is the solr search block configured properly?'),'error'); $results = $solr->search($query, 0, 10, $additionalParams);
return ' '; } catch (Exception $e) {
} drupal_set_message(t('error searching ') . $e->getMessage());
}
if (empty($results)) {
drupal_set_message(t('Error searching solr index. Is the solr search block configured properly?'), 'error');
return ' ';
}
header('content-type: text/plain'); header('content-type: text/plain');
$matches = array(); $matches = array();
foreach($results->response->docs as $doc) { foreach ($results->response->docs as $doc) {
$item = new fedora_item($doc->id); $item = new fedora_item($doc->id);
$mods = $item->get_datastream_dissemination('MODS'); $mods = $item->get_datastream_dissemination('MODS');
if (trim($mods) != '') { if (trim($mods) != '') {
$modsDom = new DomDocument(); $modsDom = new DomDocument();
$modsDom->loadXML($mods); $modsDom->loadXML($mods);
$xpath = new DOMXPath($modsDom); $xpath = new DOMXPath($modsDom);
$xpath->registerNamespace("php", "http://php.net/xpath"); $xpath->registerNamespace("php", "http://php.net/xpath");
$xpath->registerPHPFunctions(); $xpath->registerPHPFunctions();
// echo $mods; // echo $mods;
$nodeList = $xpath->evaluate('/mods:mods/mods:name'); $nodeList = $xpath->evaluate('/mods:mods/mods:name');
foreach ($nodeList as $node) { foreach ($nodeList as $node) {
$type=$node->getAttribute('type'); $type = $node->getAttribute('type');
$title=null; $title = NULL;
$name =null; $name = NULL;
$given=null; $given = NULL;
$family=null; $family = NULL;
$date = null; $date = NULL;
$nameParts = $node->getElementsByTagName('namePart'); $nameParts = $node->getElementsByTagName('namePart');
foreach ($nameParts as $part) { foreach ($nameParts as $part) {
switch ($part->getAttribute('type')) { switch ($part->getAttribute('type')) {
case 'given': $given = $part->nodeValue; break; case 'given': $given = $part->nodeValue;
case 'family': $family = $part->nodeValue; break; break;
case 'termsOfAddress': $title= $part->nodeValue; break; case 'family': $family = $part->nodeValue;
case 'date': $date = $part->nodeValue; break; break;
default: $name = $part->nodeValue; break; case 'termsOfAddress': $title = $part->nodeValue;
} break;
} case 'date': $date = $part->nodeValue;
break;
if ($name == null && isset($given) && isset($family)) { default: $name = $part->nodeValue;
$name = (isset($title)?$title.' ':'').$family.', '.$given; break;
} }
}
$role =null;
$roleTerm = $node->getElementsByTagName('roleTerm'); if ($name == NULL && isset($given) && isset($family)) {
if ($roleTerm->length > 0) { $name = (isset($title) ? $title . ' ' : '') . $family . ', ' . $given;
$role=$roleTerm->item(0)->nodeValue; }
}
$role = NULL;
if (strpos(strtolower($name),$string)!==FALSE) { $roleTerm = $node->getElementsByTagName('roleTerm');
$display = $name; if ($roleTerm->length > 0) {
$matches[json_encode(array('type'=>trim($type),'name'=>trim($name),'role'=>trim($role),'date'=>trim($date)))]= $display.' - '.$role.' '.$date; $role = $roleTerm->item(0)->nodeValue;
} }
}
if (strpos(strtolower($name), $string) !== FALSE) {
$display = $name;
$matches[json_encode(array('type' => trim($type), 'name' => trim($name), 'role' => trim($role), 'date' => trim($date)))] = $display . ' - ' . $role . ' ' . $date;
}
} }
} }
drupal_json($matches); exit(); }
drupal_json($matches);
exit();
} }
function ife_autocomplete_marcrelator($collection, $string='') { function ife_autocomplete_marcrelator($collection, $string='') {
$moduleRoot = drupal_get_path('module', 'islandora_form_elements'); $moduleRoot = drupal_get_path('module', 'islandora_form_elements');
if ($string == '') { if ($string == '') {
$string = $collection; $string = $collection;
$collection = FALSE; $collection = FALSE;
} }
$string=ucfirst(trim($string));
$dom = DOMDocument::load ( $moduleRoot .'/xml/relators.rdf' );
$rootEl = $dom->getElementsByTagName('RDF');
if ($rootEl->length > 0) {
$rootEl=$rootEl->item(0);
$xpath = new DOMXPath($dom); $string = ucfirst(trim($string));
$xpath->registerNamespace ( 'skos' , $rootEl->getAttribute('xmlns:skos') );
$xpath->registerNamespace ( 'rdf' , $rootEl->getAttribute('xmlns:rdf') );
$dom = DOMDocument::load($moduleRoot . '/xml/relators.rdf');
$rootEl = $dom->getElementsByTagName('RDF');
if ($rootEl->length > 0) {
$rootEl = $rootEl->item(0);
$result = $xpath->query('/rdf:RDF/rdf:Description[starts-with(skos:prefLabel, "'. $string .'")]'); $xpath = new DOMXPath($dom);
$xpath->registerNamespace('skos', $rootEl->getAttribute('xmlns:skos'));
$xpath->registerNamespace('rdf', $rootEl->getAttribute('xmlns:rdf'));
$terms = array();
foreach ($result as $term) {
$termVal =$term->getElementsByTagName('prefLabel')->item(0)->nodeValue;
$termVal = preg_replace('/\s+/', ' ', $termVal);
$terms[$term->getElementsByTagName('notation')->item(0)->nodeValue]= $termVal;
}
echo drupal_json($terms);
}
$result = $xpath->query('/rdf:RDF/rdf:Description[starts-with(skos:prefLabel, "' . $string . '")]');
$terms = array();
foreach ($result as $term) {
$termVal = $term->getElementsByTagName('prefLabel')->item(0)->nodeValue;
$termVal = preg_replace('/\s+/', ' ', $termVal);
$terms[$term->getElementsByTagName('notation')->item(0)->nodeValue] = $termVal;
}
echo drupal_json($terms);
}
} }
function ife_autocomplete_gacs($collection, $string='') { function ife_autocomplete_gacs($collection, $string='') {
$moduleRoot = drupal_get_path('module', 'islandora_form_elements'); $moduleRoot = drupal_get_path('module', 'islandora_form_elements');
if ($string == '') { if ($string == '') {
$string = $collection; $string = $collection;
$collection = FALSE; $collection = FALSE;
} }
$string=ucwords(trim($string));
$dom = DOMDocument::load ( $moduleRoot .'/xml/gacs.xml' );
$rootEl = $dom->getElementsByTagName('codelist');
if ($rootEl->length > 0) {
$rootEl=$rootEl->item(0);
$xpath = new DOMXPath($dom); $string = ucwords(trim($string));
$xpath->registerNamespace ( 'a' , $rootEl->getAttribute('xmlns') );
$result = $xpath->query('/a:codelist/a:gacs/a:gac[starts-with(a:name, "'. $string .'")]'); $dom = DOMDocument::load($moduleRoot . '/xml/gacs.xml');
$rootEl = $dom->getElementsByTagName('codelist');
if ($rootEl->length > 0) {
$rootEl = $rootEl->item(0);
$gacs = array(); $xpath = new DOMXPath($dom);
foreach ($result as $gac) { $xpath->registerNamespace('a', $rootEl->getAttribute('xmlns'));
$gacs[$gac->getElementsByTagName('name')->item(0)->nodeValue]= $gac->getElementsByTagName('name')->item(0)->nodeValue;
}
echo drupal_json($gacs);
}
$result = $xpath->query('/a:codelist/a:gacs/a:gac[starts-with(a:name, "' . $string . '")]');
$gacs = array();
foreach ($result as $gac) {
$gacs[$gac->getElementsByTagName('name')->item(0)->nodeValue] = $gac->getElementsByTagName('name')->item(0)->nodeValue;
}
echo drupal_json($gacs);
}
} }
function ife_autocomplete_language($collection, $string='') { function ife_autocomplete_language($collection, $string='') {
$moduleRoot=drupal_get_path('module', 'islandora_form_elements'); $moduleRoot = drupal_get_path('module', 'islandora_form_elements');
if ($string == '') { if ($string == '') {
$string = $collection; $string = $collection;
$collection = FALSE; $collection = FALSE;
} }
$string=ucwords(trim($string));
$dom = DOMDocument::load ( $moduleRoot .'/xml/languages.xml' );
$rootEl = $dom->getElementsByTagName('codelist');
if ($rootEl->length > 0) {
$rootEl=$rootEl->item(0);
$xpath = new DOMXPath($dom); $string = ucwords(trim($string));
$xpath->registerNamespace ( 'a' , $rootEl->getAttribute('xmlns') );
$result = $xpath->query('/a:codelist/a:languages/a:language[starts-with(a:name, "'. $string .'")]'); $dom = DOMDocument::load($moduleRoot . '/xml/languages.xml');
$rootEl = $dom->getElementsByTagName('codelist');
if ($rootEl->length > 0) {
$rootEl = $rootEl->item(0);
$languages = array(); $xpath = new DOMXPath($dom);
foreach ($result as $lang) { $xpath->registerNamespace('a', $rootEl->getAttribute('xmlns'));
$languages[$lang->getElementsByTagName('name')->item(0)->nodeValue]= $lang->getElementsByTagName('name')->item(0)->nodeValue;
}
echo drupal_json($languages);
}
$result = $xpath->query('/a:codelist/a:languages/a:language[starts-with(a:name, "' . $string . '")]');
$languages = array();
foreach ($result as $lang) {
$languages[$lang->getElementsByTagName('name')->item(0)->nodeValue] = $lang->getElementsByTagName('name')->item(0)->nodeValue;
}
echo drupal_json($languages);
}
} }
function ife_autocomplete($field, $collection, $string='') { function ife_autocomplete($field, $collection, $string='') {
if ($string == '') { if ($string == '') {
$string=$collection; $collection=FALSE; $string = $collection;
} $collection = FALSE;
}
module_load_include('php', 'islandora_solr_search', 'Solr/Service'); module_load_include('php', 'islandora_solr_search', 'Solr/Service');
$host = variable_get('islandora_solr_search_block_host', 'localhost'); $host = variable_get('islandora_solr_search_block_host', 'localhost');
$port = variable_get('islandora_solr_search_block_port', '8080'); $port = variable_get('islandora_solr_search_block_port', '8080');
$appName = variable_get('islandora_solr_search_block_app_name', 'solr'); $appName = variable_get('islandora_solr_search_block_app_name', 'solr');
$solr = new Apache_Solr_Service($host, $port, '/'. $appName .'/'); $solr = new Apache_Solr_Service($host, $port, '/' . $appName . '/');
$additionalParams = array( $additionalParams = array(
'fl' => $field 'fl' => $field
); );
$query = $field .':'. $solr->escape(strtolower(trim($string))) .'*'; $query = $field . ':' . $solr->escape(strtolower(trim($string))) . '*';
if ($collection != FALSE) { if ($collection != FALSE) {
$query .= ' AND related_item_identifier_t:'. $solr->escape($collection); $query .= ' AND related_item_identifier_t:' . $solr->escape($collection);
} }
try { try {
$results = $solr->search($query, 0, 10, $additionalParams); $results = $solr->search($query, 0, 10, $additionalParams);
} } catch (Exception $e) {
catch (Exception $e) {
drupal_set_message(t('error searching ') . $e->getMessage()); drupal_set_message(t('error searching ') . $e->getMessage());
} }
@ -216,16 +215,17 @@ function ife_autocomplete($field, $collection, $string='') {
$values = array(); $values = array();
if ($docs != NULL) { if ($docs != NULL) {
foreach ($docs as $doc) { foreach ($docs as $doc) {
$resfield=$doc->getField($field); $resfield = $doc->getField($field);
if (is_array($resfield['value'])) { if (is_array($resfield['value'])) {
foreach ($resfield['value'] as $val) { foreach ($resfield['value'] as $val) {
if (preg_match('/^'.strtolower($string).'/i',$val)) { if (preg_match('/^' . strtolower($string) . '/i', $val)) {
$values[$val]=$val; $values[$val] = $val;
} }
} }
} else { }
$values[$resfield['value']]=$resfield['value']; else {
$values[$resfield['value']] = $resfield['value'];
} }
} }
} }

119
form_elements/includes/creative_commons.inc

@ -1,8 +1,8 @@
<?php <?php
class CreativeCommons
{
public static $cc_jurisdiction_vals = array( class CreativeCommons {
public static $cc_jurisdiction_vals = array(
'' => 'International', '' => 'International',
'ar' => 'Argentina', 'ar' => 'Argentina',
'au' => 'Australia', 'au' => 'Australia',
@ -57,61 +57,60 @@
'scotland' => 'UK:Scotland', 'scotland' => 'UK:Scotland',
'us' => 'UnitedStates', 'us' => 'UnitedStates',
'vn' => 'Vietnam'); 'vn' => 'Vietnam');
public static $cc_versions = array(
'' => '3.0',
'ar' => '2.5',
'au' => '3.0',
'at' => '3.0',
'be' => '2.0',
'br' => '3.0',
'bg' => '2.5',
'ca' => '2.5',
'cl' => '2.0',
'cn' => '2.5',
'co' => '2.5',
'hr' => '3.0',
'cz' => '3.0',
'dk' => '2.5',
'ec' => '3.0',
'fi' => '1.0',
'fr' => '2.0',
'de' => '3.0',
'gr' => '3.0',
'gt' => '3.0',
'hk' => '3.0',
'hu' => '2.5',
'in' => '2.5',
'il' => '2.5',
'it' => '2.5',
'jp' => '2.0',
'kr' => '2.0',
'lu' => '3.0',
'mk' => '2.5',
'my' => '2.5',
'mt' => '2.5',
'mx' => '2.5',
'nl' => '3.0',
'nz' => '3.0',
'no' => '3.0',
'pe' => '2.5',
'ph' => '3.0',
'pl' => '3.0',
'pt' => '2.5',
'pr' => '3.0',
'ro' => '3.0',
'rs' => '3.0',
'sg' => '3.0',
'si' => '2.5',
'za' => '2.5',
'es' => '3.0',
'se' => '2.5',
'ch' => '2.5',
'tw' => '3.0',
'th' => '3.0',
'uk' => '2.0',
'scotland' => '2.5',
'us' => '3.0',
'vn' => '3.0');
public static $cc_versions = array( }
''=>'3.0',
'ar'=>'2.5',
'au'=>'3.0',
'at'=>'3.0',
'be'=>'2.0',
'br'=>'3.0',
'bg'=>'2.5',
'ca'=>'2.5',
'cl'=>'2.0',
'cn'=>'2.5',
'co'=>'2.5',
'hr'=>'3.0',
'cz'=>'3.0',
'dk'=>'2.5',
'ec'=>'3.0',
'fi'=>'1.0',
'fr'=>'2.0',
'de'=>'3.0',
'gr'=>'3.0',
'gt'=>'3.0',
'hk'=>'3.0',
'hu'=>'2.5',
'in'=>'2.5',
'il'=>'2.5',
'it'=>'2.5',
'jp'=>'2.0',
'kr'=>'2.0',
'lu'=>'3.0',
'mk'=>'2.5',
'my'=>'2.5',
'mt'=>'2.5',
'mx'=>'2.5',
'nl'=>'3.0',
'nz'=>'3.0',
'no'=>'3.0',
'pe'=>'2.5',
'ph'=>'3.0',
'pl'=>'3.0',
'pt'=>'2.5',
'pr'=>'3.0',
'ro'=>'3.0',
'rs'=>'3.0',
'sg'=>'3.0',
'si'=>'2.5',
'za'=>'2.5',
'es'=>'3.0',
'se'=>'2.5',
'ch'=>'2.5',
'tw'=>'3.0',
'th'=>'3.0',
'uk'=>'2.0',
'scotland'=>'2.5',
'us'=>'3.0',
'vn'=>'3.0');
}

148
form_elements/includes/filechooser.inc

@ -1,38 +1,36 @@
<?php <?php
// $Id$
function theme_filechooser($element) { function theme_filechooser($element) {
global $base_url; global $base_url;
$path=drupal_get_path('module', 'islandora_form_elements'); $path = drupal_get_path('module', 'islandora_form_elements');
drupal_add_js($path .'/js/jcarousellite_1.0.1.js'); drupal_add_js($path . '/js/jcarousellite_1.0.1.js');
drupal_add_js($path .'/js/jquery.easing.1.1.js'); drupal_add_js($path . '/js/jquery.easing.1.1.js');
drupal_add_js($path .'/js/jquery.mousewheel.min.js'); drupal_add_js($path . '/js/jquery.mousewheel.min.js');
drupal_add_js($path .'/js/jquery.loadImages.1.0.1.js'); drupal_add_js($path . '/js/jquery.loadImages.1.0.1.js');
drupal_add_js($path .'/js/jquery.breakly-1.0.js'); drupal_add_js($path . '/js/jquery.breakly-1.0.js');
drupal_add_js($path .'/js/filechooser.js'); drupal_add_js($path . '/js/filechooser.js');
drupal_add_css($path .'/css/filechooser.css'); drupal_add_css($path . '/css/filechooser.css');
module_load_include('inc', 'fedora_repository', 'ContentModel'); module_load_include('inc', 'fedora_repository', 'ContentModel');
$contentModelPid = ContentModel::getPidFromIdentifier($element['#model_pid']); $contentModelPid = ContentModel::getPidFromIdentifier($element['#model_pid']);
$output='<div class="carousel"> $output = '<div class="carousel">
<div class="jCarouselLite"> <div class="jCarouselLite">
<ul id="fileList" class="clear-block"> <ul id="fileList" class="clear-block">
<li class="loading"><div>Generating File Previews...<br/>(this could take a minute or two.)<br/><img src="'.$base_url.'/'. $path .'/images/ajax-loader.gif" id="ajaxBusy" alt="Loading"/></div></li> <li class="loading"><div>Generating File Previews...<br/>(this could take a minute or two.)<br/><img src="' . $base_url . '/' . $path . '/images/ajax-loader.gif" id="ajaxBusy" alt="Loading"/></div></li>
</ul> </ul>
</div> </div>
<br clear="all"/> <br clear="all"/>
<a href="#" class="prev">Prev</a> <a href="#" class="next">Next</a> <a href="#" class="prev">Prev</a> <a href="#" class="next">Next</a>
<input type="hidden" id="model_pid" value="'. $contentModelPid .'"/> <input type="hidden" id="model_pid" value="' . $contentModelPid . '"/>
<input type="hidden" name="'. $element['#name'] .'" value="'. check_plain($element['#value']) .'" id="fileField"/></div>'; <input type="hidden" name="' . $element['#name'] . '" value="' . check_plain($element['#value']) . '" id="fileField"/></div>';
return theme('form_element', $element, $output); return theme('form_element', $element, $output);
} }
function ife_filechooser_get_thumbnail($cp_pid, $cm_pid, $file) { function ife_filechooser_get_thumbnail($cp_pid, $cm_pid, $file) {
module_load_include('inc', 'fedora_repository', 'CollectionPolicy'); module_load_include('inc', 'fedora_repository', 'CollectionPolicy');
module_load_include('inc', 'fedora_repository', 'ContentModel'); module_load_include('inc', 'fedora_repository', 'ContentModel');
@ -42,38 +40,36 @@ function ife_filechooser_get_thumbnail($cp_pid, $cm_pid, $file) {
$cm = ContentModel::loadFromModel($cm_pid); $cm = ContentModel::loadFromModel($cm_pid);
$cp = CollectionPolicy::loadFromCollection($cp_pid); $cp = CollectionPolicy::loadFromCollection($cp_pid);
$path=$cp->getStagingArea() .'/'; $path = $cp->getStagingArea() . '/';
if ($cm !== FALSE && $cp !== FALSE) { if ($cm !== FALSE && $cp !== FALSE) {
if (is_file($path . $file)) { if (is_file($path . $file)) {
$mime=$mimeClass->getType($path . $file); $mime = $mimeClass->getType($path . $file);
$allowed_types = $cm->getMimetypes(); $allowed_types = $cm->getMimetypes();
if (in_array($mime, $allowed_types)) { if (in_array($mime, $allowed_types)) {
$thumbnail = ''; $thumbnail = '';
//executes ingest rules with the "preview" parameter set. //executes ingest rules with the "preview" parameter set.
if ($cm->execIngestRules($path . $file, $mime, TRUE) && isset($_SESSION['fedora_ingest_files']['TN']) && file_exists($_SESSION['fedora_ingest_files']['TN'])) { if ($cm->execIngestRules($path . $file, $mime, TRUE) && isset($_SESSION['fedora_ingest_files']['TN']) && file_exists($_SESSION['fedora_ingest_files']['TN'])) {
$thumbnail=$_SESSION['fedora_ingest_files']['TN']; $thumbnail = $_SESSION['fedora_ingest_files']['TN'];
} }
$thumbmime=$mimeClass->getType($thumbnail); $thumbmime = $mimeClass->getType($thumbnail);
header('Pragma: no-cache'); header('Pragma: no-cache');
header('Content-Type: '. $thumbmime); header('Content-Type: ' . $thumbmime);
echo file_get_contents($thumbnail); echo file_get_contents($thumbnail);
exit(); exit();
} }
} }
} }
} }
function ife_filechooser_cmp($a,$b)
{ function ife_filechooser_cmp($a, $b) {
return strcmp($a['name'],$b['name']); return strcmp($a['name'], $b['name']);
} }
function ife_filechooser_generate_thumbnails($cp_pid, $cm_pid) { function ife_filechooser_generate_thumbnails($cp_pid, $cm_pid) {
@ -84,55 +80,55 @@ function ife_filechooser_generate_thumbnails($cp_pid, $cm_pid) {
$cm = ContentModel::loadFromModel($cm_pid); $cm = ContentModel::loadFromModel($cm_pid);
$cp = CollectionPolicy::loadFromCollection($cp_pid); $cp = CollectionPolicy::loadFromCollection($cp_pid);
if ($cm === FALSE || $cp === FALSE) { if ($cm === FALSE || $cp === FALSE) {
echo '[]'; exit(); echo '[]';
} exit();
}
$mimeClass = new MimeClass(); $mimeClass = new MimeClass();
$path=$cp->getStagingArea() .'/'; $path = $cp->getStagingArea() . '/';
$start=isset($_GET['start'])?intval($_GET['start']):0; $start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$end=isset($_GET['end'])?intval($_GET['end']):50; $end = isset($_GET['end']) ? intval($_GET['end']) : 50;
$thumbnails = array(); $thumbnails = array();
$files = array(); $files = array();
if ($cm !== FALSE && $cp !== FALSE) { if ($cm !== FALSE && $cp !== FALSE) {
$allowed_types = $cm->getMimetypes(); $allowed_types = $cm->getMimetypes();
if (file_exists($path) && is_dir($path)) { if (file_exists($path) && is_dir($path)) {
$dir = opendir($path); $dir = opendir($path);
for ($i=$start; $i < $end && ($file = readdir($dir)) !== FALSE;) { for ($i = $start; $i < $end && ($file = readdir($dir)) !== FALSE;) {
if (is_file($path . $file)) { if (is_file($path . $file)) {
$mime=$mimeClass->getType($path . $file); $mime = $mimeClass->getType($path . $file);
if (in_array($mime, $allowed_types)) { if (in_array($mime, $allowed_types)) {
$thumbnail = FALSE; $thumbnail = FALSE;
//executes ingest rules with the "preview" parameter set. //executes ingest rules with the "preview" parameter set.
if ($cm->execIngestRules($path . $file, $mime, TRUE) && isset($_SESSION['fedora_ingest_files']['TN']) && file_exists($_SESSION['fedora_ingest_files']['TN'])) { if ($cm->execIngestRules($path . $file, $mime, TRUE) && isset($_SESSION['fedora_ingest_files']['TN']) && file_exists($_SESSION['fedora_ingest_files']['TN'])) {
$thumbnail=$_SESSION['fedora_ingest_files']['TN']; $thumbnail = $_SESSION['fedora_ingest_files']['TN'];
unset($_SESSION['fedora_ingest_files']['TN']); unset($_SESSION['fedora_ingest_files']['TN']);
} }
$res_array = getimagesize($path .'/'. $file); $res_array = getimagesize($path . '/' . $file);
$res = ''; $res = '';
if (is_array($res_array)) { if (is_array($res_array)) {
$res = $res_array[0] .'x'. $res_array[1]; $res = $res_array[0] . 'x' . $res_array[1];
} }
$size = filesize($path .'/'. $file); $size = filesize($path . '/' . $file);
$labels = array('kB', 'MB', 'GB', 'TB'); $labels = array('kB', 'MB', 'GB', 'TB');
$label = 'B'; $label = 'B';
while ($size > 1024) { while ($size > 1024) {
$size=$size/1024; $size = $size / 1024;
$label=array_shift($labels); $label = array_shift($labels);
} }
$size = round($size, 2) .' '. $label; $size = round($size, 2) . ' ' . $label;
$files[] = array('name' => $file, 'mime' => $mime, 'size' => $size, 'resolution' => $res, 'thumb' => ($thumbnail != FALSE)); $files[] = array('name' => $file, 'mime' => $mime, 'size' => $size, 'resolution' => $res, 'thumb' => ($thumbnail != FALSE));
$i++; $i++;
} }
} }
} }
} }
} }
usort($files,'ife_filechooser_cmp'); usort($files, 'ife_filechooser_cmp');
echo json_encode($files); echo json_encode($files);
} }

73
form_elements/includes/people.inc

@ -1,6 +1,5 @@
<?php <?php
// $Id$
// this is a bit of a hack. It iterates through the // this is a bit of a hack. It iterates through the
// form and assigns a dummy value to any field in the $post // form and assigns a dummy value to any field in the $post
@ -10,12 +9,12 @@
function _dummy_post_info($form, $post, $key = '') { function _dummy_post_info($form, $post, $key = '') {
$children = element_children($form); $children = element_children($form);
if (count($children) > 0) { if (count($children) > 0) {
foreach ($children as $key) { foreach ($children as $key) {
$post = _dummy_post_info($form[$key], $post, $key); $post = _dummy_post_info($form[$key], $post, $key);
} }
} }
if ($key!='' && isset($form['#required']) && $form['#required'] == TRUE && trim($post[$key]) == '') { if ($key != '' && isset($form['#required']) && $form['#required'] == TRUE && trim($post[$key]) == '') {
$post[$key] = 'not empty'; $post[$key] = 'not empty';
} }
return $post; return $post;
@ -36,13 +35,12 @@ function _ife_find_people_element($form, &$keys = array()) {
} }
return FALSE; return FALSE;
} }
function ife_people_ahah() { function ife_people_ahah() {
if (!isset($_POST['form_build_id'])) if (!isset($_POST['form_build_id']))
return; return;
$form_state = array('storage' => NULL, 'submitted' => FALSE); $form_state = array('storage' => NULL, 'submitted' => FALSE);
$form_build_id = $_POST['form_build_id']; $form_build_id = $_POST['form_build_id'];
@ -59,7 +57,7 @@ function ife_people_ahah() {
$form['#post'] = $_POST; $form['#post'] = $_POST;
drupal_process_form($form_id, $form, $form_state); drupal_process_form($form_id, $form, $form_state);
//ob_start(); echo '<pre>'; echo $_POST['form_build_id']."\n"; var_dump($form_state); echo '</pre>'; $dump = ob_get_contents(); ob_end_clean(); //ob_start(); echo '<pre>'; echo $_POST['form_build_id']."\n"; var_dump($form_state); echo '</pre>'; $dump = ob_get_contents(); ob_end_clean();
$form = drupal_rebuild_form($form_id, $form_state, $args, $form_build_id); $form = drupal_rebuild_form($form_id, $form_state, $args, $form_build_id);
$qt_form = _ife_find_people_element($form); $qt_form = _ife_find_people_element($form);
@ -67,8 +65,8 @@ function ife_people_ahah() {
unset($qt_form['#prefix'], $qt_form['#suffix']); // Prevent duplicate wrappers. unset($qt_form['#prefix'], $qt_form['#suffix']); // Prevent duplicate wrappers.
$javascript = drupal_add_js(NULL, NULL, 'header'); $javascript = drupal_add_js(NULL, NULL, 'header');
drupal_json(array( drupal_json(array(
'status' => TRUE, 'status' => TRUE,
'data' => $dump . theme('status_messages') . drupal_render($qt_form), 'data' => $dump . theme('status_messages') . drupal_render($qt_form),
'settings' => call_user_func_array('array_merge_recursive', $javascript['setting']), 'settings' => call_user_func_array('array_merge_recursive', $javascript['setting']),
)); ));
} }
@ -81,7 +79,7 @@ function ife_remove_person_submit($form, &$form_state) {
// Get the tab delta for the clicked button. // Get the tab delta for the clicked button.
$delta = $form_state['clicked_button']['#parents'][2]; $delta = $form_state['clicked_button']['#parents'][2];
$keys=array(); $keys = array();
$qt_form = _ife_find_people_element($form, $keys); $qt_form = _ife_find_people_element($form, $keys);
$peopleVals = &$form_state['values']; $peopleVals = &$form_state['values'];
@ -110,7 +108,6 @@ function ife_remove_person_submit($form, &$form_state) {
$form_state['rebuild'] = TRUE; $form_state['rebuild'] = TRUE;
} }
/** /**
* Submit handler for the "Add Person" button. * Submit handler for the "Add Person" button.
*/ */
@ -127,16 +124,16 @@ function ife_add_person_submit($form, &$form_state) {
} }
} }
if (!is_array($peopleVals['people'])) if (!is_array($peopleVals['people']))
$peopleVals['people'] = array(); $peopleVals['people'] = array();
foreach ($peopleVals['people'] as $val) { foreach ($peopleVals['people'] as $val) {
$people[] = $val; $people[] = $val;
} }
//only add new person if we are not adding from repository. //only add new person if we are not adding from repository.
$elName = isset($qt_form['entity0']['#parents'][0])?$qt_form['entity0']['#parents'][0]:null; $elName = isset($qt_form['entity0']['#parents'][0]) ? $qt_form['entity0']['#parents'][0] : NULL;
if ($elName == null || !isset($form_state['clicked_button']['#post'][$elName]['add_from_repository']) || trim($form_state['clicked_button']['#post'][$elName]['add_from_repository']) == '') { if ($elName == NULL || !isset($form_state['clicked_button']['#post'][$elName]['add_from_repository']) || trim($form_state['clicked_button']['#post'][$elName]['add_from_repository']) == '') {
$people[] = array('name' => '', 'date'=>'', 'role' => '', 'subject' => ''); $people[] = array('name' => '', 'date' => '', 'role' => '', 'subject' => '');
} }
unset($form_state['submit_handlers']); unset($form_state['submit_handlers']);
form_execute_handlers('submit', $form, $form_state); form_execute_handlers('submit', $form, $form_state);
@ -144,8 +141,6 @@ function ife_add_person_submit($form, &$form_state) {
$form_state['rebuild'] = TRUE; $form_state['rebuild'] = TRUE;
} }
/** /**
* Submit handler for the "Add Person" button. * Submit handler for the "Add Person" button.
*/ */
@ -163,10 +158,10 @@ function ife_add_org_submit($form, &$form_state) {
} }
if (!is_array($peopleVals['people'])) if (!is_array($peopleVals['people']))
$peopleVals['people'] = array(); $peopleVals['people'] = array();
foreach ($peopleVals['people'] as $val) { foreach ($peopleVals['people'] as $val) {
$people[]=$val; $people[] = $val;
} }
$people[] = array('role' => '', 'organization' => ''); $people[] = array('role' => '', 'organization' => '');
@ -176,24 +171,22 @@ function ife_add_org_submit($form, &$form_state) {
//$form_state['rebuild'] = TRUE; //$form_state['rebuild'] = TRUE;
} }
/** /**
* Submit handler for the "Add Person" button. * Submit handler for the "Add Person" button.
*/ */
function ife_add_conf_submit($form, &$form_state) { function ife_add_conf_submit($form, &$form_state) {
$people = array(); $people = array();
$keys=array(); $keys = array();
$qt_form = _ife_find_people_element($form, $keys); $qt_form = _ife_find_people_element($form, $keys);
$peopleVals = &$form_state['values']; $peopleVals = &$form_state['values'];
while (count($keys) > 0) { while (count($keys) > 0) {
$key = array_pop($keys); $key = array_pop($keys);
if (isset($peopleVals[$key])) { if (isset($peopleVals[$key])) {
$peopleVals=&$peopleVals[$key]; $peopleVals = &$peopleVals[$key];
} }
} }
if (!is_array($peopleVals['people'])) if (!is_array($peopleVals['people']))
$peopleVals['people'] = array(); $peopleVals['people'] = array();
foreach ($peopleVals['people'] as $val) { foreach ($peopleVals['people'] as $val) {
$people[] = $val; $people[] = $val;
@ -207,11 +200,9 @@ function ife_add_conf_submit($form, &$form_state) {
//$form_state['rebuild'] = TRUE; //$form_state['rebuild'] = TRUE;
} }
function theme_people($element) { function theme_people($element) {
drupal_add_js(drupal_get_path('module', 'islandora_form_elements') .'/js/people_ahah.js'); drupal_add_js(drupal_get_path('module', 'islandora_form_elements') . '/js/people_ahah.js');
if (!empty($element['#collapsible'])) { if (!empty($element['#collapsible'])) {
drupal_add_js('misc/collapse.js'); drupal_add_js('misc/collapse.js');
if (!isset($element['#attributes']['class'])) { if (!isset($element['#attributes']['class'])) {
@ -223,10 +214,9 @@ function theme_people($element) {
$element['#attributes']['class'] .= ' collapsed'; $element['#attributes']['class'] .= ' collapsed';
} }
} }
return '<fieldset'. drupal_attributes($element['#attributes']) .'>'. ($element['#title'] ? '<legend>'. $element['#title'] .'</legend>' : '') . (isset($element['#description']) && $element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : '') . (!empty($element['#children']) ? $element['#children'] : '') . "</fieldset>\n"; return '<fieldset' . drupal_attributes($element['#attributes']) . '>' . ($element['#title'] ? '<legend>' . $element['#title'] . '</legend>' : '') . (isset($element['#description']) && $element['#description'] ? '<div class="description">' . $element['#description'] . '</div>' : '') . (!empty($element['#children']) ? $element['#children'] : '') . "</fieldset>\n";
} }
function theme_people_items($form) { function theme_people_items($form) {
$rows = array(); $rows = array();
$headers = array( $headers = array(
@ -241,9 +231,9 @@ function theme_people_items($form) {
// Build the table row. // Build the table row.
$row = array( $row = array(
'data' => array( 'data' => array(
array('data' => drupal_render($form[$key]['organization']), 'class' => 'ife-person-name container-inline'), array('data' => drupal_render($form[$key]['organization']), 'class' => 'ife-person-name container-inline'),
array('data' => drupal_render($form[$key]['role']).drupal_render($form[$key]['subject']), 'class' => 'ife-person-role'), array('data' => drupal_render($form[$key]['role']) . drupal_render($form[$key]['subject']), 'class' => 'ife-person-role'),
array('data' => drupal_render($form[$key]['remove']), 'class' => 'ife-person-remove'), array('data' => drupal_render($form[$key]['remove']), 'class' => 'ife-person-remove'),
), ),
); );
} }
@ -252,10 +242,10 @@ function theme_people_items($form) {
// Build the table row. // Build the table row.
$row = array( $row = array(
'data' => array( 'data' => array(
array('data' => drupal_render($form[$key]['conference']).'<br clear="all"/>'. drupal_render($form[$key]['date']), 'class' => 'ife-person-name container-inline' ), array('data' => drupal_render($form[$key]['conference']) . '<br clear="all"/>' . drupal_render($form[$key]['date']), 'class' => 'ife-person-name container-inline'),
array('data' => drupal_render($form[$key]['role']).drupal_render($form[$key]['subject']), 'class' => 'ife-person-role'), array('data' => drupal_render($form[$key]['role']) . drupal_render($form[$key]['subject']), 'class' => 'ife-person-role'),
array('data' => drupal_render($form[$key]['remove']), 'class' => 'ife-person-remove'), array('data' => drupal_render($form[$key]['remove']), 'class' => 'ife-person-remove'),
), ),
); );
} }
else { else {
@ -263,10 +253,10 @@ function theme_people_items($form) {
// Build the table row. // Build the table row.
$row = array( $row = array(
'data' => array( 'data' => array(
array('data' => drupal_render($form[$key]['name']) .'<br clear="all"/>'. drupal_render($form[$key]['date']), 'class' => 'ife-person-name container-inline'), array('data' => drupal_render($form[$key]['name']) . '<br clear="all"/>' . drupal_render($form[$key]['date']), 'class' => 'ife-person-name container-inline'),
array('data' => drupal_render($form[$key]['role']).drupal_render($form[$key]['subject']), 'class' => 'ife-person-role'), array('data' => drupal_render($form[$key]['role']) . drupal_render($form[$key]['subject']), 'class' => 'ife-person-role'),
array('data' => drupal_render($form[$key]['remove']), 'class' => 'ife-person-remove'), array('data' => drupal_render($form[$key]['remove']), 'class' => 'ife-person-remove'),
), ),
); );
} }
@ -281,8 +271,7 @@ function theme_people_items($form) {
$output .= drupal_render($form); $output .= drupal_render($form);
// Add our JS file, which has some Drupal core JS overrides, and ensures ahah behaviours get re-attached // Add our JS file, which has some Drupal core JS overrides, and ensures ahah behaviours get re-attached
drupal_add_css(drupal_get_path('module', 'islandora_form_elements') .'/css/people.css'); drupal_add_css(drupal_get_path('module', 'islandora_form_elements') . '/css/people.css');
return $output; return $output;
} }

782
form_elements/islandora_form_elements.module

File diff suppressed because it is too large Load Diff

122
form_elements/js/copyright.js

@ -1,48 +1,102 @@
$(document).ready(function () { $(document).ready(function () {
var cc_versions = new Array(); cc_versions[""]="3.0"; cc_versions["ar"]="2.5"; cc_versions["au"]="3.0"; cc_versions["at"]="3.0"; cc_versions["be"]="2.0"; cc_versions["br"]="3.0"; cc_versions["bg"]="2.5"; cc_versions["ca"]="2.5"; cc_versions["cl"]="2.0"; cc_versions["cn"]="2.5"; cc_versions["co"]="2.5"; cc_versions["hr"]="3.0"; cc_versions["cz"]="3.0"; cc_versions["dk"]="2.5"; cc_versions["ec"]="3.0"; cc_versions["fi"]="1.0"; cc_versions["fr"]="2.0"; cc_versions["de"]="3.0"; cc_versions["gr"]="3.0"; cc_versions["gt"]="3.0"; cc_versions["hk"]="3.0"; cc_versions["hu"]="2.5"; cc_versions["in"]="2.5"; cc_versions["il"]="2.5"; cc_versions["it"]="2.5"; cc_versions["jp"]="2.0"; cc_versions["kr"]="2.0"; cc_versions["lu"]="3.0"; cc_versions["mk"]="2.5"; cc_versions["my"]="2.5"; cc_versions["mt"]="2.5"; cc_versions["mx"]="2.5"; cc_versions["nl"]="3.0"; cc_versions["nz"]="3.0"; cc_versions["no"]="3.0"; cc_versions["pe"]="2.5"; cc_versions["ph"]="3.0"; cc_versions["pl"]="3.0"; cc_versions["pt"]="2.5"; cc_versions["pr"]="3.0"; cc_versions["ro"]="3.0"; cc_versions["rs"]="3.0"; cc_versions["sg"]="3.0"; cc_versions["si"]="2.5"; cc_versions["za"]="2.5"; cc_versions["es"]="3.0"; cc_versions["se"]="2.5"; cc_versions["ch"]="2.5"; cc_versions["tw"]="3.0"; cc_versions["th"]="3.0"; cc_versions["uk"]="2.0"; cc_versions["scotland"]="2.5"; cc_versions["us"]="3.0"; cc_versions["vn"]="3.0"; var cc_versions = new Array();
cc_versions[""]="3.0";
cc_versions["ar"]="2.5";
cc_versions["au"]="3.0";
cc_versions["at"]="3.0";
cc_versions["be"]="2.0";
cc_versions["br"]="3.0";
cc_versions["bg"]="2.5";
cc_versions["ca"]="2.5";
cc_versions["cl"]="2.0";
cc_versions["cn"]="2.5";
cc_versions["co"]="2.5";
cc_versions["hr"]="3.0";
cc_versions["cz"]="3.0";
cc_versions["dk"]="2.5";
cc_versions["ec"]="3.0";
cc_versions["fi"]="1.0";
cc_versions["fr"]="2.0";
cc_versions["de"]="3.0";
cc_versions["gr"]="3.0";
cc_versions["gt"]="3.0";
cc_versions["hk"]="3.0";
cc_versions["hu"]="2.5";
cc_versions["in"]="2.5";
cc_versions["il"]="2.5";
cc_versions["it"]="2.5";
cc_versions["jp"]="2.0";
cc_versions["kr"]="2.0";
cc_versions["lu"]="3.0";
cc_versions["mk"]="2.5";
cc_versions["my"]="2.5";
cc_versions["mt"]="2.5";
cc_versions["mx"]="2.5";
cc_versions["nl"]="3.0";
cc_versions["nz"]="3.0";
cc_versions["no"]="3.0";
cc_versions["pe"]="2.5";
cc_versions["ph"]="3.0";
cc_versions["pl"]="3.0";
cc_versions["pt"]="2.5";
cc_versions["pr"]="3.0";
cc_versions["ro"]="3.0";
cc_versions["rs"]="3.0";
cc_versions["sg"]="3.0";
cc_versions["si"]="2.5";
cc_versions["za"]="2.5";
cc_versions["es"]="3.0";
cc_versions["se"]="2.5";
cc_versions["ch"]="2.5";
cc_versions["tw"]="3.0";
cc_versions["th"]="3.0";
cc_versions["uk"]="2.0";
cc_versions["scotland"]="2.5";
cc_versions["us"]="3.0";
cc_versions["vn"]="3.0";
function updateCCPreview() function updateCCPreview()
{ {
var commercial = $('.cc_commercial').val(); var commercial = $('.cc_commercial').val();
var modification = $('.cc_modifications').val(); var modification = $('.cc_modifications').val();
var jurisdiction= $('.cc_jurisdiction').val(); var jurisdiction= $('.cc_jurisdiction').val();
var jurisdiction_name = jurisdiction; var jurisdiction_name = jurisdiction;
var version = cc_versions[jurisdiction_name]; var version = cc_versions[jurisdiction_name];
var params=""; var params="";
if (commercial != '') if (commercial != '')
params+="-"+commercial; params+="-"+commercial;
if (modification != '') if (modification != '')
params+="-"+modification; params+="-"+modification;
if (jurisdiction != null) if (jurisdiction != null)
jurisdiction+="/"; jurisdiction+="/";
else else
{ {
jurisdiction = ""; jurisdiction = "";
jurisdiction_name = ""; jurisdiction_name = "";
} }
var html = "<a rel=\"license\" target=\"_new\" href=\"http://creativecommons.org/licenses/by"+params+"/"+version+"/"+jurisdiction+"\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by"+params+"/"+version+"/"+jurisdiction+"88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by"+params+"/"+version+"/"+jurisdiction+"\">Creative Commons License</a>."; var html = "<a rel=\"license\" target=\"_new\" href=\"http://creativecommons.org/licenses/by"+params+"/"+version+"/"+jurisdiction+"\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by"+params+"/"+version+"/"+jurisdiction+"88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by"+params+"/"+version+"/"+jurisdiction+"\">Creative Commons License</a>.";
$('.cc_preview').html(html); $('.cc_preview').html(html);
} }
$('.cc_enable').change(function () { $('.cc_enable').change(function () {
$('.cc_field').attr('disabled', !$(this).attr('checked')); $('.cc_field').attr('disabled', !$(this).attr('checked'));
if ($(this).attr('checked')) if ($(this).attr('checked'))
updateCCPreview(); updateCCPreview();
else else
$('.cc_preview').html(''); $('.cc_preview').html('');
}); });
$('.cc_field').change(function () { $('.cc_field').change(function () {
updateCCPreview(); updateCCPreview();
}); });
updateCCPreview(); updateCCPreview();
}); });

122
form_elements/js/filechooser.js

@ -13,7 +13,7 @@ $(document).ready(function () {
if ($('#fileField').attr('value') != '') if ($('#fileField').attr('value') != '')
{ {
selectedValue = $('#fileField').attr('value'); selectedValue = $('#fileField').attr('value');
} }
cp_pid = $('#edit-collection-pid').attr('value'); cp_pid = $('#edit-collection-pid').attr('value');
@ -21,66 +21,66 @@ $(document).ready(function () {
$.getJSON("/filechooser/generatePreview/"+cp_pid+"/"+cm_pid+"?start="+start+"&end="+end,function (data) $.getJSON("/filechooser/generatePreview/"+cp_pid+"/"+cm_pid+"?start="+start+"&end="+end,function (data)
{ {
$('#fileList').html(''); $('#fileList').html('');
if (data.length == 0) if (data.length == 0)
{ {
$('#fileList').append('<div>No files found in staging area.<div>'); $('#fileList').append('<div>No files found in staging area.<div>');
} else } else
{ {
$.each(data, function(i, item) $.each(data, function(i, item)
{ {
var html; var html;
files[i]=item.name; files[i]=item.name;
var selected= ""; var selected= "";
if (selectedValue == item.name) if (selectedValue == item.name)
{ {
selected='class="selected"'; selected='class="selected"';
selectedFile='file'+i; selectedFile='file'+i;
selectedIndex=i - (i%visibleFiles); selectedIndex=i - (i%visibleFiles);
} }
if (item.thumb) if (item.thumb)
{ {
html='<li id="file'+i+'"'+selected+'><img src="/filechooser/getThumbnail/'+cp_pid+'/'+cm_pid+'/'+item.name+'" class="thumbnail"><div style="width:150px">'+item.name+'<br>'+item.mime+'<br>'+item.size+'&nbsp;&nbsp;'+item.resolution+'</div></li>'; html='<li id="file'+i+'"'+selected+'><img src="/filechooser/getThumbnail/'+cp_pid+'/'+cm_pid+'/'+item.name+'" class="thumbnail"><div style="width:150px">'+item.name+'<br>'+item.mime+'<br>'+item.size+'&nbsp;&nbsp;'+item.resolution+'</div></li>';
} else } else
{ {
var type=item.mime.split('/',1).shift(); var type=item.mime.split('/',1).shift();
html='<li id="file'+i+'"'+selected+'><div class="'+type+'placeholder">&nbsp;</div><div class="breakly">'+item.name+'<br>'+item.mime+'<br>'+item.size+'</div></li>'; html='<li id="file'+i+'"'+selected+'><div class="'+type+'placeholder">&nbsp;</div><div class="breakly">'+item.name+'<br>'+item.mime+'<br>'+item.size+'</div></li>';
} }
$('#fileList').append(html); $('#fileList').append(html);
}); });
$('#fileList li div').breakly(15); $('#fileList li div').breakly(15);
} }
$(".carousel .jCarouselLite").jCarouselLite({ $(".carousel .jCarouselLite").jCarouselLite({
btnNext: ".carousel .next", btnNext: ".carousel .next",
btnPrev: ".carousel .prev", btnPrev: ".carousel .prev",
mouseWheel: true, mouseWheel: true,
circular: false, circular: false,
speed: 750, speed: 750,
visible: visibleFiles, visible: visibleFiles,
scroll: visibleFiles, scroll: visibleFiles,
initial: selectedIndex initial: selectedIndex
}); });
$(".carousel li").click(function() { $(".carousel li").click(function() {
if (selectedFile != this.id) if (selectedFile != this.id)
{ {
$('#fileField').attr('value',files[this.id.split('file',2).pop()]); $('#fileField').attr('value',files[this.id.split('file',2).pop()]);
$("#"+(this.id)).addClass('selected'); $("#"+(this.id)).addClass('selected');
if (selectedFile != null) if (selectedFile != null)
{ {
$("#"+selectedFile).removeClass('selected'); $("#"+selectedFile).removeClass('selected');
} }
selectedFile=this.id; selectedFile=this.id;
} }
}) })
}); });

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save