From: miker Date: Sat, 18 Sep 2010 01:58:25 +0000 (+0000) Subject: add facets to the ATOM feed link X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=218f39a0257618b58d07c455a45e723c3d910574;p=evergreen%2Fpines.git add facets to the ATOM feed link git-svn-id: svn://svn.open-ils.org/ILS/trunk@17803 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 025e7e9842..581d806771 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]);