]> git.koha-community.org Git - koha.git/commit
Bug 19495: Automatic report conversion needs to do global replace on 'biblioitems...
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Oct 2017 14:49:38 +0000 (10:49 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 20 Nov 2017 13:03:32 +0000 (14:03 +0100)
commit67a3bd6d78eab1bda2d3905a8d842ef0614e0256
tree5675cb165aee5ae04cca84d165ce49ba5148fdb3
parent17085ea1cb67b8022cd912d0313fc8b3d48530da
Bug 19495: Automatic report conversion needs to do global replace on 'biblioitems' and 'marcxml'

Bug 17898 provides a way of converting reports that use biblioitems.marcxml so that they will use biblio_metadata.metadata instead.

This only works with reports that do not refer to other columns in the biblioitems table. This is a known limitation. It means that we should be able to do a substitution of every occurrence of biblioitems with biblio_metadata, and every occurrence of marcxml with metadata.

Unfortunately, we're not doing a global replace, we're only replacing the first occurrence.

Test Plan:
1) Apply this patch
2) prove t/db_dependent/Reports/Guided.t

All tests successful.
Files=1, Tests=9, 10 wallclock secs ( 0.11 usr  0.01 sys +  2.85 cusr  0.25 csys =  3.22 CPU)
Result: PASS

Signed-off-by: Dominic Pichette <dominic@inlibro.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d6a1f2ab242474c9e477c2f6d4df5c316a4ef448)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reports/Guided.pm
t/db_dependent/Reports/Guided.t