[open-ils-commits] r1024 - in conifer/branches/rel_1_6_1/web/opac/skin/uwin: js xml (artunit)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 30 15:06:02 EDT 2010
Author: artunit
Date: 2010-09-30 15:05:57 -0400 (Thu, 30 Sep 2010)
New Revision: 1024
Modified:
conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/advanced.js
conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/page_advanced.xml
Log:
fix scenario where barcode invokes too many item records in full display
Modified: conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/advanced.js
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/advanced.js 2010-09-29 13:30:03 UTC (rev 1023)
+++ conifer/branches/rel_1_6_1/web/opac/skin/uwin/js/advanced.js 2010-09-30 19:05:57 UTC (rev 1024)
@@ -162,9 +162,16 @@
return;
}
if(!titleid) return;
+ var copyCnt = sortOutCopies(getLocation(), titleid, null);
var args = {};
- args.page = RDETAIL;
+ if (copyCnt <= lookUpLimit) {
+ args.page = RDETAIL;
+ } else {
+ args[PARAM_RTYPE] = RTYPE_TITLE;
+ args.page = RSDETAIL;
+ }
args[PARAM_RID] = titleid;
+
location.href = buildOPACLink(args);
}
Modified: conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/page_advanced.xml
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/page_advanced.xml 2010-09-29 13:30:03 UTC (rev 1023)
+++ conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/page_advanced.xml 2010-09-30 19:05:57 UTC (rev 1024)
@@ -1,6 +1,7 @@
<div id='canvas_main' class='canvas' style='margin-top: 20px;'>
<script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/uwin/js/advanced.js'></script>
+ <script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/skin/uwin/js/result_common.js'></script>
<style type='text/css'>
.advanced_div { text-align: center; margin: 8px; margin-left: 2px; width: 95%; padding: 5px; }
More information about the open-ils-commits
mailing list