Author: mcantelon
Date: Tue Jan 3 12:54:22 2012
New Revision: 10540
Log:
Ignored RECORD_ID column using source column instead for CVA import.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Tue Jan 3 12:50:58 2012
(r10539)
+++ trunk/lib/task/csvImportTask.class.php Tue Jan 3 12:54:22 2012
(r10540)
@@ -86,7 +86,10 @@
'columns' => fgetcsv($fh, 60000), // 1st row supplies column names/order
'defaultStatusId' => $defaultStatusId,
'defaultStatusTypeId' => $defaultStatusTypeId,
- 'ignoreColumns' => array(),
+ 'ignoreColumns' => array(
+ 'RECORD_ID',
+ 'parentKey'
+ ),
'standardColumns' => array(
'title',
'accruals',
@@ -101,16 +104,10 @@
'archivalHistory',
'arrangement',
'findingAids',
+ 'sources',
'physicalCharacteristics'
),
'columnMap' => array(
- 'RECORD_ID' => array(
- 'column' => 'sources',
- 'transformationLogic' => function(&$self, $text)
- {
- return 'CS-Records ID: '. $text;
- }
- ),
/*
'Revision history' => array(
'column' => 'revision',
--
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.