[koha-commits] main Koha release repository branch 20.05.x updated. v20.05.00-25-g6802d1a67e

Git repo owner gitmaster at git.koha-community.org
Wed Jun 17 23:49:31 CEST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 20.05.x has been updated
       via  6802d1a67e47fae0982c969f414b05f4f6a7cc28 (commit)
       via  a1a1ed902d5dd4af9dbab6eb30f4d07f6eb52732 (commit)
      from  e77736c6d6683d145c7f66821c70a24c4e07e2f8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6802d1a67e47fae0982c969f414b05f4f6a7cc28
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Tue Jun 2 11:05:12 2020 +0200

    Bug 17842: Simplify the code
    
    There is no need for all the conditions.
    From Encode::encode POD:
      "If the $string is undef, then undef is returned."
    
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    (cherry picked from commit 74c7530e3dacd7a1df9ed72d031bc1a5b7063142)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit a1a1ed902d5dd4af9dbab6eb30f4d07f6eb52732
Author: David Cook <dcook at prosentient.com.au>
Date:   Tue May 26 12:30:53 2020 +1000

    Bug 17842: UTF-8 encode ISO2709 MARC download from cart
    
    The cart was outputing ISO2709 MARC records with Latin-1
    encoding. Records containing non-latin1 characters were
    automatically re-encoded as UTF-8 by browsers, which led to
    inconsistent character encodings for downloaded MARC files.
    
    This patch explicitly encodes ISO2709 MARC characters from
    the cart download as UTF-8 encoded bytes, which resolves the problem.
    
    Test Plan:
    0) Don't apply patch
    1) Create bib record with only ASCII characters
    2) Add a ü character to the title
    3) Save bib record
    4) Download bib record from cart (opac and staff client)
    5) Using xxd or some other program, note that the ü is
    represented by a FC byte (latin-1 encoded)
    6) Apply the patch
    7) Download bib record from cart (opac and staff client)
    8) Using xxd or some other program, note that the ü is
    represented by C3 BC bytes (utf-8 encoded)
    9) Success
    
    (Note that you could potentially use Notepad++ or some other
    program to open the downloaded file and just note the encoding
    that it finds. You could also try "chardetect" instead. Lots
    of options for figuring out the encoding.)
    
    Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    (cherry picked from commit 13ec430eccd52413e756c88f90a370787842cbc2)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

-----------------------------------------------------------------------

Summary of changes:
 basket/downloadcart.pl    | 4 +++-
 opac/opac-downloadcart.pl | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list