# set the bootstrap config when this module is loaded
my ($bootstrap, $supercat, $actor, $parser, $search, $xslt, $cn_browse_xslt, %browse_types, %qualifier_map);
-my $authority_axis_re = qr/^authority\.(\w+)(\.refs)?$/;
+my $authority_axis_re = qr/^authority\.(\w+)(\.refs)?(\.search)?$/;
my %extra_header_action_per_type = (
marc21 => [
my $tree;
if ($axis =~ /^authority/) {
- my ($realaxis, $refs) = ($axis =~ $authority_axis_re);
+ my ($realaxis, $refs, $search_flag) = ($axis =~ $authority_axis_re);
- my $method = "open-ils.supercat.authority.browse_center.by_axis";
- $method .= ".refs" if $refs;
+ my $how = 'browse_center';
+ $how = 'search_rank' if $search_flag;
+
+ my $method = "open-ils.supercat.authority.$how.by_axis";
+ $method .= ".refs" if $refs or $search_flag;
$tree = $supercat->request(
$method,
my $tree;
if ($axis =~ /^authority/) {
- my ($realaxis, $refs) = ($axis =~ $authority_axis_re);
+ my ($realaxis, $refs, $search_flag) = ($axis =~ $authority_axis_re);
my $method = "open-ils.supercat.authority.browse_top.by_axis";
$method .= ".refs" if $refs;
if ($qualifier eq "id") {
$recs = [ int($term) ];
} else {
- my ($realaxis, $refs) = ($qualifier =~ $authority_axis_re);
+ my ($realaxis, $refs, $search_flag) = ($qualifier =~ $authority_axis_re);
my $method = "open-ils.supercat.authority.browse_top.by_axis";
$method .= ".refs" if $refs;
trim="true"
/>
</span>
+ <span style="white-space: nowrap;">
+ <label for="searchOrNot">[% l('Search instead of browse: ') %]</label>
+ <input type="checkbox" name="searchOrNot" value="1" dojoType="dijit.form.Checkbox" id="searchOrNot"/>
+ </span>
<!-- Not currently useful - see authOUListInit() above -->
<!-- <label for="authOU">[% l('Library: ') %]</label><select dojoType="openils.widget.OrgUnitFilteringSelect" id="authOU" name="authOU" searchAttr="shortname" labelAttr="shortname"></select> -->