Author Topic: Parallel poputation of multiple fields via code replacement  (Read 518 times)

Offline Claude Diderich

  • Newcomer
  • *
  • Posts: 39
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Parallel poputation of multiple fields via code replacement
« on: November 28, 2024, 08:05:09 AM »
One challenge faced when entering metadata is that the same data needs to be entered into multiple field. For example, the caption will include the names of the people presented in the picture. These names have also to be entered in the People field. Similarly, the caption will include multiple keywords that need to also be added to the Keywords field.

Consider the following example:
caption = Rafael Nadal of Spain plays a forehand against Alexander Zverev of Germany during the men's single first round match on day two of the 2024 French Open at Roland Garros on Monday, May 27, 2024 in Paris, France

This will also require duplicate entering the following information
people = Rafael Nadal
keywords = forehand, first round, french open, roland garros


A possible solution could be to define additional field delimiters, as for code replacements, that will lead to the text to be replicated.

Consider the following example:
Code replacement delimiter: =
Delimiter character for people: !
Delimiter character for keywords: &

Writing the caption as follows

!=rn=! of =esp= plays a &forehand& against Alexander Zverev of Germany during the men's single &first round& match on day two of the 2024 &French Open& at &{location}& on Monday, May 27, 2024 in {city},{country}

would result in the data populated as shown in the example above, i.e,

caption = Rafael Nadal of Spain plays a forehand against Alexander Zverev of Germany during the men's single first round match on day two of the 2024 French Open at Roland Garros on Monday, May 27, 2024 in Paris, France
people = Rafael Nadal
keywords = forehand, first round, french open, roland garros

and not requiring duplicate entry of the people and keywords field data.
Claude Diderich, sports photographer, member of AIPS and sportpress.ch
Mülibachstrasse 49, CH-8805 Richterswil, Switzerland, phone: +41 (44) 450 81 66, fax: +41 (44) 450 81 19, mobile: +41 (79) 450 81 66, e-mail: cdiderich@cdsp.photo, internet: http://www.cdsp.photo/