[koha-commits] main Koha release repository branch master updated. v16.11.00-670-g83a7ab2

Git repo owner gitmaster at git.koha-community.org
Fri Mar 31 13:53:26 CEST 2017


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, master has been updated
       via  83a7ab21f320b7f7cfe8b3b6b1ab8f6895fe8180 (commit)
       via  77b72decd41bcdcd642cb9d3f32f86611dcf1566 (commit)
       via  3ee3cf10e61aaad8a47881fdc6cc565e74c847af (commit)
      from  d3cb1b0ab33b7070924611fd33e3a1aa3c34aab9 (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 83a7ab21f320b7f7cfe8b3b6b1ab8f6895fe8180
Author: Nick Clemens <nick at bywatersolutions.com>
Date:   Wed Mar 29 16:10:52 2017 -0400

    Bug 17971 (QA Followup) Clarify comment
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

commit 77b72decd41bcdcd642cb9d3f32f86611dcf1566
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Tue Jan 17 16:18:54 2017 +0100

    Bug 17971: Add support for objects represented by fk
    
    For instance an issue is not fetch from its fk but using the fk
    itemnumber.
    We need to support them.
    
    Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

commit 3ee3cf10e61aaad8a47881fdc6cc565e74c847af
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Sat Jan 21 14:26:27 2017 +0100

    Bug 17971: TT syntax for notices - Add support for plurals
    
    On of the awesome things we will be able to do with the TT syntax is the support of plurals.
    
    For instance we will be able to send a list of items, checkouts, etc. to the notice template.
    That way we will get rid of our custom syntax like <<items.content>> or <item></item> for instance.
    
    The existing code already has the playground for that but it is not used.
    
    Basically the idea is to add a "loops" key which can contain a list of
    object to retrieve from the DB and send to the template.
    For instance:
        loops => { overdues => [ $itemnumber_1, .., $itemnumber_N ] }
    
    will send a variable "overdues" to the template. It will contain the
    Koha::Checkout objects relative to the id passed.
    
    There is one quite big inconvenient to this approach so far: since we
    are still supporting the historical syntax, the objects can be fetch by
    a script, then the script will send the id to GetPreparedLetter which
    will refetch them.
    This must be improved, but I suggest to do that later.
    
    Test plan:
      prove t/db_dependent/Letters/TemplateToolkit.t
    should return green
    
    Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
    
    Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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

Summary of changes:
 C4/Letters.pm                            |   23 +++++++++++++++-----
 t/db_dependent/Letters/TemplateToolkit.t |   35 +++++++++++++++++++++++++++++-
 2 files changed, 52 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list