@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_31028.pl | 9 +++++++++ installer/data/mysql/en/optional/sample_news.yml | 11 +++++++++++ .../prog/en/includes/modals/add_catalog_concern.inc | 8 +++++++- .../prog/en/modules/tools/additional-contents.tt | 2 +- .../bootstrap/en/includes/modals/catalog_concern.inc | 8 +++++++- 5 files changed, 35 insertions(+), 3 deletions(-) --- a/installer/data/mysql/atomicupdate/bug_31028.pl +++ a/installer/data/mysql/atomicupdate/bug_31028.pl @@ -62,5 +62,14 @@ return { } ); + + if ( ( $dbh->selectrow_array('SELECT COUNT(*) FROM additional_contents WHERE location=?', undef, 'CatalogConcernHelp') )[0] == 0 ) { # Check to make idempotent + $dbh->do( + q{ + INSERT INTO additional_contents ( category, code, location, title, content, lang, published_on ) VALUES ('html_customizations', 'CatalogConcernHelp_1', 'CatalogConcernHelp', 'Catalog concern help text', 'Please describe your concern clearly and the library will try to deal with it as quickly as possible', 'default', CAST(NOW() AS date) ) + } + ); + } + }, } --- a/installer/data/mysql/en/optional/sample_news.yml +++ a/installer/data/mysql/en/optional/sample_news.yml @@ -55,3 +55,14 @@ tables: published_on: "2007-10-29 05:34:45" expirationdate: "2099-01-10" number: 2 + + - title: "" + category: "html_customizations" + location: "CatalogConcernHelp" + code: "CatalogConcernHelp_1" + content: + - "Please describe your concern clearly and the library will try to deal with it as quickly as possible" + lang: "default" + published_on: "2007-10-29 05:25:58" + expirationdate: "2099-01-10" + number: 1 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/add_catalog_concern.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/add_catalog_concern.inc @@ -1,3 +1,5 @@ +[% USE AdditionalContents %] +[% SET CatalogConcernHelp = AdditionalContents.get( location => "CatalogConcernHelp", lang => lang, library => logged_in_user.branchcode ) %]