The display of groups, users and tags on search lozenges is inconsistent in two ways:
- Sometimes the single-word usernames are shown and sometimes the multi-word user display names
- Sometimes they are wrapped in quotes and sometimes not
Also, group names are shown in lozenges but what you have to actually type into the search box if trying to create a group lozenge by typing manually is the group's pubid not its name.
Currently If I go to a user's search page their display name (if they have one) is shown in the lozenge:
But if I go to a group's page, the usernames in the sidebar use the usernames not the display names:
Also the lozenge that gets created if I click on one of those usernames will show the username not the displayname (this is a difference between lozenges that are rendered server-side, and ones that are created by JavaScript):
If I wanted to manually type in a lozenge for this use I would have to type in user:seanh
, neither user:Sean Hammond
nor user:"Sean Hammond"
would work.
If I go to a group's page then the group's name is displayed in the lozenge, without quotes:
But if I create a lozenge for this group by selecting it from the dropdown menu then it does have quotes around the name, and then when I hit Enter
to submit the search the quotes disappear:
If trying to manually type in a lozenge for this group, neither group:Hypothesis Reading
nor group:"Hypothesis Reading"
would work, I'd need to type in group:xyz123
.
Tag lozenges created by selecting a tag suggestion from the dropdown menu, do not have quotes around the tag:
Also when tags are shown in the sidebar, and when tag lozenges are added to the search query by selecting one from the sidebar - they are always displayed without quotes/
If I wanted to type in a multi-word tag facet though, I would have to use quotes tag:"multi word tag"
and then it would be rendered with quotes:
The existence of such a multi-word tag seems to break the sidebar:
I haven't tested how multi-word tags are displayed in the dropdown menu, or what happens when you click on one from the dropdown menu.