|
|
@ -879,17 +879,25 @@ RDF; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* Wrap modify by value and reference |
|
|
|
|
|
|
|
* |
|
|
|
* Wrap modify by value and reference, so that the proper one gets called in the correct instance. (value if inline XML, reference otherwise) |
|
|
|
* Wrap modify by value and reference, so that the proper one gets called in the correct instance. (value if inline XML, reference otherwise) |
|
|
|
* |
|
|
|
* |
|
|
|
* First tries to treat the passed in value as a filename, tries using as contents second. |
|
|
|
* First tries to treat the passed in value as a filename, tries using as contents second. |
|
|
|
* Coerces the data into what is required, and passes it on to the relevant function. |
|
|
|
* Coerces the data into what is required, and passes it on to the relevant function. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param $filename_or_content Either a filename to add, or an string of content. |
|
|
|
* @param string $filename_or_content |
|
|
|
* @param $dsid The DSID to update |
|
|
|
* Either a filename to add, or an string of content. |
|
|
|
* @param $label A label to withwhich to update the datastream |
|
|
|
* @param string $dsid |
|
|
|
* @param $mime_type Mimetype for the data being pushed into the datastream |
|
|
|
* The DSID to update |
|
|
|
* @param $force Dunno, refer to underlying functions/SOAP interface. We just pass it like a chump. |
|
|
|
* @param string $label |
|
|
|
* @param $logMessage A message for the audit log. |
|
|
|
* A label to withwhich to update the datastream |
|
|
|
|
|
|
|
* @param string $mime_type |
|
|
|
|
|
|
|
* Mimetype for the data being pushed into the datastream |
|
|
|
|
|
|
|
* @param boolean $force |
|
|
|
|
|
|
|
* Dunno, refer to underlying functions/SOAP interface. We just pass it like a chump. |
|
|
|
|
|
|
|
* @param string $logMessage |
|
|
|
|
|
|
|
* A message for the audit log. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function modify_datastream($filename_or_content, $dsid, $label, $mime_type, $force = FALSE, $logMessage='Modified by Islandora API') { |
|
|
|
function modify_datastream($filename_or_content, $dsid, $label, $mime_type, $force = FALSE, $logMessage='Modified by Islandora API') { |
|
|
|
//Determine if it's inline xml; if it is, modify by value |
|
|
|
//Determine if it's inline xml; if it is, modify by value |
|
|
|