From 04eeb545bbbf07af05dc75e365632f4ef2cb3acb Mon Sep 17 00:00:00 2001
From: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Date: Tue, 5 Jul 2011 15:50:20 -0400
Subject: [PATCH] Make search by authority ID actually work on the first try

and also show an odd number of authority record results so that
there can actually be a "middle."

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
---
 Open-ILS/web/opac/skin/default/js/authbrowse.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/web/opac/skin/default/js/authbrowse.js b/Open-ILS/web/opac/skin/default/js/authbrowse.js
index 5e0f7107cf..1e58dd5e3f 100644
--- a/Open-ILS/web/opac/skin/default/js/authbrowse.js
+++ b/Open-ILS/web/opac/skin/default/js/authbrowse.js
@@ -15,7 +15,7 @@ function doAuthorityBrowse(axis, term, page, per_page) {
         axis = cgi.param(PARAM_AUTHORITY_BROWSE_AXIS);
         term = cgi.param(PARAM_AUTHORITY_BROWSE_TERM);
         page = cgi.param(PARAM_AUTHORITY_BROWSE_PAGE) || 0;
-        per_page = cgi.param(PARAM_AUTHORITY_BROWSE_PER_PAGE) || 20;
+        per_page = cgi.param(PARAM_AUTHORITY_BROWSE_PER_PAGE) || 21;
     }
 
     var url = '/opac/extras/browse/marcxml/authority.'
@@ -236,6 +236,8 @@ function displayRecordCount(axis, id, count) {
     args[PARAM_DEPTH] = depthSelGetDepth();
     args[PARAM_FORM] = "all";
     args[PARAM_LOCATION] = depthSelGetNewLoc();
+    args[PARAM_STYPE] = "keyword";
+    args[PARAM_RTYPE] = "keyword";
     args[PARAM_TERM] = "identifier|authority_id[" + id + "]";
 
     var axis_obj = acs_helper.browseAxisByCode(axis);
-- 
2.11.0