From d617fa4d817203cc0addb3185e51cba915b14a31 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 16 Aug 2023 07:49:53 +0100 Subject: [PATCH] Bug 6419: Add StaffSerialsHome block to additional contents This patch adds a new `StaffSerialsHome` block to the HTML Customisations options. This allows for the addition of a block of content in a page-section at the bottom of the point of sale page. NOTE: This patch also removes the now defunct database update introduced in the first patch of the series. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi --- ...stomizable_areas_to_module_start_pages.sql | 9 --------- installer/data/mysql/mandatory/sysprefs.sql | 1 - .../admin/preferences/staff_interface.pref | 6 ------ .../prog/en/modules/serials/serials-home.tt | 19 ++++++++++++------- .../en/modules/tools/additional-contents.tt | 2 +- 5 files changed, 13 insertions(+), 24 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_6419_Add_customizable_areas_to_module_start_pages.sql diff --git a/installer/data/mysql/atomicupdate/bug_6419_Add_customizable_areas_to_module_start_pages.sql b/installer/data/mysql/atomicupdate/bug_6419_Add_customizable_areas_to_module_start_pages.sql deleted file mode 100644 index daf737c514..0000000000 --- a/installer/data/mysql/atomicupdate/bug_6419_Add_customizable_areas_to_module_start_pages.sql +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # you can use $dbh here like: -$dbh->do(q{ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetSerialsHomeHTML', '', 'Show the following HTML in a div on the bottom of the serials home page', NULL, 'Free')}); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 6419 - Add customizable areas to intranet start pages)\n"; -} diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 8a45d36f31..2b2794106e 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -322,7 +322,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'), ('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'), ('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'), -('IntranetSerialsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the serials home page', 'Free'), ('IntranetSlipPrinterJS','','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','Free'), ('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'), ('IntranetUserCSS','',NULL,'Add CSS to be included in the intranet in an embedded