Closed hoodriverheather closed 1 year ago
@hoodriverheather I've got some big changes for this, building on #219.
First, a reminder: for every search result:
abstract
, it's shown as the summary in the search resultsdescription
, it's shownsearch_description
(which is also used for SEO), it's shownWhenever anyone edits a web page, they should go to the "Promote" tab and type in an SEO summary, which goes into the search_description
.
Biomarkers tend to have a description
. Protocols tend to have either abstract
, or description
but sometimes both. Other knowledge environment objects tend not to have either. I've been adding the SEO search_description
here and there to generic web pages.
With the fix to this issue, there are some new features:
search_description
is now "{name} is {article} {edrn_title} of the Early Detection Research Network" where {name} is their casual name (first, last), {article} is "a" or "an", and {edrn_title} is their edrnTitle
RDF field, which may be "principal investigator", "primary admin staff", "other lab staff", etc. If there's no edrnTitle RDF field, the generic text from #219 is used ("{name} is a member of …").search_description
is now "{name} is {member_type} of the Early Detection Research Network" where {name} is the site name, and {member_type} is "a SPORE site", "a Biomarker Reference Laboratory", "an Associate site", etc. If the member type is anything that cannot otherwise be determined, the default from #219 is used ("{name} is a site belonging to the …").search_description
is now "{name} is {article} {kind} of the Early Detection Research Network" where {name} is the protocol name, {article} is "a" or "an", and {kind} is "Validation study", "Single protocol", "Reference set", etc. If the RDF says, "Other specify", then the generic text from #219 is used ("is a protocol, project, or study of the …")
🤔 Tell Us About the Feature
Add additional rules to populate text for the search descriptions. For sites, protocols, people, etc.
For example, when a user enters "Fred Hutch" in the search text on the portal, the search results show multiple Fred Hutchinson sites. It would be nice to add a more informative text in the description for the site using the Member Type. If that's blank or missing then use the more generic description "Fred Hutchinson Cancer Center is a site belonging to the EDRN"
For protocol we could use the Protocol/Project Type if it exists and we can get this from the DMCC SOAP API. For person - use EDRN title.