Author: mcantelon
Date: Thu May 24 14:21:05 2012
New Revision: 11703
Log:
Added support for nameAccessPointHistories column.
Modified:
trunk/lib/task/import/csvImportTask.class.php
Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php Thu May 24 00:03:40
2012 (r11702)
+++ trunk/lib/task/import/csvImportTask.class.php Thu May 24 14:21:05
2012 (r11703)
@@ -286,9 +286,13 @@
'creatorDateNotes' => '|',
'creatorDatesStart' => '|',
'creatorDatesEnd' => '|',
+
'nameAccessPoints' => '|',
+ 'nameAccessPointHistories' => '|',
'placeAccessPoints' => '|',
+ 'placeAccessPointHistories' => '|', // not yet implemented
'subjectAccessPoints' => '|',
+ 'subjectAccessPointHistories' => '|', // not yet implemented
'eventActors' => '|',
'eventTypes' => '|',
@@ -507,10 +511,17 @@
if (isset($self->rowStatusVars['nameAccessPoints']))
{
// add name access points
+ $index = 0;
foreach($self->rowStatusVars['nameAccessPoints'] as $name)
{
- $actor = $self->createOrFetchActor($name);
+ $history = FALSE;
+ if
(isset($self->rowStatusVars['nameAccessPointHistories'][$index]))
+ {
+ $history =
$self->rowStatusVars['nameAccessPointHistories'][$index];
+ }
+ $actor = $self->createOrFetchActor($name, $history);
$self->createRelation($self->object->id, $actor->id,
QubitTerm::NAME_ACCESS_POINT_ID);
+ $index++;
}
}
--
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.