Author: mcantelon
Date: Thu Jan 12 11:17:20 2012
New Revision: 10656
Log:
Added whitespace.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Thu Jan 12 11:03:47 2012
(r10655)
+++ trunk/lib/task/csvImportTask.class.php Thu Jan 12 11:17:20 2012
(r10656)
@@ -113,10 +113,13 @@
$import = new QubitFlatfileImport(array(
/* What type of object are we importing? */
'className' => 'QubitInformationObject',
+
/* How many rows should import until we display an import status update?
*/
'rowsUntilProgressDisplay' => $options['rows-until-update'],
+
/* Where to log errors to */
'errorLog' => $options['error-log'],
+
/* the status array is a place to put data that should be accessible
from closure logic using the getStatus method */
'status' => array(
@@ -132,6 +135,7 @@
'PRI_REC_NO',
'sort'
),
+
/* import columns that map directory to QubitInformationObject
properties */
'standardColumns' => array(
'title',
@@ -152,6 +156,7 @@
'physicalCharacteristics',
'revisionHistory'
),
+
/* import columns that should be redirected to QubitInformationObject
properties (and optionally transformed)
@@ -173,6 +178,7 @@
'columnMap' => array(
'physicalStorageLocation' => ' locationOfOriginals'
),
+
/* import columns that can be added using the
QubitInformationObject::addProperty method */
'propertyMap' => array(
@@ -181,6 +187,7 @@
'statementOfScaleCartographic' => 'statementOfScaleCartographic',
'radTitleProperOfPublishersSeries' => 'titleProperOfPublishersSeries'
),
+
/* import columns that can be added as QubitNote objects */
'noteMap' => array(
'languages' => array(
@@ -209,6 +216,7 @@
}
)
),
+
/* these values get stored to the rowStatusVars array */
'variableColumns' => array(
'UNIQUE_ID',
@@ -221,6 +229,7 @@
'datesOfCreationStart',
'datesOfCreationEnd'
),
+
/* these values get exploded and stored to the rowStatusVars array */
'arrayColumns' => array(
'accessionNumber' => '|',
@@ -230,6 +239,7 @@
'placeAccessPoints' => '|',
'nameAccessPoints' => '|'
),
+
/* import logic to execute before saving information object */
'preSaveLogic' => function(&$self)
{
@@ -257,6 +267,7 @@
$self->object->parentId = $parentId;
},
+
/* import logic to execute after saving information object */
'postSaveLogic' => function(&$self)
{
--
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.com/group/qubit-commits?hl=en.