Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Inserting extracted embedded metadata into a catalogue item

edited September 2018 in Troubleshooting

Media_metadata.conf file is supposed to let you specify some basic import mapping for extracting metadata into an object while importing a media file. It looks like this:

import_mappings = {
ca_objects = {
default = {
XMP:Title = {
preferred_labels.name
},
XMP:Description = {
description
}
}
},
ca_object_representations = {
default = {
XMP:Description = {
caption, preferred_labels.name
}
}
}
}

Both "XMP:Title" and "XMP:Description" will be extracted, but only into "preferred_labels.name". Nothing into "description" or "caption".

Please let me know if you have any suggestions!

(/Ola

Comments

  • Does "description" and "caption" match the exact metadata element codes present in your configuration for objects and object representations?

  • Have you tried default instead of default?

    If you still need assistance please provide a copy of your profile, media_metada.conf, and the images you are trying to import. We will test it out.

  • edited September 2018

    It actually is "default" I am using.

  • edited September 2018

    It seams that I am not allowed to attach files to this post, but they are the same that comes with the installation of CA 1.7.5. with profile Spectrum

    The lines about import-mapping of the media_metada.conf-file need of course to be uncommented to work.

  • Here is the output of the file used for testing extracted by exiftool:
    [{
    "SourceFile": "SM.2018.001.jpg",
    "ExifTool": {
    "ExifToolVersion": 10.10
    },
    "System": {
    "FileName": "SM.2018.001.jpg",
    "Directory": ".",
    "FileSize": "2.2 MB",
    "FileModifyDate": "2018:09:23 14:47:58+02:00",
    "FileAccessDate": "2018:09:23 16:54:38+02:00",
    "FileInodeChangeDate": "2018:09:23 20:46:19+02:00",
    "FilePermissions": "rwxrwx---"
    },
    "File": {
    "FileType": "JPEG",
    "FileTypeExtension": "jpg",
    "MIMEType": "image/jpeg",
    "ExifByteOrder": "Little-endian (Intel, II)",
    "CurrentIPTCDigest": "90b6f1b848badf8901c11c8c309d23bc",
    "ImageWidth": 5408,
    "ImageHeight": 3473,
    "EncodingProcess": "Baseline DCT, Huffman coding",
    "BitsPerSample": 8,
    "ColorComponents": 3,
    "YCbCrSubSampling": "YCbCr4:4:4 (1 1)"
    },
    "IFD0": {
    "ImageWidth": 5408,
    "ImageHeight": 3473,
    "BitsPerSample": "8 8 8",
    "Compression": "LZW",
    "PhotometricInterpretation": "RGB",
    "ImageDescription": "1930 Valsverkets ruiner Nuv. cementgjuteriet i bakgrunden",
    "Orientation": "Horizontal (normal)",
    "SamplesPerPixel": 3,
    "XResolution": 266,
    "YResolution": 266,
    "PlanarConfiguration": "Chunky",
    "ResolutionUnit": "inches",
    "Software": "Adobe Photoshop CS6 (Windows)",
    "ModifyDate": "2018:09:23 11:33:44"
    },
    "ExifIFD": {
    "ExifVersion": "0221",
    "ColorSpace": "sRGB",
    "ExifImageWidth": 5408,
    "ExifImageHeight": 3473
    },
    "IFD1": {
    "Compression": "JPEG (old-style)",
    "XResolution": 72,
    "YResolution": 72,
    "ResolutionUnit": "inches",
    "ThumbnailOffset": 486,
    "ThumbnailLength": 5560
    },
    "XMP-x": {
    "XMPToolkit": "Adobe XMP Core 5.6-c011 79.156380, 2014/05/21-23:38:37 "
    },
    "XMP-dc": {
    "Format": "image/jpeg",
    "Subject": ["SM","Bruket","Grovvalsverk","Gjuteri","Ruiner"],
    "Description": "1930 Valsverkets ruiner Nuv. cementgjuteriet i bakgrunden",
    "Title": "Rivning-title"
    },
    "XMP-xmp": {
    "CreateDate": "2018:04:07 11:58:20+02:00",
    "ModifyDate": "2018:09:23 11:33:44+02:00",
    "MetadataDate": "2018:09:23 14:47:52+02:00",
    "CreatorTool": "Adobe Photoshop CS6 (Windows)",
    "Label": "Approved"
    },
    "XMP-xmpMM": {
    "InstanceID": "xmp.iid:9734a414-b689-5140-9dfc-e056898d5898",
    "DocumentID": "xmp.did:D0499244B339E81191D1AE76947C709A",
    "OriginalDocumentID": "xmp.did:D0499244B339E81191D1AE76947C709A",
    "PreservedFileName": "SM.2018.007x.tif",
    "HistoryAction": ["created","saved","saved","saved","converted","derived","saved","saved","saved"],
    "HistoryInstanceID": ["xmp.iid:D0499244B339E81191D1AE76947C709A","xmp.iid:4CF0C260FA42E811807EF227610AB479","xmp.iid:97B0A59710BFE81199D0F311BF52E532","xmp.iid:7ADCD14413BFE811A0A8E3601AF27A6D","xmp.iid:7BDCD14413BFE811A0A8E3601AF27A6D","xmp.iid:98B0A59710BFE81199D0F311BF52E532","xmp.iid:9734a414-b689-5140-9dfc-e056898d5898"],
    "HistoryWhen": ["2018:04:07 11:58:20+02:00","2018:04:18 13:19:36+02:00","2018:09:23 11:12:19+02:00","2018:09:23 11:33:44+02:00","2018:09:23 11:33:44+02:00","2018:09:23 14:47:52+02:00","2018:09:23 14:47:52+02:00"],
    "HistorySoftwareAgent": ["Adobe Photoshop CS6 (Windows)","Adobe Bridge CS6 (Windows)","Adobe Bridge CS6 (Windows)","Adobe Photoshop CS6 (Windows)","Adobe Photoshop CS6 (Windows)","Adobe Photoshop Camera Raw 9.1","Adobe Photoshop Camera Raw 9.1.1 (Windows)"],
    "HistoryChanged": ["/metadata","/metadata","/","/","/metadata","/metadata"],
    "HistoryParameters": ["from image/tiff to image/jpeg","converted from image/tiff to image/jpeg"],
    "DerivedFromInstanceID": "xmp.iid:7ADCD14413BFE811A0A8E3601AF27A6D",
    "DerivedFromDocumentID": "xmp.did:D0499244B339E81191D1AE76947C709A",
    "DerivedFromOriginalDocumentID": "xmp.did:D0499244B339E81191D1AE76947C709A"
    },
    "XMP-crs": {
    "RawFileName": "SM.2018.001.tif"
    },
    "XMP-photoshop": {
    "Headline": "Rivning-headline"
    },
    "XMP-lr": {
    "HierarchicalSubject": "SM;Bruket;Grovvalsverk;Gjuteri;Ruiner"
    },
    "Photoshop": {
    "XResolution": 266,
    "DisplayedUnitsX": "inches",
    "YResolution": 266,
    "DisplayedUnitsY": "inches",
    "PhotoshopQuality": 8,
    "PhotoshopFormat": "Standard",
    "ProgressiveScans": "3 Scans",
    "PhotoshopThumbnail": "(Binary data 5560 bytes, use -b option to extract)",
    "GlobalAngle": 30,
    "GlobalAltitude": 30,
    "IPTCDigest": "90b6f1b848badf8901c11c8c309d23bc"
    },
    "IPTC": {
    "CodedCharacterSet": "UTF8",
    "ApplicationRecordVersion": 4,
    "ObjectName": "Rivning-title",
    "Keywords": ["SM","Bruket","Grovvalsverk","Gjuteri","Ruiner"],
    "Headline": "Rivning-headline",
    "Caption-Abstract": "1930 Valsverkets ruiner Nuv. cementgjuteriet i bakgrunden"
    },
    "ICC-header": {
    "ProfileCMMType": "APPL",
    "ProfileVersion": "2.2.0",
    "ProfileClass": "Display Device Profile",
    "ColorSpaceData": "RGB ",
    "ProfileConnectionSpace": "XYZ ",
    "ProfileDateTime": "2006:02:02 02:20:00",
    "ProfileFileSignature": "acsp",
    "PrimaryPlatform": "Apple Computer Inc.",
    "CMMFlags": "Not Embedded, Independent",
    "DeviceManufacturer": "none",
    "DeviceModel": "",
    "DeviceAttributes": "Reflective, Glossy, Positive, Color",
    "RenderingIntent": "Perceptual",
    "ConnectionSpaceIlluminant": "0.9642 1 0.82491",
    "ProfileCreator": "EPSO",
    "ProfileID": 0
    },
    "ICC_Profile": {
    "ProfileDescription": "EPSON sRGB",
    "RedMatrixColumn": "0.43607 0.22249 0.01392",
    "GreenMatrixColumn": "0.38515 0.71687 0.09708",
    "BlueMatrixColumn": "0.14307 0.06061 0.7141",
    "MediaWhitePoint": "0.95045 1 1.08905",
    "ProfileCopyright": "Copyright (c) SEIKO EPSON CORPORATION 2000 - 2006. All rights reserved.",
    "RedTRC": "(Binary data 8204 bytes, use -b option to extract)",
    "GreenTRC": "(Binary data 8204 bytes, use -b option to extract)",
    "BlueTRC": "(Binary data 8204 bytes, use -b option to extract)",
    "MediaBlackPoint": "0 0 0"
    },
    "Adobe": {
    "DCTEncodeVersion": 100,
    "APP14Flags0": "(none)",
    "APP14Flags1": "(none)",
    "ColorTransform": "YCbCr"
    },
    "Composite": {
    "ImageSize": "5408x3473",
    "Megapixels": 18.8,
    "ThumbnailImage": "(Binary data 5560 bytes, use -b option to extract)"
    }
    }]

Sign In or Register to comment.