[koha-commits] main Koha release repository branch 18.05.x updated. v18.05.03-45-g2cec621

Git repo owner gitmaster at git.koha-community.org
Thu Sep 20 16:15:49 CEST 2018


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, 18.05.x has been updated
       via  2cec62128c8521618c95fbf5e1b542fab395aa32 (commit)
       via  bbd86576ff80126203c7a957aad6885435eb5aaa (commit)
      from  ab79f3fc67a06ea7383270ae7f00f97605c3a4d0 (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 2cec62128c8521618c95fbf5e1b542fab395aa32
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Tue Sep 11 10:48:15 2018 -0700

    Bug 21334: Add bibliographic content type definitions
    
    This patch adds the following content type definitions, to be used by
    endpoint authors implementing MARC-related endpoints:
    
    --------------------------------------
    | Content-type             | Alias   |
    |--------------------------|---------|
    | application/marcxml+xml  | marcxml |
    | application/marc-in-json | mij     |
    | application/marc         | marc    |
    --------------------------------------
    
    Code using this aliases will use them like this:
    - Suppose you want to output data in MARCXML format:
    
    my $record = cool_method_that_returns_MARC_RECORD();
    return $c->render( status => 200, format => 'marcxml', text => $record->as_xml_record );
    
    Note: 'text' by defaults encodes output as UTF-8. If the encoding is not
    UTF-8 you should encode the data on your own.
    
    To test:
    - Apply this patches
    - Run:
      $ kshell
     k$ prove t/db_dependent/Koha/REST/V1.t
    => SUCCESS: Test pass!
    - Sign off :-D
    
    Signed-off-by: Michal Denar <black23 at gmail.com>
    
    Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    
    (cherry picked from commit b612ec7a0de5c77ca29a07728664fbd1d8cb7812)
    
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

commit bbd86576ff80126203c7a957aad6885435eb5aaa
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Tue Sep 11 10:43:32 2018 -0700

    Bug 21334: Unit tests
    
    This patch adds unit tests for the new content types being added.
    It also adds tests for the 'json' overloading that already takes place
    in V1.pm.
    
    Signed-off-by: Michal Denar <black23 at gmail.com>
    
    Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    (cherry picked from commit 1442499a0b6d6c22c87b7ef9eea4c7cc540e3fce)
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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

Summary of changes:
 Koha/REST/V1.pm                                    |    7 ++-
 .../{Template/Plugin/To.t => Koha/REST/V1.t}       |   47 +++++++++-----------
 2 files changed, 28 insertions(+), 26 deletions(-)
 copy t/db_dependent/{Template/Plugin/To.t => Koha/REST/V1.t} (50%)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list