From 0a00a8bbe9eaa49fdee4e05ebc97c557569dc53f Mon Sep 17 00:00:00 2001 From: Ben Bosman Date: Wed, 16 Mar 2011 16:46:07 +0000 Subject: [PATCH] [DS-843] Autocomplete in authority control contains small errors in Mirage git-svn-id: http://scm.dspace.org/svn/repo/dspace/branches/dspace-1_7_x@6144 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- .../Mirage/lib/css/authority-control.css | 8 +-- .../general/choice-authority-control.xsl | 52 ++++++++++--------- .../Mirage/lib/xsl/core/page-structure.xsl | 28 ++++++++++ dspace/CHANGES | 1 + 4 files changed, 60 insertions(+), 29 deletions(-) diff --git a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/css/authority-control.css b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/css/authority-control.css index 1450a3f0a7..a02734f2ab 100644 --- a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/css/authority-control.css +++ b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/css/authority-control.css @@ -7,6 +7,10 @@ */ /** Additions for Authority Control elements **/ /* for scriptaculous autocomplete */ +div.autocomplete { + display: none; +} + div.autocomplete, ul.ui-menu { position:absolute; width:250px; @@ -36,10 +40,6 @@ ul.ui-menu li a { ul.ui-menu li a.ui-state-hover { background-color: #ffb; } -#aspect_submission_StepTransformer_field_dc_title_container { - display: none; -} - /* this magic gets the 16x16 icon to show up.. setting height/width didn't do it, but adding padding actually made it show up. */ img.ds-authority-confidence diff --git a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/general/choice-authority-control.xsl b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/general/choice-authority-control.xsl index 1b23056075..cb5db51ce0 100644 --- a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/general/choice-authority-control.xsl +++ b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/aspect/general/choice-authority-control.xsl @@ -214,31 +214,33 @@ diff --git a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl index 8c3c9c8a8b..b57f9fbe18 100644 --- a/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl +++ b/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl @@ -240,6 +240,30 @@ else return true; } + + function FnArray() + { + this.funcs = new Array; + } + + FnArray.prototype.add = function(f) + { + if( typeof f!= "function" ) + { + f = new Function(f); + } + this.funcs[this.funcs.length] = f; + }; + + FnArray.prototype.execute = function() + { + for( var i=0; i < this.funcs.length; i++ ) + { + this.funcs[i](); + } + }; + + var runAfterJSImports = new FnArray(); @@ -573,6 +597,10 @@ <![endif]--> + +