[open-ils-commits] r17803 - trunk/Open-ILS/web/opac/skin/default/js (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 17 21:58:27 EDT 2010
Author: miker
Date: 2010-09-17 21:58:25 -0400 (Fri, 17 Sep 2010)
New Revision: 17803
Modified:
trunk/Open-ILS/web/opac/skin/default/js/result_common.js
Log:
add facets to the ATOM feed link
Modified: trunk/Open-ILS/web/opac/skin/default/js/result_common.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/result_common.js 2010-09-18 01:47:15 UTC (rev 17802)
+++ trunk/Open-ILS/web/opac/skin/default/js/result_common.js 2010-09-18 01:58:25 UTC (rev 17803)
@@ -94,6 +94,7 @@
_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]);
More information about the open-ils-commits
mailing list