]> git.koha-community.org Git - koha.git/commit
Bug 28511: Road types in OPAC should prefer OPAC description if one exists
authorOwen Leonard <oleonard@myacpl.org>
Mon, 7 Jun 2021 18:47:25 +0000 (18:47 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Jun 2021 10:04:17 +0000 (12:04 +0200)
commitfefd252f0a80c1d9ddb81cd6ffddb93f7972364b
tree29aebc79b3031a42957ef8f74fc6a772fd5c661e
parenta6adf70decc9caa691dce12db9a5505c861cff04
Bug 28511: Road types in OPAC should prefer OPAC description if one exists

This patch modifies the patron entry form in the OPAC so that if street
types are defined in authorized values, the OPAC description is
preferred.

To test, apply the patch and go to Administration -> Authorized values.

- Add or edit entries in the "ROADTYPE" category.
  - Some entries should have only the "Description" set, while others
    should have "Description" and "Description (OPAC)".
- In the OPAC, open the patron registration page. Check the "Stree type"
  drop down in the "Main address" section.
  - For entries which have an OPAC description, this value should show.
  - For entries without an OPAC description the default should show.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt