From 4bbefdb0600b6ae3d4c05744a1de256e0c1d4446 Mon Sep 17 00:00:00 2001 From: "rjc%netscape.com" Date: Sun, 22 Aug 1999 12:45:27 +0000 Subject: [PATCH] Set a BASE TARGET and a default FONT POINT-SIZE. --- suite/common/search/internetresults.js | 11 +++++++++-- xpfe/components/search/resources/internetresults.js | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/suite/common/search/internetresults.js b/suite/common/search/internetresults.js index 0efb54742e0..d5309b69841 100644 --- a/suite/common/search/internetresults.js +++ b/suite/common/search/internetresults.js @@ -14,9 +14,14 @@ function doClick(node) if (internetSearchStore) { var src = rdf.GetResource(theID, true); +// var urlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true); var bannerProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#Banner", true); var htmlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#HTML", true); - +/* + var url = internetSearchStore.GetTarget(src, urlProperty, true); + if (url) url = url.QueryInterface(Components.interfaces.nsIRDFLiteral); + if (url) url = url.Value; +*/ var banner = internetSearchStore.GetTarget(src, bannerProperty, true); if (banner) banner = banner.QueryInterface(Components.interfaces.nsIRDFLiteral); if (banner) banner = banner.Value; @@ -26,13 +31,15 @@ function doClick(node) if (target) target = target.Value; if (target) { - var text = ""; + var text = ""; + if (banner) { // add a and a
just in case text += banner + "
"; } text += target; + text += "
" var doc = window.frames[0].document; doc.open("text/html", "replace"); diff --git a/xpfe/components/search/resources/internetresults.js b/xpfe/components/search/resources/internetresults.js index 0efb54742e0..d5309b69841 100644 --- a/xpfe/components/search/resources/internetresults.js +++ b/xpfe/components/search/resources/internetresults.js @@ -14,9 +14,14 @@ function doClick(node) if (internetSearchStore) { var src = rdf.GetResource(theID, true); +// var urlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true); var bannerProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#Banner", true); var htmlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#HTML", true); - +/* + var url = internetSearchStore.GetTarget(src, urlProperty, true); + if (url) url = url.QueryInterface(Components.interfaces.nsIRDFLiteral); + if (url) url = url.Value; +*/ var banner = internetSearchStore.GetTarget(src, bannerProperty, true); if (banner) banner = banner.QueryInterface(Components.interfaces.nsIRDFLiteral); if (banner) banner = banner.Value; @@ -26,13 +31,15 @@ function doClick(node) if (target) target = target.Value; if (target) { - var text = ""; + var text = ""; + if (banner) { // add a and a
just in case text += banner + "
"; } text += target; + text += "
" var doc = window.frames[0].document; doc.open("text/html", "replace");