]> git.koha-community.org Git - koha.git/commit
Bug 23383: fix IdRef syspref test in XSLT
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 26 Jul 2019 13:43:02 +0000 (15:43 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 10 Apr 2020 15:45:29 +0000 (15:45 +0000)
commita31d2ca846a7d7fc62dc7e05a0136e2ee3b4db0a
tree23a6e2a2f4a3a5f09d05943c9b69cc5f2d116364
parentbacd18d29b1b2e5ceeb8ec7ca4a0dcbccd418d87
Bug 23383: fix IdRef syspref test in XSLT

IdRef link is displayed via XSLT.
There is a test of syspref with just if value is defined.
But in installer/data/mysql/sysprefs.sql you see this pref will be 0 by default, which is true in XPATH.
We should test that pref is 1.

Test plan :
1) Create a fresh UNIMARC database
2) You have pref IdRef disabled
3) Simulate a SUDOC record:
  Fill a 7..$3 field with a ppn (032581270 for example).
  Fill the 009 field with an integer
4) Go to the opac detail page of the record => You don't see IdRef link
5) Enable IdRef syspref
6) Go to the opac detail page of the record => You see IdRef link
7) Disable IdRef syspref
8) Go to the opac detail page of the record => You don't see IdRef link

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit df4811ae1f2ff5a21ea5a3a7db97b19ecfdc4f6d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl