@@ -, +, @@ --- .../mysql/atomicupdate/Bug17937-AddingTwitterSummarysyspref.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 6 ++++++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/Bug17937-AddingTwitterSummarysyspref.sql --- a/installer/data/mysql/atomicupdate/Bug17937-AddingTwitterSummarysyspref.sql +++ a/installer/data/mysql/atomicupdate/Bug17937-AddingTwitterSummarysyspref.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('TwitterSummary', '0', NULL, 'Show the description of an item in Twitter when linked to the catalog detail page', 'YesNo'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -522,6 +522,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'), ('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'), ('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'), +('TwitterSummary', '0', NULL, 'Show the description of an item in Twitter when linked to the catalog detail page', 'YesNo'), ('UNIMARCAuthorityField100','afrey50 ba0',NULL,'Define the contents of UNIMARC authority control field 100 position 08-35','Textarea'), ('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'), ('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -345,6 +345,12 @@ OPAC: footer: "only footer" Features: - + - pref: TwitterSummary + choices: + yes: Enable + no: "Don't enable" + - Twitter Summary Cards for linking catalog items to tweets. + - - pref: opacuserlogin choices: yes: Allow --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -26,6 +26,12 @@ [% END %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %] +[% IF Koha.Preference(' TwitterSummary ') %] + + + + +[% END %] [% INCLUDE 'doc-head-close.inc' %] [% IF ( bidi ) %] [% BLOCK cssinclude %][% END %] --