Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-15760

sortable time-stamps in portfolio XML (milliseconds, ISO 8601) would be very useful

    XMLWordPrintable

Details

    • Feature Request
    • Status: CLOSED
    • Minor
    • Resolution: Won't Fix
    • 2.5.4, 2.6.0
    • None
    • None
    • all (our sandbox is debian 4.0, tomcat 5.5.27, sakai 2.6.x -r56277)
    • Hide

      1. Create a matrix, attach some artifacts as a participant, fill out a reflection, submit for evaluation and get an evaluation
      2. Create a pass-through template that expects a matrix and includes any old file as a presentationFiles item (step 4 of 4 when building the template)
      3. Check the resulting XML when opening the portfolio, for both end-user //attachments/attachment, pageForms/pageForm, reflections + evaluations, and presentationFiles items. Should contain the new time-stamp fields!

      Show
      1. Create a matrix, attach some artifacts as a participant, fill out a reflection, submit for evaluation and get an evaluation 2. Create a pass-through template that expects a matrix and includes any old file as a presentationFiles item (step 4 of 4 when building the template) 3. Check the resulting XML when opening the portfolio, for both end-user //attachments/attachment, pageForms/pageForm, reflections + evaluations, and presentationFiles items. Should contain the new time-stamp fields!

    Description

      In portfolios, rendered through XSL templates, sorting artifacts or feedback/evaluation forms based on time-of-creation would be quite a boon!

      Current timestamps for artifacts presently look like this:

      <repositoryNode>
      <created>Tue Jul 31 23:28:55 CDT 2007</created>
      <modified>Tue Jul 31 23:28:55 CDT 2007</modified>
      </repositoryNode>

      Why not add a sortable timestamp field like this?

      <repositoryNode>
      <created>Tue Jul 31 23:28:55 CDT 2007</created>
      <createdTimeStamp>1185942535501</createdTimeStamp>
      <modified>Tue Jul 31 23:28:55 CDT 2007</modified>
      <modifiedTimeStamp>1185942535586</modifiedTimeStamp>
      </repositoryNode>

      A change like this requires very little new code in ContentHostingUtil.createRepoNode() – e.g.:

      if (created != null)

      { repositoryNode.addContent(createNode("created", created.toString())); /* new line of code below: */ repositoryNode.addContent( createNode("createdTimeStamp", Long.toString( created.getTime() )) ); }

      An alternative is to go ISO 8601 instead...

      Gliffy Diagrams

        Zeplin

          Attachments

            Activity

              People

                osp-jira OSP Jira Team (Inactive)
                trillich will trillich (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Git Integration