After conducting an Expert search if you view a record from the
search results, the links to Subject and Author searches return
you to the Expert seach because they contain the cgi.param _special
and the cgi.param tag. WWW/EGCatLoader/Search.pm looks for
these params and directs the search towards an Expert search if
they exist, which is stopping the Subject and Author searches from
being performed.
record/body.tt2 defines a stop_parms variable which is used by mkurl
when consturcting urls in a record display. By adding all the
variables from the Expert search to stop_parms the Subject links are
created properly.
In order to get the author links to work properly the stop_parms
variable had to be used in the authors.tt2 file.
Signed-off-by: Liam Whalen <whalen.ld@gmail.com>
term = term _ ' ' _ sf;
END;
END;
- url = mkurl(ctx.opac_root _ '/results', {query => qterm, qtype => 'author'}, ['page', 'expand']);
+ url = mkurl(ctx.opac_root _ '/results', {query => qterm, qtype => 'author'}, stop_parms);
author_type = (tlabel || label) | html;
# schema.org changes
[%- attrs = {marc_xml => ctx.marc_xml};
PROCESS "opac/parts/misc_util.tt2";
PROCESS get_marc_attrs args=attrs;
- stop_parms = ['expand','cnoffset','copy_offset','copy_limit'];
+ stop_parms = ['expand','cnoffset','copy_offset','copy_limit','tag','subfield','term','page','_special'];
ctx.record_attrs = attrs; # capture for JS
%]
<div id='canvas_main' class='canvas' itemscope itemtype='[% args.schema.itemtype %]'>