From 218f39a0257618b58d07c455a45e723c3d910574 Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 18 Sep 2010 01:58:25 +0000 Subject: [PATCH] add facets to the ATOM feed link git-svn-id: svn://svn.open-ils.org/ILS/trunk@17803 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/result_common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/opac/skin/default/js/result_common.js b/Open-ILS/web/opac/skin/default/js/result_common.js index 025e7e984..581d80677 100644 --- a/Open-ILS/web/opac/skin/default/js/result_common.js +++ b/Open-ILS/web/opac/skin/default/js/result_common.js @@ -94,6 +94,7 @@ function resultCollectSearchIds( type, method, handler ) { _debug('Raw query: ' + getTerm()); var atomfeed = "/opac/extras/opensearch/1.1/" + findOrgUnit(args.org_unit).shortname() + "/atom-full/" + getStype() + '?searchTerms=' + getTerm(); + if (args.facets) { atomfeed += ' ' + args.facets; } if (sort) { atomfeed += '&searchSort=' + sort; } if (sortdir) { atomfeed += '&searchSortDir=' + sortdir; } dojo.create('link', {"rel":"alternate", "href":atomfeed, "type":"application/atom+xml"}, dojo.query('head')[0]); -- 2.11.0