Skip to content

Commit

Permalink
Query string normalization in GraphQL to mirror Doi model
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross committed Dec 4, 2023
1 parent 48ab25d commit b72fc21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/doi/graphql_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ def clean_query
.gsub(/rightsList/, "rights_list")\
.gsub(/fundingReferences/, "funding_references")\
.gsub(/geoLocations/, "geo_locations")\
.gsub(/version:/, "version_info:")\
.gsub(/landingPage/, "landing_page")\
.gsub(/contentUrl/, "content_url")\
.gsub(/citationCount/, "citation_count")\
.gsub(/viewCount/, "view_count")\
.gsub(/downloadCount/, "download_count")\
.gsub(/(publisher\.)(name|publisherIdentifier|publisherIdentifierScheme|schemeUri|lang)/, 'publisher_obj.\2')\
.gsub("/", "\\/")
else
""
Expand Down

0 comments on commit b72fc21

Please sign in to comment.