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("<tr><td 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

Reply via email to