We're updating the issue view to help you get more done. 

objectRepresentationSplitter: when "media" references contain directory path

Description

(I am testing this on /data/jonathan/admin by the way, not the malhm instance)

In MALHM's PastPerfect xml, the image filename references contain 'directory path/filename' rather than simply filename.

For example:
<imagefile>003\19661132.jpg</imagefile> corresponds to the folder structure in the import directory.

In my splitter, I have "media" set to pull from "^/imagefile"...

According to the log, it looks like the reader is dropping the "\" and trying to match on 00319661132.jpg, so the media matching always fails.

Can we add a Splitter setting to declare that the references contain a directory path?

Sample data and mapping attached.

Environment

None

Activity

Show:
User known
January 10, 2018, 9:37 AM

Fixed in MALHM install and in develop branch. Please test and let me know.

Jonathan Byerley
January 10, 2018, 10:21 AM

Works now, thanks!

Jonathan Byerley
January 29, 2018, 2:50 PM

Whoops - just discovered a glitch with this one after all...

For example, here are two different records with distinct images. The two images share the same filename, but are distinguished by distinct directory paths.

<accessno>1966.155</accessno>
<imagefile>022\1966155.JPG</imagefile>

<accessno>1966.1.55</accessno>
<imagefile>003\1966155.jpg</imagefile>

The objectRepresentationSplitter is setting the same images on both files. Will attache sample data and mapping...

User known
January 29, 2018, 10:36 PM

Fix for this on the MALHM system and in develop

Assignee

User known

Reporter

Jonathan Byerley

Labels

Priority

Blocker
Configure