EDITED.
https://www.joseph-balson.com/Search-a-photo/
I finally understood how X3 displays an album.
Now, the search results page and the keywords page are consistent with the look and feel of a normal X3 album page.
The search takes keywords and description into account.
I'm now considering if it would be a bad or good idea to cache these pages.
I finally decided to not cache these pages. It's really cumbersome, it takes quite a lot of space, and is not really useful in the end.
It's actually pretty fast and smooth considering I'm not using any database and there are more or less 4300 photos and 1300 keywords there.
Displaying Keywords: My X3 displays lightroom keywords (IPTC keywords) in the image popup and the web page for an individual image.
Clicking on a keyword opens a page showing all the photos with that keyword present in the IPTC keywords or IPTC description.
That page has all the bells and whistles and responsiveness of a regular X3 album page. All the layouts and effects work.
Search function: The same function and results page are used for the search function. It will display all the photos with all the keywords present in IPTC keywords and description.
There are two options: exact match, or partial match. Not sure what is best, so there is an option, the user can decide with e checkbox.
- partial: search for : cat will show photos with keyword cat, but also cats, caterpillar or Catherine.
- exact: search for cat will show only photos with keyword cat.
Managing the keywords: I coded these functions for my personal use. I'm managing
my photos albums in Lightroom, taking advantage
of keywords management (especially nested keywords), IPTC functions, etc. I NEVER do any photo management in the X3 panel, and I don't use the JSON files to store anything related to individual photos.
Installing it on any X3 is possible, but that requires some coding and some discipline in the way of managing X3 folders organisation: I really tailored it for my personal use and needs, meaning it would likely not fit anyone else's needs, especially someone not using Lightroom to manages the photos in X3.
updates:
- some url rewrite made all that a little more pretty. With some very minor adjustments in the htaccess it could also be used to create virtual albums based on keywords directly in the X3 panel.