Author: mcantelon
Date: Tue Mar 27 12:44:24 2012
New Revision: 11286
Log:
Added ability to specify physical object type during import.
Modified:
trunk/lib/task/import/csvImportTask.class.php
Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php Tue Mar 27 11:52:05
2012 (r11285)
+++ trunk/lib/task/import/csvImportTask.class.php Tue Mar 27 12:44:24
2012 (r11286)
@@ -202,6 +202,7 @@
'copyrightHolder',
'physicalObjectName',
'physicalObjectLocation',
+ 'physicalObjectType',
'physicalStorageLocation'
),
@@ -305,11 +306,15 @@
)
{
// create/fetch container
+ $type = ($self->rowStatusVars['physicalObjectType'])
+ ? $self->rowStatusVars['physicalObjectType']
+ : 'Box';
+
$container = $self->createOrFetchPhysicalObject(
$self->rowStatusVars['physicalObjectName'],
$self->rowStatusVars['physicalObjectLocation'],
array_search(
- 'Box',
+ $type,
$self->getStatus('physicalObjectTypes')
)
);
--
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.