[Koha-patches] [PATCH] Bug 10743: Add styles to 'my privacy' page in OPAC

Nicole C. Engard nengard at bywatersolutions.com
Fri Aug 16 04:12:23 CEST 2013


This patch does a couple things.  Most importantly it adds
a new div around the privacy rules summary so that it can
be easily changed. It also moves the start of the form to
right above the form's select box so that it's not in the
new privacy rules div.

To test:

* Apply patch
* Enable the use of privacy via the sys prefs
* Log in to the OPAC
* Visit the 'my privacy' tab
* Make sure it looks okay
* Submit the form and make sure it works
* Repeat in the other theme
---
 .../opac-tmpl/prog/en/modules/opac-privacy.tt      |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-privacy.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-privacy.tt
index 3bb988f..f854d32 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-privacy.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-privacy.tt
@@ -20,13 +20,11 @@
     [% IF ( privacy_updated ) %]
         <div class="dialog message">Your privacy rules have been updated.</div>
     [% END %]
-
+	<div id="userprivacyrules" class="container">
     <h2>Privacy rule</h2>
     [% IF ( Ask_data ) %]
 		<p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
 		<p>Your options are: <p>
-		<form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
-            <input type="hidden" name="op" value="update_privacy" />
             <ul id="opac-privacy-options-list">
                 <li class="privacy0">Forever: keep my reading history without limit. This is the option for users who want to keep track of what they are reading.</li>
                 <li class="privacy1">Default: keep my reading history according to local laws. This is the default option : the library will keep your reading history for the duration permitted by local laws.</li>
@@ -34,6 +32,9 @@
             </ul>
             <p id="note1">Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.</p>
             <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
+    </div>
+    	<form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
+            <input type="hidden" name="op" value="update_privacy" />
             <label for:"privacy">Please choose your privacy rule:</label>
             <select name="privacy">
                 [% IF ( privacy0 ) %]
-- 
1.7.2.3



More information about the Koha-patches mailing list