imls-dmt / imls-dmt-api

imls-dmt-api
Apache License 2.0
1 stars 1 forks source link

Fix provided ed_framework keyname in resource results facet JSON element #60

Closed karlbenedict closed 3 years ago

karlbenedict commented 4 years ago

In parsing the resource search results JSON object I found that there is a key mismatch for the ed_frameworks element of the facets element. Specifically, the facet key is ed_frameworks, but it should be ed_frameworks.name as that is the corresponding key that should be used in query composition. Since the values that are being returned are the name elements within the ed_frameworks object they should be labeled using the platform's "dot" naming convention. This will allow for the proper autogeneration of the client facets with the correct key to use when building a search that includes the ed_frameworks.name key.

In its current state this key error is contributing to a client error in which auto-generated searches that include the ed_frameworks key return 0 results.

image