BibApp/BibApp — Issue #47: exclude some keywords from keyword cloud
Author: hading
Created: 2011-10-26 19:58:44+00:00
State: open

jstirnaman has some code in his branch (see announcement below) to support hiding some keywords in the keyword cloud. Others appear interested in this, so it may be worth adding it to the master Bibapp.

I do think it would be useful in some circumstances.

We ought to be able to start with his code (see commit # below) and make any necessary modifications.

----

Re-revisiting....
Hiding specific common keywords is a local requirement we have for increasing relevance and other reasons.
In my own kumc-rails-3 branch, I've updated support for hiding keywords from the Keyword Cloud. I've added a new $KEYWORDS_TO_HIDE variable in Personalize.rb and a few lines to keyword_cloud_helper to match and exclude the specified keyword patterns.
https://github.com/jstirnaman/BibApp/commit/ca648fc6e7b3a5dcefe4d99e8f899f371e76e565

The new Personalize.rb lines look like this:

####
# Hide Specific Keywords
#
# Pipe-delimited list of patterns that you wish to prevent displaying
# in the Keyword Cloud.
# This setting only affects the Keyword Cloud and does not affect
# which keywords are exported.
# The example below would match "Human", "Humans", "Mice", "Mice, Inbred"
# ex. $KEYWORDS_TO_HIDE = "Human|Mice"
#
####
$KEYWORDS_TO_HIDE = ""