Bug 24058: acquisition table displayed even if no order exist (bib detail)
authorOwen Leonard <oleonard@myacpl.org>
Mon, 18 Nov 2019 18:55:39 +0000 (18:55 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 21 Nov 2019 11:34:22 +0000 (11:34 +0000)
commit43a72e09989a8a8fd943fa3a87a1488b4078fe4f
treeb169fd8e16e8484f2fde95f8cc79933ab0fe5c8a
parentfbd46dd3a7f231479c031808df967a9286a864d0
Bug 24058: acquisition table displayed even if no order exist (bib detail)

This patch corrects the template check for existence of acquisitions
data on the bibliographic detail page. Now it will correctly hide the
DataTable when there is no data.

To test, apply the patch and enable the AcquisitionDetails system
preference.

 - View the bibliographic detail page for a title which has no
   associated Acquisitions data. Under the "Acquisitions details" tab
   you should see only a message, "There is no order for this biblio."

 - View the detail page for a title which has associated Acquisitions
   data. The "Acquisitions details" tab should show the correct
   information.

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt