Modifying 'Modify Search'

21 views
Skip to first unread message

Bridger Dyson-Smith

unread,
Aug 30, 2012, 10:57:53 AM8/30/12
to XTF Users List
Hi all -- 

I've been wondering about modifying the URL string that is passed back to the Search page from the Modify Search link. My goal is to allow users to Browse > select a facet > then Modify Search to perform keyword searching on the selected facet [1]. 

Currently the values passed back to the Search Page are something like:
localhost:8080/xtf/search?f1-subject=Subject;smode=simple-modify

I'm thinking that adding a bit of replace() to the right spot should change that f1-subject to subject and return keywords + facet. It's the right spot that's causing some problems for me.

format-query.xsl (style/crossQuery/resultFormatter/common/) *seems* like it might be right, but I'm not sure.
Any suggestions would be most appreciated! Is this a ridiculous idea? 

Thanks!
Bridger

[1] The driving idea behind this is being able to deliver multiple collections in XTF, and allow users to constrain searches to specific collections. It looks like Advanced and/or Freeform search might offer this, but I was hoping to make it more transparent. 




Bridger Dyson-Smith

unread,
Sep 6, 2012, 1:32:13 PM9/6/12
to XTF Users List
Thrashing around in stylesheets will occasionally yield results for me -- not this time. It looks like format-query.xsl *isn't* the place to do this sort of string modification. I'm tinkering in style/xtfCommon/xtfCommon.xsl now, but I'm still not quite sure about this.

Thanks again!
Cheers,
Bridger
Reply all
Reply to author
Forward
0 new messages