|
33 | 33 | import org.silverpeas.components.kmelia.model.KmeliaPublication;
|
34 | 34 | import org.silverpeas.components.kmelia.model.KmeliaPublicationComparator;
|
35 | 35 | import org.silverpeas.components.kmelia.model.TopicDetail;
|
36 |
| -import org.silverpeas.components.kmelia.model.TopicSearch; |
37 |
| -import org.silverpeas.components.kmelia.search.KmeliaSearchServiceProvider; |
38 | 36 | import org.silverpeas.components.kmelia.service.KmeliaHelper;
|
39 | 37 | import org.silverpeas.core.ResourceReference;
|
40 | 38 | import org.silverpeas.core.admin.component.model.ComponentInstLight;
|
@@ -199,8 +197,6 @@ public void doPost(HttpServletRequest req, HttpServletResponse res)
|
199 | 197 | publications = kmeliaSC.getSessionPublicationsList();
|
200 | 198 | role = SilverpeasRole.user.toString();
|
201 | 199 | } else if (searchInProgress) {
|
202 |
| - // Insert this new search inside persistence layer in order to compute statistics |
203 |
| - saveTopicSearch(componentId, nodeId, kmeliaSC, query); |
204 | 200 | publications = kmeliaSC.search(query);
|
205 | 201 | } else {
|
206 | 202 | publications = kmeliaSC.getSessionPublicationsList();
|
@@ -249,25 +245,6 @@ public void doPost(HttpServletRequest req, HttpServletResponse res)
|
249 | 245 | }
|
250 | 246 | }
|
251 | 247 |
|
252 |
| - /** |
253 |
| - * Save current topic search inside persistence layer |
254 |
| - * @param componentId the component identifier |
255 |
| - * @param nodeId the node identifier |
256 |
| - * @param kmeliaSC the KmeliaSessionController |
257 |
| - * @param query the topic search query keywords |
258 |
| - */ |
259 |
| - private void saveTopicSearch(String componentId, String nodeId, KmeliaSessionController kmeliaSC, |
260 |
| - String query) { |
261 |
| - //Check node value |
262 |
| - if (!StringUtil.isDefined(nodeId)) { |
263 |
| - nodeId = kmeliaSC.getCurrentFolderId(); |
264 |
| - } |
265 |
| - TopicSearch newTS = new TopicSearch(componentId, Integer.parseInt(nodeId), |
266 |
| - Integer.parseInt(kmeliaSC.getUserId()), kmeliaSC.getLanguage(), query.toLowerCase(), |
267 |
| - new Date()); |
268 |
| - KmeliaSearchServiceProvider.getTopicSearchService().createTopicSearch(newTS); |
269 |
| - } |
270 |
| - |
271 | 248 | /**
|
272 | 249 | * @param allPubs
|
273 | 250 | * @param sortAllowed
|
@@ -345,8 +322,6 @@ private void displayPublications(List<KmeliaPublication> allPubs, boolean sortAl
|
345 | 322 | highlightClass = "highlight";
|
346 | 323 | }
|
347 | 324 |
|
348 |
| - out.write("<!-- Publication Body -->"); |
349 |
| - |
350 | 325 | if (pub.getStatus() != null && pub.isValid()) {
|
351 | 326 | if (pub.haveGotClone() && CLONE_STATUS.equals(pub.getCloneStatus()) && !user.isInRole(profile)) {
|
352 | 327 | pubColor = "blue";
|
@@ -467,6 +442,7 @@ private void displayPublications(List<KmeliaPublication> allPubs, boolean sortAl
|
467 | 442 | displayFragmentOfPublication(specificTemplateUsed, aPub, fragmentSettings, language,
|
468 | 443 | currentUserId, currentTopicId, kmeliaScc, resources, out);
|
469 | 444 | out.write("</div>");
|
| 445 | + out.write("</li>"); |
470 | 446 | }
|
471 | 447 | out.write("</ul>");
|
472 | 448 |
|
|
0 commit comments