Which is unrelated to the problem of partial or fuzzy dates.
Offline
In thinking about this...
One could use an IPTC field [Circa Date Created] comes to mind...
Then display this IPTC field
If you wanted to get creative with the theme, then pseudo-code:
if circadatecreated exists display this field
else
display creationdate
again, not well thought out, but just thinking out loud for you...
Offline
Tnank you, jnashpiwigo. That is an interesting suggestion which I will pursue.
I am part way there already as I have used the IPTC Date Created field to add a date to many of my old photos. At present I am mapping this to '2#055' in Piwigo which is presumably the SQL field where the Exif date created/taken is stored.
So I need to choose another SQL field which I don't use to map the IPTC date into and then write some pseudo-code as you suggest and then discover where to put the code.
I am not sure that I can do this but a good start would be to find a list of all the fields/columns in the appropriate SQL table (2 or piwigo_images?). Can anyone tell me where to find this in the Piwigo documentaion or Help pages?
Offline
jclifford, you can create any new property field with the extension "Manage properties photos" https://piwigo.org/ext/extension_view.php?eid=783 I do not know how it is stored, but they will be either displayed among the photo informations or hidden, but still existing.
Offline
Katryne
Thank you for the suggestion but I have given up trying to find a solution at present.
I did investigate how TNG copes with flexible dates. It has two fields/columns for each date in its SQL database. One is type=VARCHAR where it stores whatever comes in as a Gedcom file and the other is type=DATE where every date is translated into yyyy mm dd format with zeroes where a day month and/or year is unknown/missing. The first field is used for display and the second for sorting and searching.
Piwigo will read and store correctly an IPTC partial date like 19640600 but displays it under a photo as 1st January 1964. It seems to be the routine which formats the date for display which needs attention but I have not located it.
Offline