Opened 3 years ago

Closed 3 years ago

Last modified 17 months ago

#537 closed defect (fixed)

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

Reported by: pcampalani Owned by: pcampalani
Priority: major Milestone: 9.0
Component: secore Version: development
Keywords: add new definition Cc: dmisev
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 Changed 3 years ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 3 years ago by pcampalani

comment:3 Changed 3 years ago by pcampalani

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 Changed 3 years ago by dmisev

comment:5 Changed 17 months ago by bphamhuu

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.