Bug 5087: Ability to define whether CSV profile shows in OPAC
authorAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 20 Dec 2018 22:52:59 +0000 (22:52 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 30 Jul 2020 17:01:08 +0000 (17:01 +0000)
commit712143d26b680b66898995f931248a41470beccb
tree96e5e1b1cd036a8807a633cd3bf9549534f7513a
parentf9bd821cf10c7ad88ae8d0ca71d9051bf5612eb6
Bug 5087: Ability to define whether CSV profile shows in OPAC

To test:
1) Update database
2) Update schema
3) In staff side, go to Tools -> CSV profiles
4) Make a CSV profile with profile type = MARC and usage = Export
records
5) Leave 'Show option in OPAC' unchecked and save
6) Go to OPAC and add an item to your cart
7) Click Cart, click Download, confirm that your newly created CSV
profile does not show as an option
8) Go back and edit CSV profile on staff side
9) Check the 'Show option in OPAC' checkbox and save
10) Go back to download cart in OPAC
11) Confirm the CSV profile now shows in the dropdown

Sponsored-by: Catalyst IT
Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ae3644a5947ea410fc3e8ac8b64307df7d1cbb18)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Schema/Result/ExportFormat.pm
installer/data/mysql/atomicupdate/bug_5087_-_add_opac_option_field_to_export_formats.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
opac/opac-downloadcart.pl
tools/csv-profiles.pl