Frédéric Demians > Koha-Contrib-Tamil-0.031 > koha-cloud

Download:
Koha-Contrib-Tamil-0.031.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Koha-Contrib-Tamil-0.048

NAME ^

koha-cloud - Creates HTML keywords clouds from Koha Zebra Indexes

VERSION ^

version 0.031

USAGE ^

koha-cloud [--verbose|--help] --conf=cloud.conf

Creates multiple HTML files containing kewords cloud with top terms sorted by their logarithmic weight. cloud.conf is a YAML configuration file driving cloud generation process.

PARAMETERS ^

--conf=configuration file

Specify configuration file name

--verbose|-v

Enable script verbose mode.

--help|-h

Print this help page.

CONFIGURATION ^

Configuration file looks like that:

 --- 
  # Koha configuration file for a specific installation
  # If not present, defaults to KOHA_CONF
  KohaConf: /home/koha/mylibray/etc/koha-conf.xml
  # Zebra index to scan
  ZebraIndex: Author
  # Koha index used to link found kewords with an opac search URL
  KohaIndex: au
  # Number of top keyword to use for the cloud
  Count: 50
  # Include CSS style directives with the cloud
  # This could be used as a model and then CSS directives are
  # put in the appropriate CSS file directly.
  Withcss: Yes
  # HTML file where to output the cloud
  Output: /home/koha/mylibrary/koharoot/koha-tmpl/cloud-author.html
 --- 
  KohaConf: /home/koha/yourlibray/etc/koha-conf.xml
  ZebraIndex: Subject
  KohaIndex: su
  Count: 200
  Withcss: no
  Output: /home/koha/yourlibrary/koharoot/koha-tmpl/cloud-subject.html

IMPROVEMENTS ^

Generated top terms have more informations than those outputted from the time beeing. Some parameters could be easily added to improve this script:

WithCount

In order to output terms with the number of occurences they have been found in Koha Catalogue by Zebra.

CloudLevels

Number of levels in the cloud. Now 24 levels are hardcoded.

Weithing

Weighting method used to distribute terms in the cloud. We could have two values: Logarithmic and Linear. Now it's Logarithmic by default.

Order

Now terms are outputted in the lexical order. They could be sorted by their weight.

COPYRIGHT AND LICENSE ^

Copyright 2009 by Tamil, s.a.r.l.

http://www.tamil.fr

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Frédéric Demians <f.demians@tamil.fr>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2013 by Fréderic Démians.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007
syntax highlighting:
http://search.cpan.org/~fredericd/Koha-Contrib-Tamil-0.031/bin/koha-cloud
search.cpan.org
crawl=CC-MAIN-2016-30
15153
application/http; msgtype=response
sha1:VZJO5EJUC26RMXDDM2WB26SQ76VOMDBN
<urn:uuid:4645e042-7528-4c00-abaa-6865b275329d>
2016-07-28T09:34:57Z
207.171.7.59
sha1:R3GJEZ6VXWRYIU4RRD4DNV4DNT2N5K2D
<urn:uuid:45944ba8-cc45-42e1-8ea2-577782ddfea5>
http://search.cpan.org/~fredericd/Koha-Contrib-Tamil-0.031/bin/koha-cloud
response
<urn:uuid:20b8c01a-fd16-4301-9ff7-bc2a17d4a9bd>
robots: classic
hostname: ip-10-185-27-174.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-30
operator: CommonCrawl Admin
description: Wide crawl of the web for July 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf