[Koha-bugs] [Bug 27136] New: Add languages and avoid displaying nothing in facet

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 2 20:39:42 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27136

            Bug ID: 27136
           Summary: Add languages and avoid displaying nothing in facet
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: alexis.ripetti at inLibro.com

Adding some languages : Cree, Afrikaans and Multiple languages, Undetermined
and No linguistic content.
Also adding a way to avoid displaying nothing in facet for opac and client
staff when using elasticsearch as SearchEngine.

Test plan:
1) Do a search, like 'a'
2) Look in the bottom of the sidebar on the left and see that there is an empty
language
3) Apply patch
4) Update database
5) Do the same research
6) See that there is now "No information provided"

You can test translation :
TESTING TRANSLATABILITY

- Update a translation, e.g. fr-FR:

> cd misc/translator
> perl translate update fr-FR

- Open the corresponding .po file for opac, e.g.
  misc/translator/po/fr-FR-opac-bootstrap.po
- Locate strings pulled from
  koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc for
  translation, e.g.:

  msgid "%s%s%sNo information provided%s"
  msgstr ""

- Edit the "msgstr" string however you want (it's just for testing),
example : msgstr "%s%s%sAucune information fournie%s"

Do the same for the client staff :

- Open the corresponding .po file for opac, e.g.
  misc/translator/po/fr-FR-staff-prog.po
- Locate strings pulled from
  koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc for
  translation, e.g.:

  msgid "%s%s%sNo information provided%s"
  msgstr ""

- Edit the "msgstr" string however you want (it's just for testing),
example : msgstr "%s%s%sAucune information fournie%s"

- Install the updated translation:

> perl translate install fr-FR

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list