Author: mcantelon
Date: Wed Feb 15 14:01:29 2012
New Revision: 10900
Log:
Added import logic to deal with copyright expiration.
Modified:
trunk/lib/QubitFlatfileImport.class.php
trunk/lib/task/import/csvImportTask.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Wed Feb 15 13:55:09 2012
(r10899)
+++ trunk/lib/QubitFlatfileImport.class.php Wed Feb 15 14:01:29 2012
(r10900)
@@ -1231,7 +1231,8 @@
'basisId',
'actId',
'copyrightStatusId',
- 'restriction'
+ 'restriction',
+ 'endDate'
);
$this->setPropertiesFromArray($right, $options, $allowedProperties);
Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php Wed Feb 15 13:55:09
2012 (r10899)
+++ trunk/lib/task/import/csvImportTask.class.php Wed Feb 15 14:01:29
2012 (r10900)
@@ -410,6 +410,11 @@
)
);
+ if ($self->rowStatusVars['copyrightExpires'])
+ {
+ $rightAndRelation['endDate'] =
$self->rowStatusVars['copyrightExpires'];
+ }
+
if ($rightsHolderId) $rightAndRelation['rightsHolderId'] =
$rightsHolderId;
$self->createRightAndRelation($rightAndRelation);
break;
--
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.