--- a/tool/run/plugins/basic/pluginSearch.java
+++ b/tool/run/plugins/basic/pluginSearch.java
@@ -29,6 +29,7 @@
import main.core;
import utils.html;
import www.RequestOrigin;
+import www.Table;
import www.WebRequest;
@@ -129,7 +130,7 @@
// searchListSPDX(core.components, searchTerm, "Library");
// look in products now
String matchProductName =
- searchListSPDX(core.products, searchTerm, "Products");
+ searchListSPDX(core.products, searchTerm, definition.nodeSoftware);
// compile all the results together
output = //matchComponentName
@@ -145,6 +146,7 @@
// add the grey text with a short summary
output =
html.div()
+ + html.br
+ html.textGrey(resultCounter + " results found")
// + utils.time.timeNumberToHumanReadable(timeElapsed)
//+ html.br
@@ -163,6 +165,10 @@
* Allows to perform the list on a specific list of
* SPDX array files. This is intended to make the distinction
* between the components and products
+ * @param list
+ * @param searchTerm
+ * @param title
+ * @return
*/
public String searchListSPDX(ArrayList list, String searchTerm,
String title){
@@ -192,7 +198,8 @@
// do we have any files to report?
if(fileCounter > 0){
String fileText = "";
-
+ int[] size = new int[]{18, 300};
+
// create the file list
for(Object fileObject : fileList){
FileInfo file = (FileInfo) fileObject;
@@ -238,15 +245,27 @@
+ html.textGrey(file.tagFilePath.toString());
}
+
+ String[] params = new String[]{iconFile,
+ html.linkNode(
+ file.tagFileName.toString(),
+ linkFileUID)
+ + fileDetails
+ };
+
+
fileText = fileText.concat(
- iconFile
- + html.linkNode(
- file.tagFileName.toString(),
- linkFileUID
- )
- + fileDetails
+ Table.alignedTable(params, size)
+// iconFile
+// + html.linkNode(
+// file.tagFileName.toString(),
+// linkFileUID)
+
+
+ "<code>" + filePath + "</code>"
- + html.br);
+ + html.br
+ + html.br
+ );
// file.print();
}
@@ -278,6 +297,7 @@
+fileDesc
+")</i> "
+ matchTitle
+ + html.br
+ html.br
+ "<div style=\"margin-left: 10px;\">"
//+ "<ul>"