Re: [Dspace-tech] Help message_bg.properties
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
Re: [Dspace-tech] Help message_bg.properties
On Fri, Jan 4, 2013 at 9:40 AM, Hristo Stamenov darkel...@gmail.com wrote: Here is the solution Thanks for sharing your solution. if needed i can post full tutorial how to run dspace 3.0 from netbeans from tomcat and add add easy some metafields If you have anything to add, feel free to edit this wiki page: https://wiki.duraspace.org/display/DSPACE/IDE+Integration+-+DSpace+and+NetBeans Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- 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
Re: [Dspace-tech] Help message_bg.properties
Hi Hristo, I just learned about this configuration option: https://wiki.duraspace.org/pages/viewpage.action?pageId=19006086 You could do without your modifications if you listed all your metadata fields in the configuration property and defined human readable names for your custom metadata in Messages.properties (metadata.schema.element.qualifier). I recommend doing as little customization to code as possible. It will make long term maintenance (upgrades) easier. -- 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
Re: [Dspace-tech] Help message_bg.properties
Hi Hristo, I'm not sure that I understand what you want to achieve. I have a feeling that you may be mixing two different things - Messages.properties and item metadata. messages.properties contains static user interface strings that do not change and can be translated item metadata is not stored in Messages.properties, but in the database (metadata* tables) You would customize Messages.properties only if you want to 1) make changes to the user interface 2) translate the interface You would make changes to item metadata if you want to change what shows up e.g. in the simple/full item record view. There are many ways how you can change the metadata, see the various importing chaters here: https://wiki.duraspace.org/display/DSDOC3x/System+Administration I think you may be confused because the strings from Messages.properties (e.g. browse.type.metadata.author) look similar to metadata field names (e.g. dc.contributor.author). In fact, they are not at all related. Does that clear it up or was your problem something else? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- 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
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
Just to put things into context, Hristo contacted me off-list and said that he did mix up message identifiers with metadata field names. On Thu, Jan 3, 2013 at 2:25 PM, Hristo Stamenov darkel...@gmail.com wrote: 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 I see, so you would like to have a custom view that has human-readable names for metadata field names just like simple view (e.g. Author instead of dc.contributor.author), but lists all metadata fields like the full view. I'm not personally using JSPUI, but I'll try to point you in the right direction. You can store the metadata field names in Messages.properties (so you can also have a localized Messages_bg.properties version). These should be the relevant places in the source: https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-jspui/src/main/webapp/display-item.jsp https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java#L482 https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-api/src/main/resources/Messages.properties#L1330 Note that the messages for metadata field names are stored in Messages.proeprties. (e.g. the metadata.dc.contributor.author property for the dc.contributor.author field). Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- 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
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