Hello, this kind of error usually happens when a library is not included. 

If we look into the script.xml file from the DSpace 5.4 Mirage2 theme, we 
can note that the autocomplete library and its dependencies are missing. I 
added the follow lines into the 
*[dspace-src]/dspace-xmlui-mirage2/src/main/webapp/scripts.xml 
*file and it worked: 

<script src="vendor/jquery-ui/ui/jquery.ui.widget.js">&#160;</script> 
<script src="vendor/jquery-ui/ui/jquery.ui.position.js">&#160;</script> 
<script src="vendor/jquery-ui/ui/jquery.ui.menu.js">&#160;</script> 
<script src="vendor/jquery-ui/ui/jquery.ui.autocomplete.js">&#160;</script> 

Related with this problem, the file lookup-indicator.gif are missing too. 
The bug is located at the file 
*[dspace-src]/dspace-xmlui-mirage2/src/main/webapp/styles/classic_mirage_color_scheme/_jquery_ui.scss
 *
To fix this problem, we might change the line: background-image: 
url("../../images/authority_control/lookup-indicator.gif"); to: 
background-image: url("../images/authority_control/lookup-indicator.gif");


Em quarta-feira, 26 de agosto de 2015 14:43:27 UTC-3, Germán Biozzoli 
escreveu:
>
> Hi everybody
>
> I have a problem with an autocomplete field using Mirage2. The same 
> input-forms works OK over Mirage theme. The error that appears in browser 
> is:
>
> [image: Imágenes integradas 1]
>
> (Type Error: h.autocomplete is not a function) in theme.js
>
> Any advise?
> Regards & thanks
>
> Germán
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to