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

Localization of default.license

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0, 6.1
    • Fix Version/s: None
    • Component/s: JSPUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      On the l10n wiki page is described, that the default license can be localized in jspui by adding a suffix. Looking at the code, it seems that the localized default license is only loaded in the LicenseEditServlet (I18nUtil.getDefaultLicense is only used there). During submission xmlui and jspui uses the same api method that uses this call graph and did not use the locale:

      JSPLicenseStep.doPreProcessing / LicenseStep.addBody
          LicenseUtils.getLicenseText(Locale locale, Collection collection,
                                      Item item, EPerson person)
          LicenseUtils.getLicenseText(Locale locale, Collection collection,
                                      Item item, EPerson eperson,
                                      Map<String, Object> additionalInfo)
          CollectionServiceImpl.getLicense(Collection collection)
          LicenseServiceImpl.getDefaultSubmissionLicense()
      

      So the default license is only localized in the edit license admin interface in jspui, not during submission. Besides the documentation issue, it may be confusing that the license in the admin interface is handled different from the license in the submission process.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sulfrian Alexander Sulfrian
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: