From: Lebbeous Fogle-Weekley Date: Tue, 5 Jul 2011 19:50:20 +0000 (-0400) Subject: Make search by authority ID actually work on the first try X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=04eeb545bbbf07af05dc75e365632f4ef2cb3acb;p=evergreen%2Fjoelewis.git 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 --- 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);