[Dspace-tech] controlled vocabulary in non-english language

2010-08-08 Thread 洪承理
Hi there
   I'm new in dspace.Now I am trying to apply controlled vocabulary in my
system.
I followed the manual and seted webui.controlledvocabulary.enable = true.
It just worked fine,but when I trying to make my own controlled vocabulary
,it got a problem.
Following the manual,I made a .xml file to put all my controlled
vocabulary,and it can display in Subject Search correctly.
But when I assigned controlled vocabulary for an item, in the pop-up window
,all the controlled vocabulary just showed ?.
After submission ,the subject field also showed ?.
By the way, I used Chinese to make controlled vocabulary,and the .xml
encoding in utf8,my dspace version is 1.6.2.
Could somebody help me to fix this?
Thanks.
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] controlled vocabulary in non-english language

2010-08-08 Thread SUZUKI Keiji
Hi,

You may fix this when you apply the following patch to

DSPACE-SRC/dspace-jsp/dspace-jsp-webapp/src/main/webapp/controlledvocabulary/controlledvocabulary.jsp

=== patch from here =
--- controlledvocabulary.jsp2010-06-14 21:48:18.0 +0900
+++ controlledvocabulary.jsp.new2010-08-09 09:34:55.93750 +0900
@@ -46,7 +46,7 @@
   --%


-%@ page language=java contentType=text/html;charset=iso-8859-1 %
+%@ page language=java contentType=text/html;charset=UTF-8 %
 %@ page  import=javax.servlet.jsp.jstl.fmt.LocaleSupport %

 %@ taglib uri=http://java.sun.com/jsp/jstl/fmt; prefix=fmt %
@@ -57,7 +57,7 @@

 head
 titlefmt:message
key=jsp.controlledvocabulary.controlledvocabulary.title//title
-meta http-equiv=Content-Type content=text/html;charset=iso-8859-1/
+meta http-equiv=Content-Type content=text/html;charset=UTF-8/


 link rel=shortcut icon href=%= request.getContextPath()
%/favicon.ico type=image/x-icon/
== patch end =


2010/8/8 洪承理 oldd...@gmail.com:
 Hi there
I'm new in dspace.Now I am trying to apply controlled vocabulary in my
 system.
 I followed the manual and seted webui.controlledvocabulary.enable = true.
 It just worked fine,but when I trying to make my own controlled vocabulary
 ,it got a problem.
 Following the manual,I made a .xml file to put all my controlled
 vocabulary,and it can display in Subject Search correctly.
 But when I assigned controlled vocabulary for an item, in the pop-up window
 ,all the controlled vocabulary just showed ?.
 After submission ,the subject field also showed ?.
 By the way, I used Chinese to make controlled vocabulary,and the .xml
 encoding in utf8,my dspace version is 1.6.2.
 Could somebody help me to fix this?
 Thanks.

-- 
Keiji Suzuki
Ebetsu, Japan

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] controlled vocabulary in non-english language

2010-08-08 Thread 洪承理
thank a million, it works perfectly now.

2010/8/9 SUZUKI Keiji z...@mbc.ocn.ne.jp

 Hi,

 You may fix this when you apply the following patch to


 DSPACE-SRC/dspace-jsp/dspace-jsp-webapp/src/main/webapp/controlledvocabulary/controlledvocabulary.jsp

 === patch from here =
 --- controlledvocabulary.jsp2010-06-14 21:48:18.0 +0900
 +++ controlledvocabulary.jsp.new2010-08-09 09:34:55.93750 +0900
 @@ -46,7 +46,7 @@
   --%


 -%@ page language=java contentType=text/html;charset=iso-8859-1 %
 +%@ page language=java contentType=text/html;charset=UTF-8 %
  %@ page  import=javax.servlet.jsp.jstl.fmt.LocaleSupport %

  %@ taglib uri=http://java.sun.com/jsp/jstl/fmt; prefix=fmt %
 @@ -57,7 +57,7 @@

  head
  titlefmt:message
 key=jsp.controlledvocabulary.controlledvocabulary.title//title
 -meta http-equiv=Content-Type content=text/html;charset=iso-8859-1/
 +meta http-equiv=Content-Type content=text/html;charset=UTF-8/


  link rel=shortcut icon href=%= request.getContextPath()
 %/favicon.ico type=image/x-icon/
 == patch end
 =


 2010/8/8 洪承理 oldd...@gmail.com:
  Hi there
 I'm new in dspace.Now I am trying to apply controlled vocabulary in my
  system.
  I followed the manual and seted webui.controlledvocabulary.enable = true.
  It just worked fine,but when I trying to make my own controlled
 vocabulary
  ,it got a problem.
  Following the manual,I made a .xml file to put all my controlled
  vocabulary,and it can display in Subject Search correctly.
  But when I assigned controlled vocabulary for an item, in the pop-up
 window
  ,all the controlled vocabulary just showed ?.
  After submission ,the subject field also showed ?.
  By the way, I used Chinese to make controlled vocabulary,and the .xml
  encoding in utf8,my dspace version is 1.6.2.
  Could somebody help me to fix this?
  Thanks.

 --
 Keiji Suzuki
 Ebetsu, Japan

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech