Bugzilla – Attachment 154684 Details for
Bug 34584
Remove Twitter share button from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34584: Remove Twitter share button from the OPAC
Bug-34584-Remove-Twitter-share-button-from-the-OPA.patch (text/plain), 3.30 KB, created by
Owen Leonard
on 2023-08-21 17:04:59 UTC
(
hide
)
Description:
Bug 34584: Remove Twitter share button from the OPAC
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-08-21 17:04:59 UTC
Size:
3.30 KB
patch
obsolete
>From e5fc03009194127f868d10690d6fb898d7146501 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 21 Aug 2023 16:51:59 +0000 >Subject: [PATCH] Bug 34584: Remove Twitter share button from the OPAC > >This patch removes the option to share content in the OPAC via Twitter >now that Twitter doesn't exist anymore. > >To test, apply the patch and go to Administration -> System preferences. > >- Search for "SocialNetworks." >- The menu of options should contain only email, Facebook, and LinkedIn. >- Select all options and save. >- In the OPAC, locate a bibliographic record and view its details. >- In the right-hand sidebar, you should only see options to share via > email, Facebook, and LinkedIn. >--- > .../intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 1 - > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 4 ---- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 -- > 3 files changed, 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index 060e76b2de..199a0615e1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -477,7 +477,6 @@ OPAC: > facebook: Facebook > linkedin: LinkedIn > email: Email >- twitter: Twitter > > - "social network links on the OPAC detail pages." > - >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index 4564d9b344..4e32b1b102 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -1594,10 +1594,6 @@ nav { > color: #4267B2; > } > >- #twitter { >- color: #1DA1F2; >- } >- > #linkedin { > color: #0073B0; > } >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index e28327a98d..03a5d3386e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1090,8 +1090,6 @@ > <div><a id="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn"><i class="fab fa-linkedin" aria-hidden="true"></i></a></div> > [% CASE "email" -%] > <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email"><i class="fa-solid fa-envelope" aria-hidden="true"></i></a></div> >- [% CASE "twitter" -%] >- <div><a id="twitter" href="https://twitter.com/share?url=[% current_url|url %]&text=[% title | uri %]" class="twitter-share-button" data-count="none" data-lang="[% lang | html %]" title="Share on Twitter"><i class="fab fa-twitter" aria-hidden="true"></i></a></div> > [% END # /SWITCH network -%] > [% END # /FOREACH network %] > </div> <!-- /#social_networks --> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34584
:
154684
|
154685
|
154750
|
154751