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

OpenSearch autolink shown in XMLUI even if OpenSearch not enabled

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Not Required

      Description

      Whether or not the OpenSearch autolink is included in XMLUI pages is controlled by the websvc.opensearch.autolink setting. If that setting is true (the default), the OpenSearch link is included even when OpenSearch is disabled (websvc.opensearch.enable = false, the default).

      Browsers (eg Firefox) offer users to add a custom search engine for the repository based on the autodiscovered OpenSearch description. When the user attempts to add the search engine while OpenSearch is disabled, the user will see an error message ("Firefox could not download the search plugin from: [URL to repo OpenSearch description]").

      Presumably this can be fixed by changing the logic here:
      https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/viewArtifacts/Navigation.java#L127
      to only include the autolink information when OpenSearch and autolinking are both enabled.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              schweer Andrea Schweer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: