The value of earliestDatestamp is hardcoded on line 37 of Koha/OAI/Server/Identify.pm: earliestDatestamp => '0001-01-01', http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=Koha/OAI/Server/Identify.pm;h=3ab21889568ae41a216f717eddd6f15cc2c48b44;hb=HEAD#l37 It should not be too hard to replace this with the output of something like this: SELECT DATE(MIN(timestamp)) FROM biblio;
Created attachment 58647 [details] [review] Bug 17778 - Make "Earliest Registered Date" in OAI dynamic This was hardcoded to 0001-01-01. To test: - Make sure you have a couple of records, with different timestamps - Enable OAI-PMH - Check http://localhost:2201/cgi-bin/koha/oai.pl?verb=Identify and verify that "Earliest Registered Date" is 0001-01-01 - Apply the patch - Re-check the "Earliest Registered Date" and verify that it is now the lowest timestamp in your biblio table - Manipulate the timestamps and verify that "Earliest Registered Date" changes accordingly - Sign off!
Created attachment 58648 [details] [review] [SIGNED-OFF] Bug 17778 - Make "Earliest Registered Date" in OAI dynamic This was hardcoded to 0001-01-01. To test: - Make sure you have a couple of records, with different timestamps - Enable OAI-PMH - Check http://localhost:2201/cgi-bin/koha/oai.pl?verb=Identify and verify that "Earliest Registered Date" is 0001-01-01 - Apply the patch - Re-check the "Earliest Registered Date" and verify that it is now the lowest timestamp in your biblio table - Manipulate the timestamps and verify that "Earliest Registered Date" changes accordingly - Sign off! Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 58758 [details] [review] Bug 17778: Simplify fetch date
Created attachment 58796 [details] [review] Bug 17778 - Make "Earliest Registered Date" in OAI dynamic This was hardcoded to 0001-01-01. To test: - Make sure you have a couple of records, with different timestamps - Enable OAI-PMH - Check http://localhost:2201/cgi-bin/koha/oai.pl?verb=Identify and verify that "Earliest Registered Date" is 0001-01-01 - Apply the patch - Re-check the "Earliest Registered Date" and verify that it is now the lowest timestamp in your biblio table - Manipulate the timestamps and verify that "Earliest Registered Date" changes accordingly - Sign off! Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 58797 [details] [review] Attachment to Bug 17778 - Make "Earliest Registered Date" in OAI-PMH dynamic Bug 17778: Simplify fetch date Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 17.05, thanks Magnus, Jonathan!
These patches have been pushed to 16.11.x and will be in 16.11.02. .
Pushed to 16.05.x, for 16.05.08 release