HIPpie "Did you mean?" ready for testing (again!)
posted in HIPpie, misc |A thousand apologies to those of you who've been waiting for HIPpie to reach the testing phase — has it really been 6 months since I last posted anything?! HIPpie was/is a project that I'll be doing in my spare time and, unfortunately, since Christmas, my spare time has been taken up with everything but working on HIPpie!
Anyway, having realised that it's so long since I posted anything, I was shamed into making some time and I'm now at the stage where some brave HIP 3.x library can alpha test the spellchecker code. Ideally you want to be doing this on a test HIP 3.x server, unless you're feeling particularly reckless.
The usual caveats apply — make sure you safely back up any files you edit and you promise not to hold me responsible if your server room mysteriously burns down shortly after you add the code. Also, altering your XSL stylesheets may have an impact on what support SirsiDynix will be able to give you.
To test the code, you'll need to edit the searchinput.xsl stylesheet. Once you've found the file, make a safe backup before you make the changes! Open up the file and scroll down to around line 580 — you should see a <center> tag. After that tag, you need to insert (i.e. copy & paste) in the contents of this file:
Save the altered file and give your HIP server a minute to pick up the altered stylesheet. Now fire up a web browser and run a search for a misspelled word. If you get an error message, then double-check the changes you made to the stylesheet and, if all else fails, you can revert back to your backed up version. Touch wood, you should get a "did you mean" suggestion which looks like this:

If you do test the code, please feed back!
Notes
This test version of the code is using a fairly small American dictionary of words, so you may not get appropriate suggestions for your locale.

posted on July 1st, 2008 at 11:53 pm
posted on July 2nd, 2008 at 7:44 am
posted on July 2nd, 2008 at 10:02 am
posted on July 2nd, 2008 at 10:13 am
posted on July 2nd, 2008 at 10:23 am
posted on July 2nd, 2008 at 4:05 pm
posted on July 2nd, 2008 at 6:53 pm
posted on July 3rd, 2008 at 12:12 am
posted on July 3rd, 2008 at 6:40 am
posted on July 3rd, 2008 at 3:07 pm
posted on July 3rd, 2008 at 3:42 pm
posted on July 3rd, 2008 at 8:52 pm
posted on July 3rd, 2008 at 9:09 pm
posted on July 4th, 2008 at 3:55 pm
posted on September 16th, 2008 at 2:41 pm
posted on September 16th, 2008 at 3:52 pm
posted on September 16th, 2008 at 6:26 pm
posted on November 18th, 2008 at 7:17 am