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

Batch media import regex support for comparing idno and filenames without punctuation

Description

Often media for batch media import is supplied with different punctuation than is used in a record identifier. In these cases the best way to find matches between media and their target record is to compare the filename and identifier without punctuation or spaces. For example:

1977_1_107a-b.jpg
media asset should match
1977.1.107 a-b
target record

Extend support for handling these cases via mediaObjectIdnoRegexes/mediaFilenameToObjectIdnoRegexes

Environment

None

Activity

Show:
Seth Kaufman
March 26, 2020, 2:34 PM

Implemented in develop. Note that existing settings names have changed to make this more consistent. Check app.conf for media_filename_to_idno_matching (formerly mediaFilenameToObjectIdnoRegexes), media_filename_rewrites (formerly mediaFilenameReplacements) and media_idno_rewrites (formerly mediaObjectIdnoRegexes)

Seth Kaufman
March 26, 2020, 2:35 PM

The format of configuration for media_filename_rewrites has changed significantly as well – this should now support what you need to do. If you have configuration with the old settings names, they'll still work fine. I just changed things around so it's consistent.

Seth Kaufman
March 26, 2020, 2:36 PM

The only breaking change will be for media_filename_rewrites as how it actually works is now different, but no one was using mediaFilenameReplacements long term anyone (I think)

Assignee

Seth

Reporter

Julia Weist

Labels

Fix versions

Affects versions

Due date

2020/03/27

Priority

Major
Configure