Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2572

Tables in XMLWorkflow have duplicate id and bad table markup

    XMLWordPrintable

    Details

    • Attachments:
      2
    • Comments:
      1

      Description

      In largish archives the tables on the submissions page can become long and unwieldy, but with Datatables.js they can be searched. There are some troubles with this page, that i have traced to "dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/xmlworkflow/Submissions.java"

      On the submissions page there are to tables with the same id, #aspect_xmlworkflow_Submissions_div_workflow-tasks.

      This is of course illegal and is making trouble for a DataTables.js config on this page.
      The button for claiming or returning tasks is also part of the table markup, which makes DataTables complain that there is a mismatch between columns in thead and tboby.

      Attached is the "dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/xmlworkflow/Submissions.java"-file that is running fine on the bora.uib.no test environment and the js for Datatables.

      The id's are changes and the button and "no tasks" message is moved out of the table.

      It might be done in a better way, I am not a Java coder :/.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tarje.lavik@ub.uib.no Tarje Sælen Lavik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: