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

Choose how the filename of a bitstream is generated when is requested for download

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      When an bitstream is downloaded, the original bitstream's name (dc.title metadata) is used to set the filename.
      This new feature lets set, in four different ways, how the filename is generated, by defining the following configuration options:

      • TITLE: set the filename with the bitstream original name (Bitstream.getName()).
      • DESCRIPTION: set the filename with the bitstream description (Bitstream.getDescription())
      • PARAMETER: set the filename with the parameter of the url. P.e.: in <dspace.url>/handle/<prefix>/<sufix>/<filename_in_url>?<sequence>..., the filename value is <filename_in_url>.
      • HANDLE: set the filename using the pattern <handlePrefix><handleSufix><bitstream_sequence>. P.e.: 123456789_325_2.

      If none of the previous options can be applied, then the generic name 'bitstream' is used.

      Once the download request is processed, the filename will be set in the element "Content-Disposition" of the HTTP response header. To do this, a little modification was made to ensure that the "Content-Disposition" element be always generated.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            adorno.facundo Facundo Gabriel Adorno (sedici.unlp.edu.ar)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: