</span>
</span>
[%#- INCLUDE "opac/parts/pref_lib_display.tt2" %] <!-- not used by KCLS -->
+
+ <!-- stash these in JS for the web staff client to find -->
+ <script>
+ window.search_result_hit_count = [% ctx.hit_count %];
+ window.search_result_index = [% ctx.search_result_index %];
+ </script>
+
<div id="rdetail_result_nav">
[%
IF ctx.prev_search_record;
title="[% attrs.title_extended | uri %]"
[% IF ctx.is_browser_staff %]
target="_blank"
- href="/eg/staff/cat/catalog/record/[% rec.id %]"
+ href="[% mkurl('/eg/staff/cat/catalog/record/' _ rec.id) | replace(';','&') %]"
[% ELSE %]
href = "[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
[% END %]
var url = $location.absUrl().replace(/\/staff.*/, '/opac/advanced');
// A record ID in the path indicates a request for the record-
- // specific page.
+ // specific page. Pass along the query params if there are any.
if ($routeParams.record_id) {
- url = url.replace(/advanced/, '/record/' + $scope.record_id);
+ url = url.replace(/advanced/, 'record/' + $scope.record_id);
+ if (location.search) {
+ // KCLS propagate query params from title links
+ // that force-open new tabs.
+ url += location.search;
+ $scope.from_route = false;
+ }
}
// Jumping directly to the results page by passing a search