Skip to content

Commit

Permalink
Result labels as list items
Browse files Browse the repository at this point in the history
Fix for issue #381226. Labels in the result list should be displayed as list labels and not a single list item separated by semicolon (;)
  • Loading branch information
bblaisATcoveo committed Dec 3, 2024
1 parent b6a3aeb commit 960a66c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,13 +869,9 @@ function updateResultListState( newState ) {
else {
author = result.raw.author;
}
if( params.isContextSearch ) {
author = author.replace( ';', ', ' );
}
else {
author = author.replace( ',', ';' );
author = author.replace( ';' , '</li> <li>' );
}

author = author.replaceAll( ';' , '</li> <li>' );
}
}

sectionNode.innerHTML = resultTemplateHTML
Expand Down

0 comments on commit 960a66c

Please sign in to comment.