Make search by authority ID actually work on the first try
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 5 Jul 2011 19:50:20 +0000 (15:50 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 11 Jul 2011 17:48:31 +0000 (13:48 -0400)
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

index 5e0f710..1e58dd5 100644 (file)
@@ -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);