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

Add File Format Descriptions to XMLUI 1.5.x - ID: 2433852

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1

      Description

      This is a simple patch to replace the default MIME Types (e.g.
      "application/pdf") in the DSpace 1.5.x XMLUI with File Format Descriptions
      (e.g. "PDF").

      Although in past versions of DSpace these file format descriptions were
      resolved via the Bitstream Registry, access to this registry is constrained
      by the capabilities of METS. Therefore, this patch instead uses a mapping
      in your 'messages.xml' to resolve these file format descriptions. For
      example:

      <message key="xmlui.dri2xhtml.mimetype.application/pdf">PDF</message>

      If the above "mapping" exists in your messages.xml, this would map the MIME
      Type "application/pdf" to the description "PDF". If such a mapping doesn't
      exist in your messages.xml, then the MIME Type is displayed by default
      (making these changes backwards compatible with current XMLUI).

      Two patches are attached (made against latest version of SVN 1.5.x
      branch):

      • xmlui-format-General-Handler.patch
        (Patch for /themes/dri2xhtml/General-Handler.xsl)
      • xmlui-format-messages.patch
        (Patch for /i18n/messages.xml , English version)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kipkorir2008 Charles Kiplagat
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: