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

objectRepresentationSplitter: when "media" references contain directory path


(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.




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.



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


User known


Jonathan Byerley