Uploaded image for project: 'mod-eusage-reports'
  1. mod-eusage-reports
  2. MODEUR-150

Update URL/query used to fetch titles from erm

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • 2.0.0
    • None
    • Leipzig Sprint 163, Leipzig Sprint 164
    • Leipzig
    • TBD

    Description

      The current way of retrieving titles from erm is not optimal, as the way its currently implemented inĀ EusageReportsApi.java#L497 is not searching specifically for a resource with an ISSN of 1557-7341 but actually for a resource with an identifier of 1557-7341 where that resource has at least one identifier in the ISSN namespace.
      That is - these two criteria would act separately then be combined with AND. This is a subtle difference of course and in most cases will work for ISSN because their format is so specific.

      Instead the following contruct should be used:

      String uri = "/erm/titles?"
              + "filters=(identifiers.identifier.ns.value%3D%3D" + type
              + "%26%26identifiers.identifier.value%3D%3D" + identifier + ")";
      

      Also:

      /erm/titles works exactly the same as /erm/resource but will only search titles (where /erm/resource searches both titles and packages together). The request parameters and response format are exactly the same

      Also:

      The support for the new grouping syntax in search is only available with 6.0 upwards

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Tino Ryll Tino Ryll
                Tino Ryll Tino Ryll
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases