[koha-commits] main Koha release repository branch master updated. v3.22.00-1510-g4e7734c

Git repo owner gitmaster at git.koha-community.org
Wed May 4 15:24:36 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  4e7734ce330ce73eaa5cfbd7525ea073bb2a1acb (commit)
      from  30dc04c74a2ef00c22667f722746c2c6be1da6b1 (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 4e7734ce330ce73eaa5cfbd7525ea073bb2a1acb
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Tue Mar 8 14:48:17 2016 -0300

    Bug 16016: Sitemap handling scripts for packages
    
    This patch introduces the koha-sitemap script. This script wraps calls to
    the misc/cronjobs/sitemap.pl script so it can be done easily instance-wise.
    
    It sets /var/lib/koha/${instance}/sitemap as the destination directory for
    the sitemap files. A followup will make them available through an Apache
    configuration entry.
    
    koha-functions.sh is provided with a handy is_sitemap_enabled function so
    we can later add filters to other commands (koha-list, koha-foreach, etc).
    
    Exposes sitemap files to apache. This is suitable for including the sitemap in
    the robots.txt file as proposed in
    
      http://www.sitemaps.org/protocol.html#submit_robots
    
    Note: it depends on Apache 2.4+ so we can patch the file as needed. Older
    Apache users will be warned that they need to tweak the apache files on their
    own.
    
    To test:
    - You can build a package out of this patchset, or do the following on a kohadevbox
      cp debian/scripts/koha-functions.sh /usr/share/koha/bin
    - Run
      $ debian/scripts/koha-sitemap --help
    - Go through all the options (--enable, --disable, generate).
    (a) --enable:
      - debian/scripts/koha-sitemap --enable kohadev
    => SUCCESS: /var/lib/koha/kohadev/sitemap.enabled is created
      - call it again, a suitable warning is raised and the file is still there
    (b) debian/scripts/koha-sitemap --disable kohadev
    => SUCCESS: /var/lib/koha/kohadev/sitemap.enabled is deleted
      - call it again, a suitable warning is raised and the file does not exist
    (c) --generate:
      - debian/scripts/koha-sitemap --generate kohadev
    => SUCCESS: sitemapindex.xml and sitemap000X.xml files are generated in
                /var/lib/koha/kohadev/sitemap/
    - Sign off :-D
    
    Sponsored-by: Orex Digital
    Signed-off-by: Frédéric Demians <f.demians at tamil.fr>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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

Summary of changes:
 debian/docs/{koha-plack.xml => koha-sitemap.xml} |   46 ++---
 debian/koha-common.install                       |    1 +
 debian/scripts/koha-functions.sh                 |   11 ++
 debian/scripts/koha-sitemap                      |  208 ++++++++++++++++++++++
 debian/templates/apache-shared-opac.conf         |    7 +
 5 files changed, 242 insertions(+), 31 deletions(-)
 copy debian/docs/{koha-plack.xml => koha-sitemap.xml} (59%)
 create mode 100755 debian/scripts/koha-sitemap


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list