mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
[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
This commit is contained in:
@@ -7,6 +7,10 @@
|
|||||||
*/
|
*/
|
||||||
/** Additions for Authority Control elements **/
|
/** Additions for Authority Control elements **/
|
||||||
/* for scriptaculous autocomplete */
|
/* for scriptaculous autocomplete */
|
||||||
|
div.autocomplete {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
div.autocomplete, ul.ui-menu {
|
div.autocomplete, ul.ui-menu {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
width:250px;
|
width:250px;
|
||||||
@@ -36,10 +40,6 @@ ul.ui-menu li a {
|
|||||||
ul.ui-menu li a.ui-state-hover {
|
ul.ui-menu li a.ui-state-hover {
|
||||||
background-color: #ffb;
|
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
|
/* this magic gets the 16x16 icon to show up.. setting height/width didn't
|
||||||
do it, but adding padding actually made it show up. */
|
do it, but adding padding actually made it show up. */
|
||||||
img.ds-authority-confidence
|
img.ds-authority-confidence
|
||||||
|
@@ -214,31 +214,33 @@
|
|||||||
<xsl:param name="confidenceName" select="''"/>
|
<xsl:param name="confidenceName" select="''"/>
|
||||||
<xsl:param name="isClosed" select="'false'"/>
|
<xsl:param name="isClosed" select="'false'"/>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<xsl:text>window.onload = function() {</xsl:text>
|
<xsl:text>runAfterJSImports.add(function() {</xsl:text>
|
||||||
<xsl:text>var gigo = DSpaceSetupAutocomplete('</xsl:text>
|
<xsl:text>$(document).ready(function() {</xsl:text>
|
||||||
<xsl:value-of select="$formID"/>
|
<xsl:text>var gigo = DSpaceSetupAutocomplete('</xsl:text>
|
||||||
<xsl:text>', { metadataField: '</xsl:text>
|
<xsl:value-of select="$formID"/>
|
||||||
<xsl:value-of select="$metadataField"/>
|
<xsl:text>', { metadataField: '</xsl:text>
|
||||||
<xsl:text>', isClosed: '</xsl:text>
|
<xsl:value-of select="$metadataField"/>
|
||||||
<xsl:value-of select="$isClosed"/>
|
<xsl:text>', isClosed: '</xsl:text>
|
||||||
<xsl:text>', inputName: '</xsl:text>
|
<xsl:value-of select="$isClosed"/>
|
||||||
<xsl:value-of select="$inputName"/>
|
<xsl:text>', inputName: '</xsl:text>
|
||||||
<xsl:text>', authorityName: '</xsl:text>
|
<xsl:value-of select="$inputName"/>
|
||||||
<xsl:value-of select="$authorityName"/>
|
<xsl:text>', authorityName: '</xsl:text>
|
||||||
<xsl:text>', containerID: '</xsl:text>
|
<xsl:value-of select="$authorityName"/>
|
||||||
<xsl:value-of select="$containerID"/>
|
<xsl:text>', containerID: '</xsl:text>
|
||||||
<xsl:text>', indicatorID: '</xsl:text>
|
<xsl:value-of select="$containerID"/>
|
||||||
<xsl:value-of select="$indicatorID"/>
|
<xsl:text>', indicatorID: '</xsl:text>
|
||||||
<xsl:text>', confidenceIndicatorID: '</xsl:text>
|
<xsl:value-of select="$indicatorID"/>
|
||||||
<xsl:value-of select="$confidenceIndicatorID"/>
|
<xsl:text>', confidenceIndicatorID: '</xsl:text>
|
||||||
<xsl:text>', confidenceName: '</xsl:text>
|
<xsl:value-of select="$confidenceIndicatorID"/>
|
||||||
<xsl:value-of select="$confidenceName"/>
|
<xsl:text>', confidenceName: '</xsl:text>
|
||||||
<xsl:text>', collection: </xsl:text>
|
<xsl:value-of select="$confidenceName"/>
|
||||||
<xsl:value-of select="$collectionID"/>
|
<xsl:text>', collection: </xsl:text>
|
||||||
<xsl:text>, contextPath: '</xsl:text>
|
<xsl:value-of select="$collectionID"/>
|
||||||
<xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/>
|
<xsl:text>, contextPath: '</xsl:text>
|
||||||
<xsl:text>'});</xsl:text>
|
<xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/>
|
||||||
<xsl:text>};</xsl:text>
|
<xsl:text>'});</xsl:text>
|
||||||
|
<xsl:text>});</xsl:text>
|
||||||
|
<xsl:text>});</xsl:text>
|
||||||
</script>
|
</script>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@@ -240,6 +240,30 @@
|
|||||||
else
|
else
|
||||||
return true;
|
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 <xsl:text disable-output-escaping="yes"><</xsl:text> this.funcs.length; i++ )
|
||||||
|
{
|
||||||
|
this.funcs[i]();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var runAfterJSImports = new FnArray();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Modernizr enables HTML5 elements & feature detects -->
|
<!-- Modernizr enables HTML5 elements & feature detects -->
|
||||||
@@ -573,6 +597,10 @@
|
|||||||
<xsl:text disable-output-escaping="yes" ><![endif]--></xsl:text>
|
<xsl:text disable-output-escaping="yes" ><![endif]--></xsl:text>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
runAfterJSImports.execute();
|
||||||
|
</script>
|
||||||
|
|
||||||
<!-- Add a google analytics script if the key is present -->
|
<!-- Add a google analytics script if the key is present -->
|
||||||
<xsl:if test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='google'][@qualifier='analytics']">
|
<xsl:if test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='google'][@qualifier='analytics']">
|
||||||
<script type="text/javascript"><xsl:text>
|
<script type="text/javascript"><xsl:text>
|
||||||
|
@@ -21,6 +21,7 @@ found online at: https://wiki.duraspace.org/display/DSPACE/DSpaceContributors
|
|||||||
- [DS-808] jqueryUI javascript gets imported without corresponding CSS
|
- [DS-808] jqueryUI javascript gets imported without corresponding CSS
|
||||||
- [DS-809] Support for empty dc.abstract dim field in Internet Explorer
|
- [DS-809] Support for empty dc.abstract dim field in Internet Explorer
|
||||||
- [DS-823] DatabaseManager Oracle compliance
|
- [DS-823] DatabaseManager Oracle compliance
|
||||||
|
- [DS-843] Autocomplete in authority control contains small errors in Mirage
|
||||||
|
|
||||||
(Stuart Lewis, Kim Shepherd)
|
(Stuart Lewis, Kim Shepherd)
|
||||||
- [DS-806] Item.match() incorrect logic for schema testing
|
- [DS-806] Item.match() incorrect logic for schema testing
|
||||||
|
Reference in New Issue
Block a user