@@ -, +, @@ --- .../add_opacnewsbranchselect_syspref.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/opac.pref | 8 +++++++ .../bootstrap/en/includes/opac-bottom.inc | 8 +++++++ .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 27 ++++++++++++++++++++-- opac/opac-main.pl | 3 +++ 6 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/add_opacnewsbranchselect_syspref.sql --- a/installer/data/mysql/atomicupdate/add_opacnewsbranchselect_syspref.sql +++ a/installer/data/mysql/atomicupdate/add_opacnewsbranchselect_syspref.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES('OPACNewsLibrarySelect', '0', '', 'Show selector for branches on OPAC news page', 'YesNo'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -286,6 +286,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'), ('OCLCAffiliateID','','','Use with FRBRizeEditions and XISBN. You can sign up for an AffiliateID here: http://www.worldcat.org/wcpa/do/AffiliateUserServices?method=initSelfRegister','free'), ('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'), +('OPACNewsBranchSelect','0','','Show selector for branches on OPAC news page','YesNo'), ('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'), ('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'), ('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -503,6 +503,14 @@ OPAC: no: Don't display - the acquisition details on OPAC detail pages. - + - pref: OPACNewsLibrarySelect + default: 0 + choices: + yes: Display + no: Don't display + - a branch selection list for news items in the OPAC. + Policy: + - - "Use the following as the OPAC ISBD template:" - pref: OPACISBD type: textarea --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -267,6 +267,14 @@ $.widget.bridge('uitooltip', $.ui.tooltip); [% END # / IF persona %] +[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) == 1 %] + +[% END %] +