You are here

README.txt in Taxonomy dupecheck 6

Same filename and directory in other branches
  1. 7 README.txt
// $Id$

CONTENTS OF THIS FILE
---------------------

* Introduction
* Installation
* Design Decisions

INTRODUCTION
------------

Current maintainer: Karen Ziv <me@karenziv.com>

Taxonomy dupecheck module prevents Drupal administrators from adding duplicate
taxonomy vocabularies and/or terms. It's helpful when entering large amounts
of terms or vocabularies in situations where each value must be unique. This
saves time by preventing administrators from having to enforce a unique value
policy through later cleanup of duplicate terms.

The module provides a configuration screen allowing administrators to choose
which should be unique: taxonomy terms, vocabularies or both. It defaults to
case-insensitive comparisons, with an option to change to case-sensitive. Both
stored and input terms/vocabularies are trimmed before comparison to handle
cases such as 'foo ' and 'foo'. Based on the settings, the user will see an
error message when adding a duplicate value.

INSTALLATION
------------

There are no special requirements for this module; installation uses the
standard Drupal process. If you're reading this, you've likely already
correctly installed this module.

1. Download the module from drupal.org.
2. Untar the archive into your modules directory.
3. Go to Admin > Site building > Modules and enable the Taxonomy dupecheck module.
4. Configure settings at Admin > Site configuration > Taxonomy dupecheck.

DESIGN DECISIONS
----------------

This module works by hooking into the taxonomy term and vocabulary admin
forms. Ideally, this would have happened instead in hook_taxonomy, but
this hook doesn't allow you to stop the save process, only run other tasks
based on the term/vocabulary info. This means that if you call
taxonomy_save_term or taxonomy_save_vocabulary programmatically, this
validation won't happen.

Note that the default comparison is case-insensitive. That is,
'foo' and 'Foo' will be considered duplicates. Case sensitivity can be
configured in the admin configuration (see INSTALLATION).

Also, all strings--stored and input--are trimmed before comparison. This is
not an option because no valid use case for values with preceding or trailing
spaces in term/vocabulary was found at the time of the design to add this
functionality. If this becomes problematic, please make a feature request
and it can be added as an option.

File

README.txt
View source
  1. // $Id$
  2. CONTENTS OF THIS FILE
  3. ---------------------
  4. * Introduction
  5. * Installation
  6. * Design Decisions
  7. INTRODUCTION
  8. ------------
  9. Current maintainer: Karen Ziv
  10. Taxonomy dupecheck module prevents Drupal administrators from adding duplicate
  11. taxonomy vocabularies and/or terms. It's helpful when entering large amounts
  12. of terms or vocabularies in situations where each value must be unique. This
  13. saves time by preventing administrators from having to enforce a unique value
  14. policy through later cleanup of duplicate terms.
  15. The module provides a configuration screen allowing administrators to choose
  16. which should be unique: taxonomy terms, vocabularies or both. It defaults to
  17. case-insensitive comparisons, with an option to change to case-sensitive. Both
  18. stored and input terms/vocabularies are trimmed before comparison to handle
  19. cases such as 'foo ' and 'foo'. Based on the settings, the user will see an
  20. error message when adding a duplicate value.
  21. INSTALLATION
  22. ------------
  23. There are no special requirements for this module; installation uses the
  24. standard Drupal process. If you're reading this, you've likely already
  25. correctly installed this module.
  26. 1. Download the module from drupal.org.
  27. 2. Untar the archive into your modules directory.
  28. 3. Go to Admin > Site building > Modules and enable the Taxonomy dupecheck module.
  29. 4. Configure settings at Admin > Site configuration > Taxonomy dupecheck.
  30. DESIGN DECISIONS
  31. ----------------
  32. This module works by hooking into the taxonomy term and vocabulary admin
  33. forms. Ideally, this would have happened instead in hook_taxonomy, but
  34. this hook doesn't allow you to stop the save process, only run other tasks
  35. based on the term/vocabulary info. This means that if you call
  36. taxonomy_save_term or taxonomy_save_vocabulary programmatically, this
  37. validation won't happen.
  38. Note that the default comparison is case-insensitive. That is,
  39. 'foo' and 'Foo' will be considered duplicates. Case sensitivity can be
  40. configured in the admin configuration (see INSTALLATION).
  41. Also, all strings--stored and input--are trimmed before comparison. This is
  42. not an option because no valid use case for values with preceding or trailing
  43. spaces in term/vocabulary was found at the time of the design to add this
  44. functionality. If this becomes problematic, please make a feature request
  45. and it can be added as an option.