]> git.koha-community.org Git - koha.git/commit
Bug 33509: Don't show Other holdings when there are no alternate holdings
authorKatrin Fischer <katrin.fischer.83@web.de>
Wed, 12 Apr 2023 19:58:03 +0000 (19:58 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Apr 2023 14:35:38 +0000 (11:35 -0300)
commit2ce97da0e77812300bbfaa7fe579732da80364dd
tree39fcad977ebe56fbf2681d497b2673f146d08411
parentf08d5b53256f5e5db309657a7c3c48b274e379e2
Bug 33509: Don't show Other holdings when there are no alternate holdings

With bug 33509 alternate holdings defined in AlternateHoldingsField
are shown in the staff interface result list. This works greatly
when there are items or when there is are alternate holdings (the
configured field/subfields exist in the record), but not when there
are no items and no alternate holdings.

To test:
* Add 100a to AlternateHoldingsField
* Make a search with some records without items
  Sample data: perl
* Make sure the alternate holdings show when there are no items
  and 100a exists
* Change to 100z
* Verify the result list now shows "Other holdings:" with nothing below
* Apply patch
* Repeat
  * Alternate holdings should still show nicely
  * Without alternate holdings 'no items' is displayed

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt