Bug 16035: MARC default bibliographic framework Export fix
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 24 Aug 2016 21:24:45 +0000 (21:24 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 07:01:51 +0000 (09:01 +0200)
commit1de610bb63f70b9f4a1e3a8a5683de5d3bb7bb12
tree576d5256cc13a06eb7ee4e2d2c216259c3219f41
parent4f5d1faef59d57d33a1e6ce1c7ed28792e00ee43
Bug 16035: MARC default bibliographic framework Export fix

This patch makes sure that, if there is no framework code,
     $frameworkcode is set to 'default'. This fixes the format issue.
     Then, if $frameworkcode = default, an empty string (rather than
     null) is passed to the ExportFramework method, as the framework
     code in the DB for default codes is "".

To test:
1) Go to Admin -> MARC Bibliographic framework
2) Try to export default framework in all formats, notice the file is
only exported as .ods and is an empty file. Notice warns in intranet
error log.
3) Apply patch and refresh page
4) Confirm exporting default framework works in all formats and
spreadsheet has data
5) Notice warns in error log are gone
6) Confirm export still works for other frameworks

Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 705097f938ba9334c21b3e6f006bd7c9ba38763c)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
admin/import_export_framework.pl