Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#537 closed defect (fixed)

"Add a new entry at this level" functionality does not show up anymore

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: major Milestone: 9.0
Component: secore Version: development
Keywords: add new definition Cc: Dimitar Misev
Complexity: Medium

Description

When browsing the definition tree of SECORE it was possible to add a new definition via a clickable "Add a new entry at this level" line.
E.g. see: http://kahlua.eecs.jacobs-university.de:8080/def/crs/ISO/0/browse.jsp

These modifications in ./secore/secore-web/web/WEB-INF/browse.jsp (changeset:5bf563a) may have broken it:

+      // sort elements at this level in a tree set
+      Pair<Boolean, Set<Pair<String, Boolean>>> res = SecoreUtil.sortElements(url, result);
       // Show the link for creating new elements at the bottom of the hierarchy
-      if (bottom) {
-          out.println("<span style=\"font-size:x-large;\"><a href='" + url + Constants.ADMIN_FILE + Constants.FRAGMENT_SEPARATOR + "add=true'>Add a new entr
+      if (res.fst) {
+        out.println("<span style=\"font-size:x-large;\"><a href='"
+            + url + Constants.ADMIN_FILE + Constants.FRAGMENT_SEPARATOR
+            + "add=true'>Add a new entry at this level:</a></span><br/>");

Change History (5)

comment:1 by Dimitar Misev, 11 years ago

Resolution: fixed
Status: newclosed

comment:3 by Piero Campalani, 11 years ago

Dimitar: are you sure you can add a new definition?
I always get this exception:

org.basex.core.BaseXException: Stopped at line 23, column 19:
[XUDY0027] Replace target must not be empty.

comment:4 by Dimitar Misev, 11 years ago

comment:5 by Bang Pham Huu, 9 years ago

I cannot add New entry in SECORE "http://kahlua.eecs.jacobs-university.de:8080/def/crs/browse.jsp#add=true", it just append "#add=true" and do nothing. Also the error is the same when update an entry by "save" (update entry).

http://localhost:8088/def/axis-name/EPSG/0/9902/browse.jsp

org.basex.core.BaseXException: Stopped at line 15, column 16:
[XUDY0027] Replace target must not be empty.

This ticket will not be opened but let Dimitar know that it also noticed in http://www.rasdaman.org/ticket/994 as it relate to this ticket and I'm doing with this problem.

Note: See TracTickets for help on using tickets.