Koha-clms/misc
Julian Maurice 6f756ba4e9 Bug 19730: (follow-up bug 17196) Use biblio_metadata.timestamp in export_records.pl
Since bug 17196, biblioitems.timestamp is not always updated after a
change in the MARC record.
Filtering should be based on biblio_metadata.timestamp instead.

REVISED TEST PLAN
-----------------
0. Do not apply patch

1. Find a biblio record, remember the biblionumber for step 3

2. Edit the record, modify a field (e.g. 003, 015$q) that is
   not mapped to a DB column, so biblio_metadata.timestamp will
   be modified but not biblioitems.timestamp

3. In MySQL with the koha database selected:
   > select timestamp from biblio where biblionumber=###;
   > select timestamp from biblio_metadata where biblionumber=###;
   -- you'll need to change the ###'s based on the biblionumber
      you remembered in step 1.
   -- the two timestamps will differ.
   -- Remember the timestamp of biblio_metadata for step 4.

4. Run this command:
   $ sudo koha-shell -c bash kohadev
   $ export DATE="YYYY-MM-DD HH:mm:SS"
   -- use the timestamp remembered in step 3.

5. Run this command:
   $ ./misc/export_records.pl --date="$DATE"
   $ ls -la koha.mrc
   -- the file should be 0 bytes.

6. Run this command:
   $ exit
   $ git bz apply 19730
   $ restart_all
   $ sudo koha-shell -c bash kohadev
   $ export DATE="YYYY-MM-DD HH:mm:SS"
   -- use the timestamp remembered in step 3.

7. Run this command:
   $ ./misc/export_records.pl --date="$DATE"
   $ ls -la koha.mrc
   -- the file should be a lot more than 0 bytes.

8. Run this command:
   $ /home/vagrant/qa-test-tools/koha-qa.pl -v 2 -c 1
   -- this should pass.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f9fa822736)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2018-02-19 14:01:53 +01:00
..
admin Bug 11998: Do not clear syspref cache in psgi file 2016-03-15 07:08:29 +00:00
bin Revert Bug 11081 - Port Koha::Contrib::Tamil indexer into Koha code base 2016-03-01 16:56:35 +00:00
cronjobs Bug 19444: Do not auto renew if patron is expired and BlockExpiredPatronOpacActions is set 2018-01-15 16:35:29 +01:00
devel Bug 17567: Make populate_db.pl initialize ES mappings 2016-11-12 02:39:35 +00:00
interface_customization Bug 17639 - Remove white filling inside of Koha logo 2017-07-18 15:26:26 +02:00
load_testing Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
maintenance Bug 19190: [Follow-up] Do not rely on the return of ModItem 2017-12-11 16:52:16 +01:00
migration_tools Bug 19122: (bug 18098 follow-up) Fix IncludeSeeFromInSearches behaviour 2017-10-17 10:18:18 +02:00
plack Bug 16520: Allow per-VirtualHost environment variables with Plack 2016-10-11 12:49:42 +00:00
release_notes Update release notes for 17.05.08 release 2018-01-24 10:59:57 +01:00
search_tools Bug 17372: Standardize Elasticsearch paths 2016-10-11 01:07:03 +00:00
translator Translation updates for Koha 17.05.08 2018-01-23 04:59:44 -03:00
batchCompareMARCvsFrameworks.pl
…
batchDeleteUnusedSubfields.pl
…
batchImportMARCWithBiblionumbers.pl Bug 8576: Software error on authority edition when using merge 2012-08-28 17:55:33 +02:00
batchRebuildBiblioTables.pl Bug 16169: Change prototype for C4::Biblio::TransformMarcToKoha 2016-04-07 00:04:21 +00:00
batchRebuildItemsTables.pl Bug 9988: Remove further references to dontmerge 2017-04-13 08:53:47 -04:00
batchRepairMissingBiblionumbers.pl
…
batchdeletebiblios.pl Bug 8674 follow-up Fix perlcritic error 2012-10-02 17:48:03 +02:00
check_sysprefs.pl
…
commit_file.pl Bug 7131: (follow-up) update the command-line import tools 2013-10-30 04:35:17 +00:00
export_borrowers.pl Bug 18432 : Follow up - Updating to use they/them 2017-04-21 10:56:43 -04:00
export_records.pl Bug 19730: (follow-up bug 17196) Use biblio_metadata.timestamp in export_records.pl 2018-02-19 14:01:53 +01:00
exportauth.pl
…
koha-install-log Bug 10712: Save missing config variables to install log 2013-08-13 14:14:30 +00:00
kohalib.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
link_bibs_to_authorities.pl Bug 8818: make sure we load modules before using them 2012-10-01 19:01:50 +02:00
mod_zebraqueue.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
perlmodule_ls.pl
…
perlmodule_rm.pl
…
recreateIssueStatistics.pl
…
sax_parser_print.pl Bug 17626 (QA followup) 2016-11-22 11:29:07 +00:00
sax_parser_test.pl
…
sip_cli_emulator.pl Bug 16757 - Add support for Fee Paid to SIP cli emulator for testing 2017-03-31 13:56:37 +00:00
stage_file.pl Bug 19049: Fix regression on stage-marc-import with to_marc plugin 2017-09-06 15:27:04 +02:00