Revision 3009
Added by Duane Costa over 18 years ago
src/edu/ucsb/nceas/metacat/advancedsearch/MetacatHelper.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
package edu.ucsb.nceas.metacat.advancedsearch; |
26 | 26 |
|
27 |
import javax.servlet.ServletContext; |
|
28 |
import javax.servlet.http.HttpServletRequest; |
|
29 |
import javax.servlet.http.HttpSession; |
|
27 | 30 |
|
31 |
|
|
28 | 32 |
/** |
29 | 33 |
* @author dcosta |
30 | 34 |
* |
... | ... | |
74 | 78 |
|
75 | 79 |
return metacatURL; |
76 | 80 |
} |
81 |
|
|
82 |
|
|
83 |
/** |
|
84 |
* Gets the relative path to the advancedsearchresults.jsp file. |
|
85 |
* |
|
86 |
* @return resultsJSP The relative path to the advanced search results JSP. |
|
87 |
*/ |
|
88 |
public String getResultsJSP() { |
|
89 |
String resultsJSP = "style/skins/default/advancedsearchresults.jsp"; |
|
90 |
|
|
91 |
return resultsJSP; |
|
92 |
} |
|
77 | 93 |
|
94 |
|
|
95 |
/** |
|
96 |
* Gets the path to the resultset XSL file. |
|
97 |
* |
|
98 |
* @param request The HttpServletRequest object. |
|
99 |
* @return xslPath The real path to the resultset XSL file. |
|
100 |
*/ |
|
101 |
public String getResultsetXSL(HttpServletRequest request) { |
|
102 |
HttpSession httpSession = request.getSession(); |
|
103 |
ServletContext servletContext = httpSession.getServletContext(); |
|
104 |
String xslPath = servletContext.getRealPath("style/common/resultset.xsl"); |
|
105 |
|
|
106 |
return xslPath; |
|
107 |
} |
|
108 |
|
|
78 | 109 |
} |
Also available in: Unified diff
Add new methods getResultsetXSL and getResultsJSP.