On Mon, Oct 17, 2011 at 12:32 PM, Whalen, Liam <[email protected]> wrote: > We are running Evergreen 2.0.8. Right now I am using the OpenSearch > functionality to create an RSS feed of items that are new to the OPAC. Here > is the URL I am using. > > http://catalogue.nrcan.gc.ca/opac/extras/opensearch/1.1/-/rss2-full?searchTerms=item_type%28a%20||%20t%29%20sort%28create_date%29%23descending > > This produces 10 links that go to a card catalogue type output that provides > information about these items. One such link looks like this: > > http://catalogue.nrcan.gc.ca/opac/extras/unapi?id=tag:open-ils.org,2011-10-14:biblio-record_entry/8226825/-&format=htmlholdings-full > > We would prefer the rss2-full links to go directly to our re-skinned OPAC > instead of the card catalogue type output. > > I've noticed that if I change &format=htmlholdings-full to &format=opac, then > the links resolve to the default skin OPAC. So, I have two questions. > > What do I have to change in my first URL, the opensearch URL, in order to > make it default to links that have &format=opac instead of > &format=htmlholdings-full?
If you're controlling the RSS consumer, you can simply look at the <link> with @rel=opac ... however, if you're not, then you'll need to change the code. > > Second, what do I have to change to make the &format=opac links use our > reskinned OPAC rather than the default skin OPAC? > And for this, you'll definitely need to change the code. Both can be addressed in OpenILS/WWW/SuperCat.pm around line 1481. First, swap the opac and alternate params to the $node->link calls on 1480 and 1481, and second, add a 'skin=foo' (with an appropriate value for 'foo') to the second param on line 1481. -- Mike Rylander | Director of Research and Development | Equinox Software, Inc. / Your Library's Guide to Open Source | phone: 1-877-OPEN-ILS (673-6457) | email: [email protected] | web: http://www.esilibrary.com
