NCIOCPL / sitewide-search-app

App for Sitewide Search results pages
2 stars 0 forks source link

Support multiple sites for DOC collection #167

Closed sarinapadilla closed 1 year ago

sarinapadilla commented 1 year ago

Issue description

Description of the issue. NOTE: Determine if this change will impact existing piece(s) of documentation (e.g., comps, instruction files, etc.). If so, create a new ticket for the associated updates to be completed after Drupal development (or final stage) is completed.

ESTIMATE TBD

What's the expected change?

-

What's the current functionality?

-

What's the updated acceptance criteria?

Additional details / screenshot

Related Tickets

blairlearn commented 1 year ago

In order to preserve existing site configurations which only need a single site filter value, the searchSiteFilter configuration value is modified to be either a single string (e.g. "searchSiteFilter": "www.cancer.gov\/nano") or an array (e.g. "searchSiteFilter": ["dceg.cancer.gov","www.cancer.gov\/connect-prevention-study"])

In the application's initialize method, searchSiteFilter is converted to an array of strings if it isn't one already and that array is passed to the API as a list of query string parameters (e.g. site=dceg.cancer.gov&site=www.cancer.gov/connect-prevention-study)

santwuma commented 1 year ago

Closed by #171