Koha/debian/templates
Tomas Cohen Arazi 4e7734ce33 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@tamil.fr>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-05-04 13:34:21 +00:00
..
apache-shared-disable.conf
apache-shared-intranet-plack.conf Bug 15218: (QA followup) Fix wording of comment 2015-11-20 11:20:47 -03:00
apache-shared-intranet.conf
apache-shared-opac-plack.conf Bug 13791: (QA followup) Plack support requires Apache 2.4.8+ 2015-08-24 13:06:39 -03:00
apache-shared-opac.conf Bug 16016: Sitemap handling scripts for packages 2016-05-04 13:34:21 +00:00
apache-shared.conf
apache-site-https.conf.in Bug 15303 Letsencrypt option for Debian package installations 2016-04-29 13:04:31 +00:00
apache-site.conf.in Bug 13791: Apache configuration files 2015-08-24 13:00:40 -03:00
koha-common.conf
koha-conf-site.xml.in Bug 16084: [QA Follow-up] Correct three occurrences of __KOHA_CONF_DIR__ 2016-03-25 21:07:54 +00:00
koha-sites.conf
log4perl-site.conf.in
marc21-retrieval-info-auth-dom.xml
marc21-retrieval-info-auth-grs1.xml
marc21-retrieval-info-bib-dom.xml
marc21-retrieval-info-bib-grs1.xml
normarc-retrieval-info-auth-dom.xml
normarc-retrieval-info-auth-grs1.xml
normarc-retrieval-info-bib-dom.xml
normarc-retrieval-info-bib-grs1.xml
plack.psgi Bug 16044: Use the L1 cache for any objects set in cache 2016-03-24 19:44:43 +00:00
SIPconfig.xml
unimarc-retrieval-info-auth-dom.xml
unimarc-retrieval-info-auth-grs1.xml
unimarc-retrieval-info-bib-dom.xml
unimarc-retrieval-info-bib-grs1.xml
zebra-authorities-dom-site.cfg.in
zebra-authorities-site.cfg.in
zebra-biblios-dom-site.cfg.in
zebra-biblios-site.cfg.in
zebra.passwd.in