[koha-commits] main Koha release repository branch master updated. v16.05.00-610-g11315ef

Git repo owner gitmaster at git.koha-community.org
Fri Sep 2 18:54:57 CEST 2016


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  11315ef090948b22d0cb424e4119011eff8f5036 (commit)
      from  bf053f3bfb82b2e70fe09a132add5283cbbd110e (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 11315ef090948b22d0cb424e4119011eff8f5036
Author: Magnus Enger <magnus at libriotech.no>
Date:   Sat Jul 23 20:31:11 2016 +0200

    Bug 5456 - Create a link to opac-ics.pl
    
    opac-ics.pl was added to Koha back in 2007, but there has not been a link to it
    from anywhere. This patch adds the link from the main view on
    /cgi-bin/koha/opac-user.pl, and makes some changes to opac-ics.pl itself.
    
    Changes to opac-ics.pl:
    - Update the code to use date and time for when a loan is due
    - Use dt_from_string to turn a MySQL time and date into a DateTime
    - Add a timestamp and a UID (these were reported as necessary by a couple of
      iCal validators)
    - Remove DTEND from events, since we now have time as well as date for when a
      loan is due
    - For loans that are overdue, set the DTSTART to now(), to avoid creating
      calendar events in the past
    - Use a template to generate text strings, to make them translatable
    
    To test:
    - Apply the patch
    - Make sure you have at least a couple of loans, including one overdue
    - Go to /cgi-bin/koha/opac-user.pl and click on the link labeled "Download as
      iCal/.ics file"
    - Inspect the file in a text editor and/or view the result in a calendar
      appplication. Make sure the data makes sense.
    - Sign off and go thee merrily on thine way.
    
    Update 2016-07-25
    - Force date_due to UTC to avoid problematic timezone info like this:
      DTSTART:TZID=Europe/Zurich:20160724T235900
    - Remove quotes from summary and description
    
    Followed test plan, koha.ics file successfully imported to Thunderbird calendar
    Signed-off-by: Marc <veron at veron.ch>
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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

Summary of changes:
 .../opac-tmpl/bootstrap/en/modules/opac-ics.tt     |    8 +++
 .../opac-tmpl/bootstrap/en/modules/opac-user.tt    |    1 +
 opac/opac-ics.pl                                   |   66 +++++++++++---------
 3 files changed, 47 insertions(+), 28 deletions(-)
 create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ics.tt


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list