rem: var primaryType = BookmarksUtils.resolveType(resource).split("#")[1]; if (primaryType == "Folder") { if (resource.Value == "NC:PersonalToolbarFolder") primaryType = "PersonalToolbarFolder"; else { var folderGroupArc = RDF.GetResource(NC_NAMESPACE_URI+"FolderGroup"); var isFolderGroup  = Bookmarks.GetTarget(resource, folderGroupArc, true); if (isFolderGroup) primaryType = "FolderGroup"; } } 
add: var primaryType = BookmarksUtils.resolveType(resource); 
context: function showDescription(){  gBookmarkURL = window.arguments[0];  var resource = RDF.GetResource(gBookmarkURL);  // Check the description  var primaryType = BookmarksUtils.resolveType(resource).split("#")[1];  if (primaryType == "Folder") {    if (resource.Value == "NC:PersonalToolbarFolder")      primaryType = "PersonalToolbarFolder";    else {      var folderGroupArc = RDF.GetResource(NC_NAMESPACE_URI+"FolderGroup");      var isFolderGroup  = Bookmarks.GetTarget(resource, folderGroupArc, true);      if (isFolderGroup)        primaryType = "FolderGroup";    }  }  var description = BookmarksUtils.getLocaleString("description_"+primaryType);    var newBookmarkFolder = BookmarksUtils.getNewBookmarkFolder();  var newSearchFolder   = BookmarksUtils.getNewSearchFolder();  if (resource == newBookmarkFolder && resource == newSearchFolder)    description = description+" "+BookmarksUtils.getLocaleString("description_NewBookmarkAndSearchFolder")  else if (resource == newBookmarkFolder )    description = description+" "+BookmarksUtils.getLocaleString("description_NewBookmarkFolder")  else if (resource == newSearchFolder)    description = description+" "+BookmarksUtils.getLocaleString("description_NewSearchFolder");  var textNode = document.createTextNode(description);  document.getElementById("bookmarkDescription").appendChild(textNode);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/afc69e43ce5b826f63d563842369da64ecc5b106/bm-props.js/clean/xpfe/components/bookmarks/resources/bm-props.js