FlaLD_DC - mrmiguez/citrus GitHub Wiki

Transformation service to convert Dublin Core metadata into DPLA MAPv4 JSON-LD.

Transformation map

MAPv4 field Element pymods method call Notes
sourceResource.alternative none none
sourceResource.collection none none
sourceResource.contributor dc:contributor DCRecord.get_element('.//{0}contributor'.format(dc)) Split on ; delimiter
sourceResource.creator dc:creator DCRecord.get_element('.//{0}creator'.format(dc)) Split on ; delimiter
sourceResource.date dc:date DCRecord.get_element('.//{0}date'.format(dc)) Copied to both begin and end attributes of sR.date
sourceResource.description dc:description DCRecord.get_element('.//{0}description'.format(dc)) Split on ; delimiter
sourceResource.extent none none
sourceResource.format dc:format DCRecord.get_element('.//{0}format'.format(dc))
sourceResource.genre none none
sourceResource.identifier dc:identifier DCRecord.get_element('.//{0}identifier'.format(dc)) Regular expression to catch dPanther PURLs as PURL_match variable
sourceResource.language dc:language DCRecord.get_element('.//{0}language'.format(dc)) Element text length used to determine whether to use name or iso_639_3 attribute
sourceResource.place dc:coverage DCRecord.get_element('.//{0}coverage'.format(dc))
sourceResource.publisher dc:publisher DCRecord.get_element('.//{0}publisher'.format(dc))
sourceResource.relation none none
sourceResource.isReplacedBy none none
sourceResource.replaces none none
sourceResource.rights dc:rights DCRecord.get_element('.//{0}rights'.format(dc))
sourceResource.subject dc:subject DCRecord.get_element('.//{0}subject'.format(dc)) Split on ; delimiter and ( lcsh ) removed from text
sourceResource.title dc:title DCRecord.get_element('.//{0}title'.format(dc))
sourceResource.type dc:type DCRecord.get_element('.//{0}type'.format(dc)) Split on ; delimiter
webResource.fileFormat none none
aggregation.dataProvider none none Imported variable defined in citrus_config.CONFIG_DICT
aggregation.intermediateProvider none none
aggregation.isShownAt none none Value of PURL_match captured from parsing dc:identifiers
aggregation.preview none none Returned value of citrus.assets.thumbnail_service
aggregation.provider none none Imported variable defined in citrus_config.PROVIDER