@@ -, +, @@ catalog --- .../mysql/atomicupdate/bug_7690_-_add_ItemTypeText_syspref.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + .../intranet-tmpl/prog/en/modules/admin/preferences/admin.pref | 7 +++++++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_7690_-_add_ItemTypeText_syspref.sql --- a/installer/data/mysql/atomicupdate/bug_7690_-_add_ItemTypeText_syspref.sql +++ a/installer/data/mysql/atomicupdate/bug_7690_-_add_ItemTypeText_syspref.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('ItemTypeText', 1, NULL, 'Show/hide the item type text label. It is recommended to have ItemTypeText enabled if noItemTypeImages is disabled.', 'YesNo'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -226,6 +226,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('itemBarcodeFallbackSearch','',NULL,'If set, uses scanned item barcodes as a catalogue search if not found as barcodes','YesNo'), ('itemBarcodeInputFilter','','whitespace|T-prefix|cuecat|libsuite8|EAN13','If set, allows specification of a item barcode input filter','Choice'), ('itemcallnumber','082ab',NULL,'The MARC field/subfield that is used to calculate the itemcallnumber (Dewey would be 082ab or 092ab; LOC would be 050ab or 090ab) could be 852hi from an item record','free'), +('ItemTypeText', 1, NULL, 'Show/hide the item type text label. It is recommended to have ItemTypeText enabled if noItemTypeImages is disabled.', 'YesNo'), ('KohaAdminEmailAddress','root@localhost','','Define the email address where patron modification requests are sent','free'), ('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'), ('language','en',NULL,'Set the default language in the staff client.','Languages'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref @@ -2,6 +2,13 @@ Administration: # Only used internally, omitted: FrameworksLoaded, Version Interface options: - + - pref: ItemTypeText + default: 1 + choices: + yes: "Show" + no: "Don't show" + - " itemtype text labels in the catalog. NOTE: It is recommended to have ItemTypeText enabled if noItemTypeImages is disabled." + - - "Email address for the administrator of Koha: " - pref: KohaAdminEmailAddress class: email --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -666,7 +666,7 @@ function verify_images() { [% IF !noItemTypeImages && item.imageurl %] [% item.translated_description %] [% END %] - [% item.translated_description %] + [% IF ( Koha.Preference('ItemTypeText') ) %][% item.translated_description %][% END %] [% END %] [% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) %] [% END %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1199,7 +1199,7 @@ [% ITEM_RESULT.description %] [% END %] [% END %] - [% ITEM_RESULT.description %] + [% IF ( Koha.Preference('ItemTypeText') ) %][% ITEM_RESULT.description %][% END %] [% END %] [% UNLESS singleBranchMode %] --