From: berick Date: Tue, 15 Mar 2011 16:31:54 +0000 (-0400) Subject: when logged in, default to org unit 1 when no org unit has been manually selected... X-Git-Tag: kcls-grey-screen-prod2~8 X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=88c75bd10fd903d486c9ec2d2eb3504d9782f370 when logged in, default to org unit 1 when no org unit has been manually selected; show shelf expire time in holds list --- diff --git a/Open-ILS/web/opac/skin/kcls/js/myopac.js b/Open-ILS/web/opac/skin/kcls/js/myopac.js index ac74ced..548eba4 100644 --- a/Open-ILS/web/opac/skin/kcls/js/myopac.js +++ b/Open-ILS/web/opac/skin/kcls/js/myopac.js @@ -475,8 +475,11 @@ function drawOneHold(h, row, parent) { $n(row,'acct_holds_status').innerHTML = "Ready for Pickup"; hideMe($n(row,'holds_editor_row')); unHideMe($n(row,'holds_ready_row')); - if(h.hold.shelf_expire_time()) $n(row,'hold_ready_expire').innerHTML = - dojo.date.locale.format(dojo.date.stamp.fromISOString(h.hold.shelf_expire_time()), {selector:'date', fullYear: true});; + if(h.hold.shelf_expire_time()) { + var pdate = dojo.date.stamp.fromISOString(h.hold.shelf_expire_time()); + $n(row,'hold_ready_expire').innerHTML += dojo.date.locale.format(pdate, {selector:'date', fullYear: true});; + unHideMe($n(row,'hold_ready_expire')); + } } else { var num = h.queue_position+''; suffix = (num.charAt(num.length-1)=="1")?"st":(num.charAt(num.length-1)=="2")?"nd":(num.charAt(num.length-1)=="3")?"rd":"th"; diff --git a/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml b/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml index 2be236c..7927bbc 100644 --- a/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml +++ b/Open-ILS/web/opac/skin/kcls/xml/common/js_shared.xml @@ -1,3 +1,15 @@ +/* +Run this here so it's the first event fired after 'init'. +This forces the LOCATION back to 1 when the user has not +selected a location via widget, thus immediately overriding +the default behavior found in common/js/init.js +*/ +attachEvt('common', 'run', function() { + var cgi = new CGI(); + if( cgi.param(PARAM_LOCATION) == null ) LOCATION=1; +}); + + isFrontPage = true; @@ -198,3 +210,5 @@ dojo.addOnLoad(function() { }); }); + + diff --git a/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_holds.xml b/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_holds.xml index 9625013..faa9760 100644 --- a/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_holds.xml +++ b/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_holds.xml @@ -54,9 +54,15 @@
- + + + + -
+ +
+
Expires
+ Edit Save Back