Bug 22140: Use of EasyAnalyticalRecords pref in search
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 16 Jan 2019 12:32:35 +0000 (13:32 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Feb 2019 13:34:57 +0000 (13:34 +0000)
commit7266d50dd2725c87acf889aa7d6a211999ca1c47
tree016550f6b7c26e563dbb877e1405e5666699d8ee
parent2c6d39452af2364463b509d7d18526714bc17b3f
Bug 22140: Use of EasyAnalyticalRecords pref in search

Like Bug 20702 defined GetHostItemsInfo does nothing if EasyAnalyticalRecords pref is disabled, there are other places where code must be dependant on this pref.

Test plan :
1) Build an analitical record with 773$0 and $9
2) Enable EasyAnalyticalRecords
3) Don't apply patch
4) Go to OPAC
5) Perform a search that displays the record, check there is the linked item
6) Open record detail page, check there is the linked item
7) Apply patch and redo 5) and 6)
8) Disable EasyAnalyticalRecords
9) redo 5) and 6), you should not see the linked item

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Search.pm
opac/opac-detail.pl