Announcement

#1 2023-10-14 17:34:55

Dal
Member
2023-10-14
19

[resolved] Using a . (dot) in keywords splits up the keyword

Hi there.
I have created metadata keywords in my pictures using Adobe Lightroom.
This means that the keywords are imported into Piwigo if IPTC is enabled, which it is.
But keywords that contains a . (dot) are split up into several keywords.

Example:
Keyword: Paris - 07.10 - 12.10.2019

Are split into 4 keywords:
Paris - 07
10 - 12
10
2019

Is there a way around this?

Thanks

Offline

 

#2 2023-10-14 20:18:38

erAck
Only trying to help
2015-09-06
2128

Re: [resolved] Using a . (dot) in keywords splits up the keyword

There's a metadata_keyword_separator_regex config setting with default

Code:

// decide which characters can be used as keyword separators (works in EXIF
// and IPTC). Coma "," cannot be removed from this list.
$conf['metadata_keyword_separator_regex'] = '/[.,;]/';

If you add that to your local config removing the dot it should work:

Code:

$conf['metadata_keyword_separator_regex'] = '/[,;]/';

Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-10-14 21:37:41

Dal
Member
2023-10-14
19

Re: [resolved] Using a . (dot) in keywords splits up the keyword

Excellent, Thanks!
But what file is configured in?

Thanks again

Offline

 

#4 2023-10-14 21:50:56

OHappyDay
Member
2023-02-08
84

Re: [resolved] Using a . (dot) in keywords splits up the keyword

Install the plugin "LocalFiles Editor".

In the settings for this plugin just paste the above code and you are set.

Offline

 

#5 2023-10-15 13:58:45

Dal
Member
2023-10-14
19

Re: [resolved] Using a . (dot) in keywords splits up the keyword

Smart to have a plugin that let you edit the config :)

And I found what I was looking for, thank a lot!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact