https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43300
Bug ID: 43300
Summary: Additional information for patron attributes not
translatable in OPAC self registration page
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: I18N/L10N
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Target Milestone: ---
When you add patron attributes and make them available in the OPAC for self
registration, they show up under the section "Additional information". This
section title is not translatable.
To recreate:
1. Create a patron attribute editable in the OPAC
1.1. Go to Administration > Patron attribute types > New patron attribute
type
1.2. Fill out the form:
- Code: TEST
- Description: Test
- Display in OPAC: Check
- Editable in OPAC: Check
1.3. Click Save
2. Add another language to the OPAC
2.1. gulp po:update --lang fr-CA
2.2. Add the language in OPACLanguages
2.3. Make sure opaclanguagesdisplay is set to Allow
3. Go to http://kohadev.mydnsname.org:8080/cgi-bin/koha/opac-memberentry.pl
(make sure the OPAC is in the other language)
--> Additional information is in English
4. Search the strings for Additional information
cd misc/translator/po
git grep "Additional information" fr-CA*
--> There is one string in opac-bootstrap, but if you look at the file, it
concerns ILL, not memberentry
I found that the way to prevent showing "Additional information" is to add a
class to the patron attribute type.
5. Create a value for PA_CLASS
5.1. Go to Administration > Authorized values
5.2. Search for PA_CLASS
5.3. Click Add
5.4. Fill out the form:
- Authorized value: TEST_CLASS
- Description: Test Class
5.5. Click Save
6. Add the class to the patron attribute type
6.1. Go to Administration > Patron attribute types
6.2. Click Edit next to TEST
6.3. In Class:, choose Test Class
6.4. Click Save
7. Redo step 3
--> Additional information is replaced by Test Class
I noticed the heading is set with a TT variable rather than through HTML (I
don't know if I'm saying this correctly) in
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
[% SET legend = "Additional information" %]
Compared to another
<legend id="alternateaddress_legend">Alternate address</legend>
I'm guessing there is some acrobatics to be done in order to use the classes,
but Additional information should still be translatable.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/