As we exports record from Koha for VuFind every few minutes, we need to be able to base the export on the time of record change, not only on the date.
Created attachment 56447 [details] [review] Bug 17444: Enable exporting by time, not only date Test plan: 1) Apply the patch 2) Edit a biblio 3) run export_records.pl with date time few minutes in the past for example: --format=xml --record-type=bibs --date="2016-10-14 10:00:05" --filename="koha.xml" 4) look in the file and cofirm that the right record was exported 5) Try the same but with time after the biblio was edited, it shouldn't be exported
Created attachment 56496 [details] [review] Bug 17444: Enable exporting by time, not only date Test plan: 1) Apply the patch 2) Edit a biblio 3) run export_records.pl with date time few minutes in the past for example: --format=xml --record-type=bibs --date="2016-10-14 10:00:05" --filename="koha.xml" 4) look in the file and cofirm that the right record was exported 5) Try the same but with time after the biblio was edited, it shouldn't be exported Signed-off-by: radiuscz <radek.siman@centrum.cz>
Not about this feature, but interested to know - why are you not using OAI-PMH to feed VuFind? It seems to work well for us.
Changing the parameter name will break any automatism that others have created for this. Could we avoid this somehow?
(In reply to Katrin Fischer from comment #4) > Not about this feature, but interested to know - why are you not using > OAI-PMH to feed VuFind? It seems to work well for us. We import data from Koha to VuFind every 5 minutes, because we are indexing status of each item to be able to show the "Show only available" checkbox facet in VuFind interface. And the problems of OAI-PMH from this point of view are two: 1. Koha OAI provider granularity is yyyy-mm-dd - will be fixed by bug 15108 2. VuFind OAI harvester mark the time of last harvest an hour or two in the past, which leads to consuming server resources much more than it should But in long term, we want to migrate to OAI-PMH, it's much easier and simpler solution.
(In reply to Katrin Fischer from comment #5) > Changing the parameter name will break any automatism that others have > created for this. Could we avoid this somehow? Surely, I'll add a followup
Created attachment 56574 [details] [review] Bug 17444: Follow-up, don't change the name of parameter "date"
Created attachment 56629 [details] [review] Bug 17444: Enable exporting by time, not only date Test plan: 1) Apply the patch 2) Edit a biblio 3) run export_records.pl with date time few minutes in the past for example: --format=xml --record-type=bibs --date="2016-10-14 10:00:05" --filename="koha.xml" 4) look in the file and cofirm that the right record was exported 5) Try the same but with time after the biblio was edited, it shouldn't be exported Signed-off-by: radiuscz <radek.siman@centrum.cz> Bug 17444: Follow-up, don't change the name of parameter "date" Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
I have squashed the patches.
Pushed to master for 16.11, thanks Josef!
Pushed in 16.05. Will be in 16.05.05.