View | Details | Raw Unified | Return to bug 17937
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/Bug17937-AddingTwitterSummarysyspref.sql (+1 lines)
Line 0 Link Here
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 (+1 lines)
Lines 522-527 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
522
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
522
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
523
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
523
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
524
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
524
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
525
('TwitterSummary', '0', NULL, 'Show the description of an item in Twitter when linked to the catalog detail page', 'YesNo'),
525
('UNIMARCAuthorityField100','afrey50      ba0',NULL,'Define the contents of UNIMARC authority control field 100 position 08-35','Textarea'),
526
('UNIMARCAuthorityField100','afrey50      ba0',NULL,'Define the contents of UNIMARC authority control field 100 position 08-35','Textarea'),
526
('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'),
527
('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'),
527
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
528
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 345-350 OPAC: Link Here
345
                  footer: "only footer"
345
                  footer: "only footer"
346
    Features:
346
    Features:
347
        -
347
        -
348
            - pref: TwitterSummary
349
              choices:
350
                 yes: Enable
351
                 no: "Don't enable"
352
            - Twitter Summary Cards for linking catalog items to tweets.
353
        -
348
            - pref: opacuserlogin
354
            - pref: opacuserlogin
349
              choices:
355
              choices:
350
                  yes: Allow
356
                  yes: Allow
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-1 / +6 lines)
Lines 26-31 Link Here
26
[% END %]
26
[% END %]
27
[% INCLUDE 'doc-head-open.inc' %]
27
[% INCLUDE 'doc-head-open.inc' %]
28
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</title>
28
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</title>
29
[% IF Koha.Preference(' TwitterSummary ') %]
30
<meta name="twitter:card" content="summary" />
31
<meta name="twitter:site" content="[% Koha.Preference('OPACBaseURL') %]" />
32
<meta name="twitter:title" content="[% title |html %]" />
33
<meta name="twitter:description" content="View it at [% LibraryNameTitle %]" />
34
[% END %]
29
[% INCLUDE 'doc-head-close.inc' %]
35
[% INCLUDE 'doc-head-close.inc' %]
30
[% IF ( bidi ) %]
36
[% IF ( bidi ) %]
31
  [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
37
  [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
32
- 

Return to bug 17937