Re: [Dspace-tech] Help message_bg.properties

2013-01-04 Thread Hristo Stamenov
Hi

To my problem from yesterday
Here is the solution
 if needed i can post full tutorial how to run dspace 3.0 from
netbeans from tomcat and add add easy some metafields  

in the

itemTag.java   for the dspace jsp-ui
i added the following code

// this part is to display ONLY bulgarian local this is just a small
fix for the current testing
//getting the current sesstion location
Locale sessionLocale = UIUtil.getSessionLocale(request);

boolean show =
!MetadataExposure.isHidden(context,
values[i].schema, values[i].element, values[i].qualifier);

boolean isBG = true;
// i have added in the database language for the metadate bg_BG
if(values[i].language!= null  !values[i].language.equals(bg_BG))
isBG = false;
if (show  isBG)
{
out.print(trtd headers=\s1\
class=\metadataFieldLabel\);

// this is that  we normally see   example
kmnc.proprties.something
//IF you dont want ONLY one language this is the code you need
String nameField= null;
 nameField= values[i].schema+ . +
values[i].element+. + values[i].qualifier;


 // here i call it if we can find it in the message_bg.properties

nameField=(LocaleSupport.getLocalizedMessage(pageContext,nameField));

out.print(nameField);

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] Help message_bg.properties

2013-01-03 Thread Hristo Stamenov
Hello
My name is Hristo and i am currently working on a dspace project for a
Bulgarian university.
I have a problem with the displaying of some metadate true the message
properties.


I am working on a linux/ debian virtual machine.
Dspace version 3.0
with Netbeans 7.2*
tomcat 7.0.27

I have written a tool that fills my initial database with the values
that I required
all is working good until i wanted to add the values to the message.properties
example :
I have
kmnc.general.subitems   59  -
kmnc.general.docid  82341   -
kmnc.metadata_copy.collection   Сбирка Vbg_BG
kmnc.metadata_copy.inventory_number 1000-ІІ bg_BG
kmnc.metadata_copy.manuscript_title Сборник bg_BG
kmnc.metadata_copy.date ХVІІ в.

and i want it to display

subitems = 59in bulgarian

I havemessage.properties and message_bg.properties located in
dspace-source/dspace-dspace-jspui/src/mainresources
I know i can access them because when I call for( iam accesing it
in the JSPUI community-list.jsp  for the test )
example:
fmt:message key=dc.title/
or   fmt:mssage key = kmnc.metadata_copy.contents/
it will display

But it does not display when i want to   display full metadate

Thank you

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Help message_bg.properties

2013-01-03 Thread Hristo Stamenov
I will like to have the kmnc.* fields display only some kind of short names
not displaying the entire kmnc.general.subitems but only
subitems 


Regards

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Help message_bg.properties

2013-01-03 Thread Hristo Stamenov
Thank you a lot for the help !
I will see what i have to do and get back to you


Thank you again ! Regards

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette