Bug 23414: Easy readability and simplify logic in buildKohaItemsNamespace
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Nov 2019 15:29:23 +0000 (16:29 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 6 Nov 2019 17:14:27 +0000 (17:14 +0000)
commit89cd2c440083e7aa87af2fdeb06f88eb9cfafe0e
tree99bb403e4a58ff26329f9961da682f73aff9b05d
parentff7c422af09ee6b70cd6e28c21f1644ff360cd7c
Bug 23414: Easy readability and simplify logic in buildKohaItemsNamespace

This patch improves true/false logic and avoid autovivication.
Also note that xml_escape already deals with empty string.

An unecessary call to GetReserveStatus is removed.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/XSLT.pm