Bugzilla – Attachment 5411 Details for
Bug 6636
a syspref to display 'powered by Koha' text to OPAC footer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6636 - add 'powered by Koha' text to OPAC footer
Bug-6636---add-powered-by-Koha-text-to-OPAC-footer.patch (text/plain), 6.68 KB, created by
Robin Sheat
on 2011-09-13 01:03:17 UTC
(
hide
)
Description:
Bug 6636 - add 'powered by Koha' text to OPAC footer
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2011-09-13 01:03:17 UTC
Size:
6.68 KB
patch
obsolete
>From e0ac339c8e7237ee6f1817f40f7bb73119e38265 Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Mon, 12 Sep 2011 18:00:34 +1200 >Subject: [PATCH] Bug 6636 - add 'powered by Koha' text to OPAC footer > >Signed-off-by: Robin Sheat <robin@catalyst.net.nz> >--- > C4/Auth.pm | 1 + > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 7 ++++++ > .../prog/en/modules/admin/preferences/opac.pref | 7 ++++++ > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 14 +++++++++++- > .../opac-tmpl/prog/en/includes/opac-bottom.inc | 23 +++++++++++++------- > 6 files changed, 44 insertions(+), 9 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 495f04c..4fe9ecd 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -435,6 +435,7 @@ sub get_template_and_user { > opac_limit_override => $opac_limit_override, > OpacBrowser => C4::Context->preference("OpacBrowser"), > OpacCloud => C4::Context->preference("OpacCloud"), >+ OpacKohaUrl => C4::Context->preference("OpacKohaUrl"), > OpacMainUserBlock => "" . C4::Context->preference("OpacMainUserBlock"), > OpacNav => "" . C4::Context->preference("OpacNav"), > OpacPasswordChange => C4::Context->preference("OpacPasswordChange"), >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 79d4893..1b40d2d 100755 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -318,3 +318,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( > INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('BasketConfirmations', '1', 'When closing or reopening a basket,', 'always ask for confirmation.|do not ask for confirmation.', 'Choice'); > INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo'); >+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','1',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 6b88c29..cccf88f 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -4446,6 +4446,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion($DBversion); > } > >+$DBversion = "3.05.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do(qq|INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','0',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL)|); >+ print "Upgrade to $DBversion done (Add syspref 'OpacKohaUrl')\n"; >+ SetVersion($DBversion); >+} >+ > > =head1 FUNCTIONS > >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 8bbf692..8d6974e 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 >@@ -86,6 +86,13 @@ OPAC: > no: "Don't show" > - the name of the patron that has an item checked out on item detail pages on the OPAC. > - >+ - pref: OpacKohaUrl >+ default: 0 >+ choices: >+ yes: Show >+ no: "Don't show" >+ - "'Powered by Koha' text on OPAC footer." >+ - > - pref: OpacHighlightedWords > choices: > yes: Highlight >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index 60afea7..e9e03ff 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css >+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >@@ -2038,4 +2038,16 @@ div.bibmessage { background-color : #ffffb0; border-radius : 5px; padding : 3px; > > #renewall_link { > background-image : url(../../images/checks.png); >-} >\ No newline at end of file >+} >+ >+div.koha_url { >+ border-top: none !important; >+} >+span.koha_url { >+ position: absolute; >+ right: 0; >+} >+a.koha_url { >+ text-decoration:none; >+ color: #666666; >+} >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc >index c76d85c..a5ad55f 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc >@@ -1,14 +1,15 @@ >- > [% IF ( opaccredits ) %] > <div class="ft"> > [% opaccredits %] > </div> > [% END %] > </div> >-[% IF ( opaclanguagesdisplay ) %] >-[% IF ( languages_loop ) %] >+ >+[% IF opaclanguagesdisplay || OpacKohaUrl %] >+<div id="changelanguage" class="ft"> >+[% IF languages_loop && opaclanguagesdisplay %] > [% UNLESS ( one_language_enabled ) %] >- <div id="changelanguage" class="ft"><strong>Languages: </strong> >+ <strong>Languages: </strong> > [% FOREACH languages_loo IN languages_loop %] > [% IF ( languages_loo.group_enabled ) %] > [% IF ( languages_loo.plural ) %] >@@ -22,14 +23,13 @@ > [% ELSE %] > <li><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li> > [% END %] >- [% END %] >+ [% END %] > [% END %] > </ul> > </div> > </div> >- > [% ELSE %] >- [% IF ( languages_loo.group_enabled ) %] >+ [% IF ( languages_loo.group_enabled ) %] > [% IF ( languages_loo.current ) %] > [% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %] > [% ELSE %] >@@ -39,9 +39,16 @@ > [% END %] > [% END %][% UNLESS ( loop.last ) %] | [% END %] > [% END %] >- </div> > [% END %] > [% END %] >+ >+[% IF ( OpacKohaUrl ) %] >+ <span class="koha_url"> >+ <a class="koha_url" href="http://koha-community.org">Powered by <strong>Koha</strong></a> >+ </span> >+[% END %] >+ >+</div> > [% END %] > > [% IF ( Babeltheque ) %] >-- >1.7.4.1
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 6636
:
4747
|
4748
|
4749
|
4762
|
4784
|
4850
|
4873
|
5099
|
5402
|
5411
|
5754
|
5762