Author: jablko
Date: Tue Aug 11 17:03:51 2009
New Revision: 3013
Log:
Drop some no longer used sections, move physical and digital object sections to
specific actions
Modified:
trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Modified: trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Tue Aug
11 16:31:56 2009 (r3012)
+++ trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Tue Aug
11 17:03:51 2009 (r3013)
@@ -70,4 +70,80 @@
$this->representations = $representations;
}
}
+
+ /**
+ * Add a new digital object to $informationObject, upload a digital asset,
+ * and create a representation (thumbnail, icon) of asset.
+ *
+ * @param sfRequest The current sfRequest object
+ * @param informationObject The associated informationObject
+ * @return mixed array of file metadata on sucess, false on failure
+ */
+ public function updateDigitalObjects()
+ {
+ // Set property 'display_as_compound_object'
+ if ($this->request->hasParameter('display_as_compound_object'))
+ {
+
$this->informationObject->setDisplayAsCompoundObject($this->request->getParameter('display_as_compound_object'));
+ }
+
+ // Update media type
+ if ($this->request->hasParameter('media_type_id'))
+ {
+ $digitalObject = $this->informationObject->getDigitalObject();
+
$digitalObject->setMediaTypeId($this->request->getParameter('media_type_id'));
+ $digitalObject->save();
+ }
+
+ // Do digital object upload
+ if (is_array($uploadedFiles = $this->request->getFile('upload_file')))
+ {
+ foreach ($uploadedFiles['name'] as $usageId => $filename)
+ {
+ if ($uploadedFiles['error'][$usageId])
+ {
+ continue;
+ }
+
+ if (!file_exists($tmpFile = $uploadedFiles['tmp_name'][$usageId]))
+ {
+ continue; // Skip to next $uploadFile if no valid filename
+ }
+
+ // Upload asset and create digital object
+ $digitalObject = new QubitDigitalObject;
+ $asset = new QubitAsset($filename, file_get_contents($tmpFile));
+
+ $digitalObject->assets[] = $asset;
+ $digitalObject->setUsageId($usageId);
+
+ $this->informationObject->digitalObjects[] = $digitalObject;
+
+ // If this is a new information object with no title, set title to name
+ // of digital object
+ if ($this->request->getParameter('action') == 'update' &&
$this->informationObject->getTitle(array('cultureFallback'=>true)) == null &&
$usageId == QubitTerm::MASTER_ID)
+ {
+ $this->informationObject->setTitle($digitalObject->getName());
+ }
+
+ $this->foreignKeyUpdate = true;
+ } // endforeach
+ } // end if
+
+ // Generate a derivative
+ if ($this->request->hasParameter('createDerivative'))
+ {
+ $digitalObject = $this->informationObject->getDigitalObject();
+
+ switch ($this->request->getParameter('createDerivative'))
+ {
+ case QubitTerm::REFERENCE_ID:
+ $digitalObject->createReferenceImage();
+ break;
+ case QubitTerm::THUMBNAIL_ID:
+ $digitalObject->createThumbnail();
+ break;
+ }
+ }
+ } // end function
}
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Tue Aug 11 16:31:56 2009 (r3012)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Tue Aug 11 17:03:51 2009 (r3013)
@@ -323,16 +323,12 @@
// set the informationObject's attributes
$this->informationObject->setId($this->getRequestParameter('id'));
$this->updateInformationObjectAttributes();
- $this->updateOneToManyRelations();
$this->updateCollectionType();
$this->updateHierarchy();
// Save related objects (save on $this->informationObject->save())
$this->updateObjectTermRelations();
$this->updateNotes();
- $this->updateProperties();
- $this->updatePhysicalObjects();
- $this->updateDigitalObjects();
$this->updateEvents();
// save informationObject after setting all of its attributes...
@@ -344,105 +340,7 @@
// delete related objects marked for deletion
$this->deleteNotes();
$this->deleteEvents();
- $this->deleteProperties();
$this->deleteObjectTermRelations();
- $this->deleteRelations();
- }
-
- public function updateInformationObjectAttributes()
- {
- if ($this->hasRequestParameter('title'))
- {
- $this->informationObject->setTitle($this->getRequestParameter('title'));
- }
- if ($this->hasRequestParameter('alternate_title'))
- {
-
$this->informationObject->setAlternateTitle($this->getRequestParameter('alternate_title'));
- }
- if ($this->hasRequestParameter('identifier'))
- {
-
$this->informationObject->setIdentifier($this->getRequestParameter('identifier'));
- }
- if ($this->hasRequestParameter('edition'))
- {
-
$this->informationObject->setEdition($this->getRequestParameter('edition'));
- }
- if ($this->hasRequestParameter('extent_and_medium'))
- {
-
$this->informationObject->setExtentAndMedium($this->getRequestParameter('extent_and_medium'));
- }
- if ($this->hasRequestParameter('archival_history'))
- {
-
$this->informationObject->setArchivalHistory($this->getRequestParameter('archival_history'));
- }
- if ($this->hasRequestParameter('acquisition'))
- {
-
$this->informationObject->setAcquisition($this->getRequestParameter('acquisition'));
- }
- if ($this->hasRequestParameter('scope_and_content'))
- {
-
$this->informationObject->setScopeAndContent($this->getRequestParameter('scope_and_content'));
- }
- if ($this->hasRequestParameter('appraisal'))
- {
-
$this->informationObject->setAppraisal($this->getRequestParameter('appraisal'));
- }
- if ($this->hasRequestParameter('accruals'))
- {
-
$this->informationObject->setAccruals($this->getRequestParameter('accruals'));
- }
- if ($this->hasRequestParameter('arrangement'))
- {
-
$this->informationObject->setArrangement($this->getRequestParameter('arrangement'));
- }
- if ($this->hasRequestParameter('access_conditions'))
- {
-
$this->informationObject->setAccessConditions($this->getRequestParameter('access_conditions'));
- }
- if ($this->hasRequestParameter('reproduction_conditions'))
- {
-
$this->informationObject->setReproductionConditions($this->getRequestParameter('reproduction_conditions'));
- }
- if ($this->hasRequestParameter('physical_characteristics'))
- {
-
$this->informationObject->setPhysicalCharacteristics($this->getRequestParameter('physical_characteristics'));
- }
- if ($this->hasRequestParameter('finding_aids'))
- {
-
$this->informationObject->setFindingAids($this->getRequestParameter('finding_aids'));
- }
- if ($this->hasRequestParameter('location_of_originals'))
- {
-
$this->informationObject->setLocationOfOriginals($this->getRequestParameter('location_of_originals'));
- }
- if ($this->hasRequestParameter('location_of_copies'))
- {
-
$this->informationObject->setLocationOfCopies($this->getRequestParameter('location_of_copies'));
- }
- if ($this->hasRequestParameter('related_units_of_description'))
- {
-
$this->informationObject->setRelatedUnitsOfDescription($this->getRequestParameter('related_units_of_description'));
- }
- if ($this->hasRequestParameter('rules'))
- {
- $this->informationObject->setRules($this->getRequestParameter('rules'));
- }
- if ($this->hasRequestParameter('institution_responsible_identifier'))
- {
-
$this->informationObject->setInstitutionResponsibleIdentifier($this->getRequestParameter('institution_responsible_identifier'));
- }
- if ($this->hasRequestParameter('description_identifier'))
- {
-
$this->informationObject->setDescriptionIdentifier($this->getRequestParameter('description_identifier'));
- }
- if ($this->hasRequestParameter('revision_history'))
- {
-
$this->informationObject->setRevisionHistory($this->getRequestParameter('revision_history'));
- }
- if ($this->hasRequestParameter('sources'))
- {
-
$this->informationObject->setSources($this->getRequestParameter('sources'));
- }
}
public function updateHierarchy()
@@ -474,51 +372,6 @@
}
}
- public function updateOneToManyRelations()
- {
- if ($this->hasRequestParameter('level_of_description_id'))
- {
- // Empty form values must be converted to null
- if (0 == $levelOfDescriptionId =
$this->getRequestParameter('level_of_description_id'))
- {
- $levelOfDescriptionId = null;
- }
- $this->informationObject->setLevelOfDescriptionId($levelOfDescriptionId);
-
- $this->foreignKeyUpdate = true;
- }
-
- if ($this->hasRequestParameter('repository_id'))
- {
- // Empty form values must be converted to null
- if (0 == $repositoryId = $this->getRequestParameter('repository_id'))
- {
- $repositoryId = null;
- }
- $this->informationObject->setRepositoryId($repositoryId);
- }
-
- if ($this->hasRequestParameter('description_status_id'))
- {
- // Empty form values must be converted to null
- if (0 == $descriptionStatusId =
$this->getRequestParameter('description_status_id'))
- {
- $descriptionStatusId = null;
- }
- $this->informationObject->setDescriptionStatusId($descriptionStatusId);
- }
-
- if ($this->hasRequestParameter('description_detail_id'))
- {
- // Empty form values must be converted to null
- if (0 == $descriptionDetailId =
$this->getRequestParameter('description_detail_id'))
- {
- $descriptionDetailId = null;
- }
- $this->informationObject->setDescriptionDetailId($descriptionDetailId);
- }
- }
-
protected function updateNotes()
{
}
@@ -543,95 +396,6 @@
}
/**
- * Update related property objects.
- */
- protected function updateProperties()
- {
- // Add multiple languages of access
- if ($language_codes = $this->getRequestParameter('language_code'))
- {
- // If string, turn into single element array
- $language_codes = (is_array($language_codes)) ? $language_codes :
array($language_codes);
-
- foreach ($language_codes as $language_code)
- {
- if (strlen($language_code))
- {
- $this->informationObject->addProperty($name =
'information_object_language', $language_code, array('scope'=>'languages',
'sourceCulture'=>true));
- $this->foreignKeyUpdate = true;
- }
- }
- }
-
- // Add multiple scripts of access
- if ($script_codes = $this->getRequestParameter('script_code'))
- {
- // If string, turn into single element array
- $script_codes = (is_array($script_codes)) ? $script_codes :
array($script_codes);
-
- foreach ($script_codes as $script_code)
- {
- if (strlen($script_code))
- {
- $this->informationObject->addProperty($name =
'information_object_script', $script_code, array('scope'=>'scripts',
'sourceCulture'=>true));
- $this->foreignKeyUpdate = true;
- }
- }
- }
-
- // Add multiple languages of description
- if ($language_codes =
$this->getRequestParameter('description_language_code'))
- {
- // If string, turn into single element array
- $language_codes = (is_array($language_codes)) ? $language_codes :
array($language_codes);
-
- foreach ($language_codes as $language_code)
- {
- if (strlen($language_code))
- {
- $this->informationObject->addProperty($name =
'language_of_information_object_description', $language_code,
array('scope'=>'languages', 'sourceCulture'=>true));
- $this->foreignKeyUpdate = true;
- }
- }
- }
-
- // Add multiple scripts of description
- if ($script_codes = $this->getRequestParameter('description_script_code'))
- {
- // If string, turn into single element array
- $script_codes = (is_array($script_codes)) ? $script_codes :
array($script_codes);
-
- foreach ($script_codes as $script_code)
- {
- if (strlen($script_code))
- {
- $this->informationObject->addProperty($name =
'script_of_information_object_description', $script_code,
array('scope'=>'scripts', 'sourceCulture'=>true));
- $this->foreignKeyUpdate = true;
- }
- }
- }
- }
-
- /**
- * Delete related properties marked for deletion.
- *
- * @param sfRequest request object
- */
- public function deleteProperties()
- {
- if (is_array($deleteProperties =
$this->request->getParameter('delete_properties')) && count($deleteProperties))
- {
- foreach ($deleteProperties as $thisId => $doDelete)
- {
- if ($doDelete == 'delete' && !is_null($property =
QubitProperty::getById($thisId)))
- {
- $property->delete();
- }
- }
- }
- }
-
- /**
* Update ObjectTermRelations - Subject, name and place access points and
* Material types.
*
@@ -832,153 +596,4 @@
}
}
}
-
- /**
- * Add a new digital object to $informationObject, upload a digital asset,
- * and create a representation (thumbnail, icon) of asset.
- *
- * @param sfRequest The current sfRequest object
- * @param informationObject The associated informationObject
- * @return mixed array of file metadata on sucess, false on failure
- */
- public function updateDigitalObjects()
- {
- // Set property 'display_as_compound_object'
- if ($this->request->hasParameter('display_as_compound_object'))
- {
-
$this->informationObject->setDisplayAsCompoundObject($this->request->getParameter('display_as_compound_object'));
- }
-
- // Update media type
- if ($this->request->hasParameter('media_type_id'))
- {
- $digitalObject = $this->informationObject->getDigitalObject();
-
$digitalObject->setMediaTypeId($this->request->getParameter('media_type_id'));
- $digitalObject->save();
- }
-
- // Do digital object upload
- if (is_array($uploadedFiles = $this->request->getFile('upload_file')))
- {
- foreach ($uploadedFiles['name'] as $usageId => $filename)
- {
- if ($uploadedFiles['error'][$usageId])
- {
- continue;
- }
-
- if (!file_exists($tmpFile = $uploadedFiles['tmp_name'][$usageId]))
- {
- continue; // Skip to next $uploadFile if no valid filename
- }
-
- // Upload asset and create digital object
- $digitalObject = new QubitDigitalObject;
- $asset = new QubitAsset($filename, file_get_contents($tmpFile));
-
- $digitalObject->assets[] = $asset;
- $digitalObject->setUsageId($usageId);
-
- $this->informationObject->digitalObjects[] = $digitalObject;
-
- // If this is a new information object with no title, set title to name
- // of digital object
- if ($this->request->getParameter('action') == 'update' &&
$this->informationObject->getTitle(array('cultureFallback'=>true)) == null &&
$usageId == QubitTerm::MASTER_ID)
- {
- $this->informationObject->setTitle($digitalObject->getName());
- }
-
- $this->foreignKeyUpdate = true;
- } // endforeach
- } // end if
-
- // Generate a derivative
- if ($this->request->hasParameter('createDerivative'))
- {
- $digitalObject = $this->informationObject->getDigitalObject();
-
- switch ($this->request->getParameter('createDerivative'))
- {
- case QubitTerm::REFERENCE_ID:
- $digitalObject->createReferenceImage();
- break;
- case QubitTerm::THUMBNAIL_ID:
- $digitalObject->createThumbnail();
- break;
- }
- }
- } // end function
-
-
- /**
- * Update physical object relations.
- *
- * @param informationObject The current informationObject object
- */
- public function updatePhysicalObjects()
- {
- $oldPhysicalObjects =
QubitRelation::getRelatedSubjectsByObjectId('QubitPhysicalObject',
$this->informationObject->getId(),
- array('typeId'=>QubitTerm::HAS_PHYSICAL_OBJECT_ID));
-
- // Preferentially use "new container" input data over the selector so that
- // new object data is not lost (but only if an object name is entered)
- if (strlen($physicalObjectName =
$this->getRequestParameter('physicalObjectName')))
- {
- $physicalObject = new QubitPhysicalObject;
-
- $physicalObject->setName($physicalObjectName);
-
- if ($this->hasRequestParameter('physicalObjectLocation'))
- {
-
$physicalObject->setLocation($this->getRequestParameter('physicalObjectLocation'));
- }
-
- if (intval($this->getRequestParameter('physicalObjectTypeId')))
- {
-
$physicalObject->setTypeId($this->getRequestParameter('physicalObjectTypeId'));
- }
- $physicalObject->save();
-
- // Link info object to physical object
- $this->informationObject->addPhysicalObject($physicalObject);
- }
-
- // If form is not populated, Add any existing physical objects that are
selected
- else if ($physicalObjectIds =
$this->getRequestParameter('physicalObjectId'))
- {
- // Make sure that $physicalObjectIds is an array, even if it's only got
one value
- $physicalObjectIds = (is_array($physicalObjectIds)) ? $physicalObjectIds
: array($physicalObjectIds);
-
- foreach ($physicalObjectIds as $physicalObjectId)
- {
- // If a value is set for this select box, and the physical object
exists,
- // add a relation to this info object
- if (intval($physicalObjectId) && (null !== $physicalObject =
QubitPhysicalObject::getById($physicalObjectId)))
- {
- $this->informationObject->addPhysicalObject($physicalObject);
- $this->foreignKeyUpdate = true;
- }
- }
- }
-
- } // end method: updatePhysicalObjects
-
- /**
- * Delete related physical objects marked for deletion.
- *
- * @param sfRequest request object
- */
- public function deleteRelations()
- {
- if (is_array($deleteRelations =
$this->request->getParameter('delete_relations')) && count($deleteRelations))
- {
- foreach ($deleteRelations as $thisId => $doDelete)
- {
- if ($doDelete == 'delete' && !is_null($relation =
QubitRelation::getById($thisId)))
- {
- $relation->delete();
- }
- }
- }
- }
}
Modified:
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
Tue Aug 11 16:31:56 2009 (r3012)
+++
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
Tue Aug 11 17:03:51 2009 (r3013)
@@ -41,4 +41,76 @@
$this->relations =
QubitRelation::getRelationsByObjectId($this->informationObject->getId(),
array('typeId'=>QubitTerm::HAS_PHYSICAL_OBJECT_ID));
}
+
+ /**
+ * Update physical object relations.
+ *
+ * @param informationObject The current informationObject object
+ */
+ public function updatePhysicalObjects()
+ {
+ $oldPhysicalObjects =
QubitRelation::getRelatedSubjectsByObjectId('QubitPhysicalObject',
$this->informationObject->getId(),
+ array('typeId'=>QubitTerm::HAS_PHYSICAL_OBJECT_ID));
+
+ // Preferentially use "new container" input data over the selector so that
+ // new object data is not lost (but only if an object name is entered)
+ if (strlen($physicalObjectName =
$this->getRequestParameter('physicalObjectName')))
+ {
+ $physicalObject = new QubitPhysicalObject;
+
+ $physicalObject->setName($physicalObjectName);
+
+ if ($this->hasRequestParameter('physicalObjectLocation'))
+ {
+
$physicalObject->setLocation($this->getRequestParameter('physicalObjectLocation'));
+ }
+
+ if (intval($this->getRequestParameter('physicalObjectTypeId')))
+ {
+
$physicalObject->setTypeId($this->getRequestParameter('physicalObjectTypeId'));
+ }
+ $physicalObject->save();
+
+ // Link info object to physical object
+ $this->informationObject->addPhysicalObject($physicalObject);
+ }
+
+ // If form is not populated, Add any existing physical objects that are
selected
+ else if ($physicalObjectIds =
$this->getRequestParameter('physicalObjectId'))
+ {
+ // Make sure that $physicalObjectIds is an array, even if it's only got
one value
+ $physicalObjectIds = (is_array($physicalObjectIds)) ? $physicalObjectIds
: array($physicalObjectIds);
+
+ foreach ($physicalObjectIds as $physicalObjectId)
+ {
+ // If a value is set for this select box, and the physical object
exists,
+ // add a relation to this info object
+ if (intval($physicalObjectId) && (null !== $physicalObject =
QubitPhysicalObject::getById($physicalObjectId)))
+ {
+ $this->informationObject->addPhysicalObject($physicalObject);
+ $this->foreignKeyUpdate = true;
+ }
+ }
+ }
+
+ } // end method: updatePhysicalObjects
+
+ /**
+ * Delete related physical objects marked for deletion.
+ *
+ * @param sfRequest request object
+ */
+ public function deleteRelations()
+ {
+ if (is_array($deleteRelations =
$this->request->getParameter('delete_relations')) && count($deleteRelations))
+ {
+ foreach ($deleteRelations as $thisId => $doDelete)
+ {
+ if ($doDelete == 'delete' && !is_null($relation =
QubitRelation::getById($thisId)))
+ {
+ $relation->delete();
+ }
+ }
+ }
+ }
}
Modified:
trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Tue Aug 11 16:31:56 2009 (r3012)
+++ trunk/apps/qubit/modules/informationobject/actions/editRadAction.class.php
Tue Aug 11 17:03:51 2009 (r3013)
@@ -254,64 +254,4 @@
$this->informationObject->setNote($options = array('userId' =>
$this->getUser()->getAttribute('user_id'), 'note' =>
$this->getRequestParameter('rad_note'), 'noteTypeId' =>
$this->getRequestParameter('rad_note_type')));
}
}
-
- /**
- * Update RAD properties. Called by QubitInformationObject::processForm()
- *
- * @see QubitInformationObject
- */
- protected function updateProperties()
- {
- parent::updateProperties();
-
- // Rad 1.1 properties (do some conditional logic to set empty strings as
null values in db)
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_other_title_information'))) ? $newValue : null;
- $this->informationObject->saveProperty('other_title_information',
$newValue, array('scope'=>'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_title_statement_of_responsibility'))) ?
$newValue : null;
-
$this->informationObject->saveProperty('title_statement_of_responsibility',
$newValue, array('scope' => 'rad'));
-
- // Rad 1.2 properties
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_edition_statement_of_responsibility'))) ?
$newValue : null;
-
$this->informationObject->saveProperty('edition_statement_of_responsibility',
$newValue, array('scope' => 'rad'));
-
- // Rad 1.3 properties
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_statement_of_scale_cartographic'))) ? $newValue
: null;
- $this->informationObject->saveProperty('statement_of_scale_cartographic',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_statement_of_projection'))) ? $newValue : null;
- $this->informationObject->saveProperty('statement_of_projection',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_statement_of_coordinates'))) ? $newValue : null;
- $this->informationObject->saveProperty('statement_of_coordinates',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_statement_of_scale_architectural'))) ?
$newValue : null;
- $this->informationObject->saveProperty('statement_of_scale_architectural',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_issuing_jursidiction_and_denomination'))) ?
$newValue : null;
-
$this->informationObject->saveProperty('issuing_jursidiction_and_denomination',
$newValue, array('scope' => 'rad'));
-
- // Rad 1.6 properties
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_title_proper_of_publishers_series'))) ?
$newValue : null;
-
$this->informationObject->saveProperty('title_proper_of_publishers_series',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_parallel_titles_of_publishers_series'))) ?
$newValue : null;
-
$this->informationObject->saveProperty('parallel_titles_of_publishers_series',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_other_title_information_of_publishers_series')))
? $newValue : null;
-
$this->informationObject->saveProperty('other_title_information_of_publishers_series',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_statement_of_responsibility_relating_to_publishers_series')))
? $newValue : null;
-
$this->informationObject->saveProperty('statement_of_responsibility_relating_to_publishers_series',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_numbering_within_publishers_series'))) ?
$newValue : null;
-
$this->informationObject->saveProperty('numbering_within_publishers_series',
$newValue, array('scope' => 'rad'));
-
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_note_on_publishers_series'))) ? $newValue :
null;
- $this->informationObject->saveProperty('note_on_publishers_series',
$newValue, array('scope' => 'rad'));
-
- // Rad 1.9 properties
- $newValue = (strlen($newValue =
$this->getRequestParameter('rad_standard_number'))) ? $newValue : null;
- $this->informationObject->saveProperty('standard_number', $newValue,
array('scope' => 'rad'));
- }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---