? ? Pending

User tests: Successful: Unsuccessful:

avatar frankmayer
frankmayer
7 Jan 2017

New issue:
Positioning of highlighting was off sometimes when special characters were used.
Also the css padding for highlighting feels 'unnatural'.

Please look below for example images showing the before and after the patch.

Summary of Changes

  • [com_search] Refactoring + fixing results-highlighting
  • Fixed css sitewide to display highlight more naturally.

Testing Instructions

  1. Do not apply patch. Do some searches using words with ascii and non-ascii.
  2. Apply patch. Check that the correct words are highlighted.

Documentation Changes Required

None

Note: It would probably be better to make the functionality of highlighting reusable in it's own class. It then could also be reused from other parts of Joomla itself or extensions. It would also allow us to extend its functionality.
I would do that, in another PR, if this one gets merged.

Examples:

Notice the wrong positioning of the highlighting in the text at some places and the unnatural padding on the highlight. Both issues are fixed in the image after this one, where the patch is applied.

The word to search for, in these examples, was: Österreich

(image showing the issues)

screenshot-joomla-patch-tester-1 2017-01-07 03-59-27

(image showing issues fixed)

screenshot-joomla-patch-tester-1 2017-01-07 04-46-57

avatar frankmayer frankmayer - open - 7 Jan 2017
avatar frankmayer frankmayer - change - 7 Jan 2017
Status New Pending
avatar frankmayer frankmayer - edited - 7 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2017
Category Front End Templates (site)
avatar frankmayer frankmayer - change - 7 Jan 2017
The description was changed
avatar frankmayer frankmayer - edited - 7 Jan 2017
avatar frankmayer frankmayer - change - 7 Jan 2017
The description was changed
Labels Added: ?
avatar jsubri
jsubri - comment - 7 Jan 2017

This is a really nice improvement. see picture below

screen shot 2017-01-07 at 02 50 52


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar jsubri
jsubri - comment - 7 Jan 2017

I have tested this item successfully on a3946ac

Very welcome patch :-)
Thank you


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar jsubri jsubri - test_item - 7 Jan 2017 - Tested successfully
avatar frankmayer
frankmayer - comment - 7 Jan 2017

@jsubri thanks for testing and confirming it works correctly with French text

avatar frankmayer frankmayer - edited - 7 Jan 2017
avatar genesisfan
genesisfan - comment - 14 Jan 2017

I have tested this item ? unsuccessfully on a3946ac


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar genesisfan genesisfan - test_item - 14 Jan 2017 - Tested unsuccessfully
avatar frankmayer
frankmayer - comment - 14 Jan 2017

@genesisfan did this work without the patch? Could you post a screenshot without the patch?

avatar genesisfan
genesisfan - comment - 14 Jan 2017

@frankmayer with or without the patch, the search output stay the same. The non-ascii word is not highlighted.

avatar frankmayer
frankmayer - comment - 14 Jan 2017

@genesisfan Thank you for testing and finding this problem.
However, since the problem pre-existed and was not introduced by the patch, I would propose to create a separate issue for that. That way this specific improvement can be merged and a fix for the other issue can be worked on, after that.

avatar waader
waader - comment - 2 Feb 2017

I have tested this item successfully on a3946ac

Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar waader waader - test_item - 2 Feb 2017 - Tested successfully
avatar frankmayer
frankmayer - comment - 2 Feb 2017

So can this be merged then? The unsuccessful human test is not related to the fix this PR is proposing. Since another issue has already be created for that, I think it would be better to merge this PR in order to avoid conflicts in future work for the other issue.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Feb 2017

I have tested this item successfully on a3946ac


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 2 Feb 2017 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 5 Feb 2017

I have tested this item successfully on a3946ac

Issue confirmed,

Test successful - Works as described


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar coolcat-creations coolcat-creations - test_item - 5 Feb 2017 - Tested successfully
avatar joomlamarco
joomlamarco - comment - 5 Feb 2017

I have tested this item successfully on a3946ac

patch works as descripted.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13498.

avatar joomlamarco joomlamarco - test_item - 5 Feb 2017 - Tested successfully
avatar zero-24 zero-24 - change - 5 Feb 2017
Milestone Added:
Status Pending Ready to Commit
Labels Added: ?
avatar zero-24 zero-24 - change - 5 Feb 2017
Milestone Removed:
Status Ready to Commit Pending
avatar zero-24 zero-24 - edited - 5 Feb 2017
avatar zero-24 zero-24 - change - 5 Feb 2017
Status Pending Ready to Commit
avatar wilsonge wilsonge - change - 5 Feb 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-05 22:26:36
Closed_By wilsonge
Labels
avatar wilsonge wilsonge - close - 5 Feb 2017
avatar wilsonge wilsonge - merge - 5 Feb 2017

Add a Comment

Login with GitHub to post a comment