[Koha-patches] [PATCH] Bug 11476 - Opac self registration title pull down offers 2 empty options

Owen Leonard oleonard at myacpl.org
Fri Jan 10 18:02:20 CET 2014


If you have patron titles enabled, the OPAC patron details form lists 2
empty spaces instead of 1. An empty option is passed by the script, so
the template does not need to include one.

To test you must have at least one patron title set in BorrowersTitles
system preference and OPACPatronDetails must be set to "allow."

1. Apply the patch
2. Log in to the OPAC
3. Click the "personal details" tab.
4. Click the "salutation" dropdown. There should be only one blank line
   preceding the existing titles.

Test in both prog and bootstrap.
---
 .../bootstrap/en/modules/opac-memberentry.tt       |    1 -
 .../opac-tmpl/prog/en/modules/opac-memberentry.tt  |    1 -
 2 files changed, 2 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
index 0d48e8d..8022fff 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
@@ -110,7 +110,6 @@
                                             Salutation:</label>
 
                                             <select id="borrower_title" name="borrower_title">
-                                                <option value=""> </option>
                                                 [% FOREACH mt IN member_titles %]
                                                     [% IF mt == borrower.title %]
                                                         <option value="[% mt %]" selected="selected">[% mt %]</option>
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt
index 215d8cb..65cf8b4 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-memberentry.tt
@@ -117,7 +117,6 @@
                                                     Salutation:</label>
 
                                                     <select id="borrower_title" name="borrower_title">
-                                                        <option value=""> </option>
                                                         [% FOREACH mt IN member_titles %]
                                                             [% IF mt == borrower.title %]
                                                                 <option value="[% mt %]" selected="selected">[% mt %]</option>
-- 
1.7.9.5


More information about the Koha-patches mailing list