...
- pahmaEthnographicFileCode is currently a static term list, but it will be changed to a Concept Authority reference once that authority is available
Associated Dates extract
this data cannot be imported until v2.1
field mapping
TMS table name | TMS field name | CSpace field name | notes |
---|---|---|---|
ObjDates | EventType | assocDateType |
|
ObjDates | DateText | assocDate_dateDisplayDate |
|
ObjDates | DateBegSearch | assocDate_dateEarliestSingleYear |
|
ObjDates | DateEndSearch | assocDate_dateLatestYear |
|
ObjDates | DayBegSearch | assocDate_dateEarliestSingleDay |
|
ObjDates | DayEndSearch | assocDate_dateLatestDay |
|
ObjDates | MonthBegSearch | assocDate_dateEarliestSingleMonth |
|
ObjDates | MonthEndSearch | assocDate_dateLatestMonth |
|
ObjDates | Remarks | assocDateNote |
|
sql query
view: cs_associateddates
...
SELECT
CAST(d.objectID AS VARCHAR) objectID,
lower(d.eventType) assocDateType,
d.dateText assocDate_dateDisplayDate,
(CASE WHEN d.dateBegSearch != '0' THEN d.dateBegSearch END) assocDate_dateEarliestSingleYear,
(CASE WHEN d.dateEndSearch != '0' THEN d.dateEndSearch END) assocDate_dateLatestYear,
d.dayBegSearch assocDate_dateEarliestSingleDay,
d.dayEndSearch assocDate_dateLatestDay,
d.monthBegSearch assocDate_dateEarliestSingleMonth,
d.monthEndSearch assocDate_dateLatestMonth,
d.remarks assocDateNote
FROM
ObjDates d
WHERE
lower(d.eventType) not in ('', 'accessioned', 'date collected', 'secondary collection date', 'tertiary collection date', 'date made')
AND (d.dateText is not null OR d.dateBegSearch != 0)
;
notes
- DONE: populate controlled list options for assocDateType field
- TODO: wait until assocDate field is changed into a structured date (in v2.1; see CSPACE-4775)
Field Collection Dates extract
this data cannot be imported until v2.1
field mapping
TMS table name | TMS field name | CSpace field name | notes |
---|---|---|---|
ObjDates | DateText | fieldCollectionDate_dateDisplayDate |
|
ObjDates | DateBegSearch | fieldCollectionDate_dateEarliestSingleYear |
|
ObjDates | DateEndSearch | fieldCollectionDate_dateLatestYear |
|
ObjDates | DayBegSearch | fieldCollectionDate_dateEarliestSingleDay |
|
ObjDates | DayEndSearch | fieldCollectionDate_dateLatestDay |
|
ObjDates | MonthBegSearch | fieldCollectionDate_dateEarliestSingleMonth |
|
ObjDates | MonthEndSearch | fieldCollectionDate_dateLatestMonth |
|
ObjDates | Remarks | fieldCollectionNote |
|
Objects | Dated | fieldCollectionDate_dateDisplayDate |
|
Objects | DateBegin | fieldCollectionDate_dateEarliestSingleYear |
|
Objects | DateEnd | fieldCollectionDate_dateLatestYear |
|
sql query
view: cs_fieldcollectiondates
...
SELECT
CAST(d.objectID AS VARCHAR) objectID,
d.dateText fieldCollectionDate_dateDisplayDate,
(CASE WHEN d.dateBegSearch != '0' THEN d.dateBegSearch END) fieldCollectionDate_dateEarliestSingleYear,
(CASE WHEN d.dateEndSearch != '0' THEN d.dateEndSearch END) fieldCollectionDate_dateLatestYear,
d.dayBegSearch fieldCollectionDate_dateEarliestSingleDay,
d.dayEndSearch fieldCollectionDate_dateLatestDay,
d.monthBegSearch fieldCollectionDate_dateEarliestSingleMonth,
d.monthEndSearch fieldCollectionDate_dateLatestMonth,
d.remarks fieldCollectionNote
FROM
ObjDates d
WHERE
lower(d.eventType) in ('date collected', 'secondary collection date', 'tertiary collection date')
UNION
SELECT
CAST(o.objectID AS VARCHAR) objectID,
o.dated fieldCollectionDate_dateDisplayDate,
(CASE WHEN o.dateBegin != '0' THEN o.dateBegin END) fieldCollectionDate_dateEarliestSingleYear,
(CASE WHEN o.dateEnd != '0' THEN o.dateEnd END) fieldCollectionDate_dateLatestYear,
null fieldCollectionDate_dateEarliestSingleDay,
null fieldCollectionDate_dateLatestDay,
null fieldCollectionDate_dateEarliestSingleMonth,
null fieldCollectionDate_dateLatestMonth,
null fieldCollectionNote
FROM
Objects o
WHERE
o.dated IS NOT NULL OR o.dateBegin != '0' OR o.dateEnd != '0'
;
notes
- differences in eventType ('date collected', 'secondary collection date', 'tertiary collection date') are not important and do not need to be migrated, per Michael (12/15/11)
- DONE: add new field pahmaFieldCollectionDate, to change fieldCollectionDate field into a repeating field
- TODO: wait until fieldCollectionDate field is changed into a structured date (in v2.1; see CSPACE-4775)
Production Date extract
field mapping
TMS table name | TMS field name | CSpace field name | notes |
---|---|---|---|
ObjDates | DateText | objectProductionDate_dateDisplayDate |
|
ObjDates | DateBegSearch | objectProductionDate_dateEarliestSingleYear |
|
ObjDates | DateEndSearch | objectProductionDate_dateLatestYear |
|
ObjDates | DayBegSearch | objectProductionDate_dateEarliestSingleDay |
|
ObjDates | DayEndSearch | objectProductionDate_dateLatestDay |
|
ObjDates | MonthBegSearch | objectProductionDate_dateEarliestSingleMonth |
|
ObjDates | MonthEndSearch | objectProductionDate_dateLatestMonth |
|
ObjDates | Remarks | objectProductionNote |
|
sql query
view: cs_productiondates
...
SELECT
CAST(d.objectID AS VARCHAR) objectID,
d.dateText objectProductionDate_dateDisplayDate,
(CASE WHEN d.dateBegSearch != '0' THEN d.dateBegSearch END) objectProductionDate_dateEarliestSingleYear,
(CASE WHEN d.dateEndSearch != '0' THEN d.dateEndSearch END) objectProductionDate_dateLatestYear,
d.dayBegSearch objectProductionDate_dateEarliestSingleDay,
d.dayEndSearch objectProductionDate_dateLatestDay,
d.monthBegSearch objectProductionDate_dateEarliestSingleMonth,
d.monthEndSearch objectProductionDate_dateLatestMonth,
d.remarks objectProductionNote
FROM
ObjDates d
WHERE
lower(d.eventType) = 'date made'
;