]> git.koha-community.org Git - koha.git/commit
Bug 16608 - Missing entity nbsp in some XML files
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 27 May 2016 08:50:00 +0000 (10:50 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 16 Jun 2016 09:22:07 +0000 (11:22 +0200)
commitb8c64ec224bb9fae1f855bda015000ec70763a05
treea77d4229a3adf96aa9b44cb493b6ec24506d2b7f
parent5844ed5b59a3e68578e06bf1abec4e4275264c1d
Bug 16608 - Missing entity nbsp in some XML files

The special character "non breaking space" &nbsp; is not contained in XML
syntax by default.  So we add it in the file header :
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>

Even if the source code files do no contain this character, it can be that
translated files contain it.  French for example "Titre&nbsp;:".

This entity is missing in all files in koha-tmpl/intranet-tmpl/prog/en/data/
and in some files of koha-tmpl/intranet-tmpl/prog/en/xslt.

Test plan :
  - generate French templates:
    cd misc/translator
    ./translate install fr-FR
    cd ../..
  - run test:
    prove -v t/00-valid-xml.t
    you get failing error message
  - apply this patch
  - translate again
  - run test again: it passes

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described following test plan
Tes pass, no errors.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit f38a9927a3d27709173564848bda4a4a61abeadb)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 0cc550dcc3d0c05b9688bb590a827671f5f8ee95)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_006.xml
koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_008.xml
koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_CF.xsd
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MADS.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl