# Index generation
 SET(BBTK_INDEX_ALPHA_FILE ${BBTK_BBDOC_BUILD_PATH}/index-alpha.html)
 SET(BBTK_INDEX_PACKAGES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-package.html)
-SET(BBTK_INDEX_KEYWORDS_FILE ${BBTK_BBDOC_BUILD_PATH}/index-keyword.html)
+SET(BBTK_INDEX_CATEGORIES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-category.html)
 SET(INDEX_OUTPUT 
   ${BBTK_INDEX_ALPHA_FILE} ${BBTK_INDEX_PACKAGES_FILE} 
-  ${BBTK_INDEX_KEYWORDS_FILE}
+  ${BBTK_INDEX_CATEGORIES_FILE}
   )
 CONFIGURE_FILE(
   ${CMAKE_CURRENT_SOURCE_DIR}/make-index.bbs.in
 
 include *
 index @BBTK_INDEX_ALPHA_FILE@ Initials
 index @BBTK_INDEX_PACKAGES_FILE@ Packages
-index @BBTK_INDEX_KEYWORDS_FILE@ Keywords
+index @BBTK_INDEX_CATEGORIES_FILE@ Categories
 
 </small>
 <blockquote><small> </small></blockquote>
 <small><b></b></small><font size="2"><a target="information"
- href="../bbdoc/index-alpha.html">Alphabetical
-index</a><br>
-<a target="information" href="../bbdoc/index-package.html">Index by
+ href="../bbdoc/index-alpha.html">Alphabetical list</a><br>
+<a target="information" href="../bbdoc/index-package.html">List by
 package</a><br>
-<a target="information" href="../bbdoc/index-keyword.html">Index by
-keyword</a></font><br>
+<a target="information" href="../bbdoc/index-category.html">List by
+category</a></font><br>
 <ul>
 </ul>
 <hr style="width: 100%; height: 2px;"><small>
 
 Module:    $RCSfile: bbtkFactory.cxx,v $
 Language:  C++
 
-Date:      $Date: 2008/02/04 14:12:47 $
-Version:   $Revision: 1.11 $
+Date:      $Date: 2008/02/05 11:39:32 $
+Version:   $Revision: 1.12 $
                                                                                 
 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
                std::string k("");
                k += pack->GetName();
                keys.push_back(k);
-               title = "Index by package";
+               title = "List by package";
              }
            else if (type==Initials)
              {
                std::string init(" ");
                init[0] =  std::toupper(j->second->GetTypeName()[0]);
                keys.push_back(init);
-               title = "Alphabetical index";
+               title = "Alphabetical list";
              }
-           else if (type==Keywords)
+           else if (type==Categories)
              {
                // Split the keyword string 
-               //std::vector<std::string> keywords;
                std::string delimiters = ";,";
                Utilities::SplitString(j->second->GetKeyword(),
                                       delimiters,keys);
-               //std::vector<std::string>::iterator si;
-               //for (si=keywords.begin();si!=keywords.end;++si)
-               //  {
-               //    keys.push_back(*si);
-               //  }
-               title = "Index by keyword";
+               if (keys.size()==0) 
+                 keys.push_back(" NONE");
+               title = "List by category";
              }
            
            std::vector<std::string>::const_iterator k;
 
   Program:   bbtk
   Module:    $RCSfile: bbtkFactory.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/04 13:02:58 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/02/05 11:39:32 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
     typedef enum
       {
        Packages,
-       Keywords,
+       Categories,
        Initials
       }
       IndexEntryType;
 
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/02/05 11:07:42 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2008/02/05 11:39:32 $
+  Version:   $Revision: 1.23 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
     info.argmin = 0;
     info.argmax = 2;
     info.code = cIndex;
-    info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Keywords']]";
-    info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Keywords' is provided then the entries are either the package names or the keywords";
+    info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Categories']]";
+    info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Categories' is provided then the entries are either the packages names or the categories";
     mCommandDict[info.keyword] = info;
 
     info.keyword = "reset";  //EED
 {
   Factory::IndexEntryType t;
   if (type=="Initials") t = Factory::Initials;
-  else if (type=="Keywords") t = Factory::Keywords;
+  else if (type=="Categories") t = Factory::Categories;
   else if (type=="Packages") t = Factory::Packages;
   
   GetGlobalFactory()->CreateHtmlIndex(t,filename);