From 84e8cafca5e07ad4c2a7cf7129615d20cd9f5ab8 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 22 Dec 2015 21:50:37 +0000 Subject: [PATCH] Bug 15411: Changing 'Non fiction' to 'Non-fiction' To test: 1) Apply patch 2) Run updatedatabase.pl 3) Go to advanced search in Staff Client (ie /cgi-bin/koha/catalogue/search.pl) 4) Confirm that it says 'Non-fiction' in the 'Any content' drop-down menu under 'Subtype limits' 5) Go to item search (ie /cgi-bin/koha/catalogue/itemsearch.pl) 6) Confirm that it says 'Non-fiction' under 'Collection code' 7) Go to advanced search in OPAC (ie /cgi-bin/koha/opac-search.pl) and click 'More options' 8) Confirm that it says 'Non-fiction' in the 'Content' drop-down menu 9) Go to the details page for a non-fiction book in the OPAC (ie /cgi-bin/koha/opac-detail.pl?biblionumber=2) and click 'Holdings' tab 10) Confirm that it says 'Non-fiction' under 'Collection' heading Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Jesse Weaver --- .../data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql | 1 + installer/data/mysql/en/optional/auth_val.sql | 2 +- installer/data/mysql/es-ES/optional/auth_val.sql | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql diff --git a/installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql b/installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql new file mode 100644 index 0000000000..9aff0fa4ad --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_15411-change_to_non-fiction.sql @@ -0,0 +1 @@ +UPDATE `authorised_values` SET `lib`='Non-fiction' WHERE `lib`='Non Fiction'; diff --git a/installer/data/mysql/en/optional/auth_val.sql b/installer/data/mysql/en/optional/auth_val.sql index bfc6fec50a..24f036bd20 100644 --- a/installer/data/mysql/en/optional/auth_val.sql +++ b/installer/data/mysql/en/optional/auth_val.sql @@ -35,7 +35,7 @@ INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('LOC', -- collection codes for an item INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','FIC','Fiction'); INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','REF','Reference'); -INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','NFIC','Non Fiction'); +INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','NFIC','Non-fiction'); -- withdrawn status of an item, linked to items.withdrawn INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('WITHDRAWN','1','Withdrawn'); diff --git a/installer/data/mysql/es-ES/optional/auth_val.sql b/installer/data/mysql/es-ES/optional/auth_val.sql index 6fe4d43358..e1f9f8cc32 100644 --- a/installer/data/mysql/es-ES/optional/auth_val.sql +++ b/installer/data/mysql/es-ES/optional/auth_val.sql @@ -28,7 +28,7 @@ INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('LOC', -- collection codes for an item INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','FIC','Fiction'); INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','REF','Reference'); -INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','NFIC','Non Fiction'); +INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('CCODE','NFIC','Non-fiction'); -- withdrawn status of an item, linked to items.withdrawn INSERT INTO `authorised_values` (category, authorised_value, lib) VALUES ('WITHDRAWN','1','Withdrawn'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index b41690de56..6ca70fa593 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -178,7 +178,7 @@ - + -- 2.39.5