Author: mcantelon
Date: Fri Jan 20 13:14:09 2012
New Revision: 10733
Log:
Added creation dates column handling.
Modified:
trunk/lib/task/import/csvAccessionImportTask.class.php
Modified: trunk/lib/task/import/csvAccessionImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvAccessionImportTask.class.php Fri Jan 20
12:17:29 2012 (r10732)
+++ trunk/lib/task/import/csvAccessionImportTask.class.php Fri Jan 20
13:14:09 2012 (r10733)
@@ -123,7 +123,8 @@
'ADDRESS_City',
'ADDRESS_Province',
'APPRAISAL NOTES',
- 'DISPOSITION NOTE'
+ 'DISPOSITION NOTE',
+ 'DATE OF CREATION'
),
/* import logic to load accession */
@@ -200,6 +201,14 @@
{
if(isset($self->object) && is_object($self->object))
{
+ if ($self->rowStatusVars['DATE OF CREATION'])
+ {
+ $self->object->scopeAndContent =
$self->appendWithLineBreakIfNeeded(
+ $self->object->scopeAndContent,
+ 'Dates of Creation: '. $self->rowStatusVars['DATE OF CREATION']
+ );
+ }
+
if ($self->rowStatusVars['DONOR'])
{
// fetch/create actor
--
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.