Browse Source

* suppress keyword if seealso is assigned. Fix for code that is scheduled to be rewritten.

git-svn-id: trunk@39793 -
marco 6 years ago
parent
commit
5e7e4814d9
1 changed files with 3 additions and 5 deletions
  1. 3 5
      packages/chm/src/chmsitemap.pas

+ 3 - 5
packages/chm/src/chmsitemap.pas

@@ -253,10 +253,8 @@ begin
            begin
             if (FLevel > 0 ) then 
              begin
-
-              if LowerCase(GetTagName(AActualTag)) = 'param' then begin
-
-                TagAttributeName := GetVal(AActualTag, 'name');
+                if LowerCase(GetTagName(AActualTag)) = 'param' then begin
+                  TagAttributeName := GetVal(AActualTag, 'name');
                 TagAttributeValue := GetVal(AActualTag, 'value');
                 //writeln('name,value',tagattributename, ' ',tagattributevalue);
                 if TagAttributeName <> '' then begin
@@ -424,7 +422,7 @@ var
       WriteString('<LI> <OBJECT type="text/sitemap">');
       Inc(Indent, 8);
 
-      if (SiteMapType = stIndex) and (Item.Children.Count > 0) then
+      if (SiteMapType = stIndex) and ((Item.Children.Count > 0) or (item.seealso<>'')) then
          WriteParam('Keyword', Item.Text);
       //if Item.KeyWord <> '' then WriteParam('Keyword', Item.KeyWord);
       if Item.Text <> '' then WriteParam('Name', Item.Text);