]> 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)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 3 Apr 2020 17:22:16 +0000 (17:22 +0000)
commitdf4811ae1f2ff5a21ea5a3a7db97b19ecfdc4f6d
tree6aa621fa5d436d4a241f627bc8e0029387e1680f
parent5fbde57bbcb5c4035c6e7a5a7416ebbc407719e2
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>
koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl