Problem solved (thanks again Terry for the hint).  I completely forgot to 
clear the cocoon cache before the last rebuild.  Clearing cache and another 
rebuild solved the issue.

Don.

On Friday, November 11, 2016 at 5:40:01 PM UTC-5, Donald Bynum wrote:

> I am running DSpace 5.5 with XMLUI and Mirage.  I am customizing (or at 
> least trying to) content in the Usage Statistics pages.  Specifically, I 
> want to remove the Country Views and the City Views and replace them with a 
> section that has "Feedback" as the header and a custom URL for the content 
> below.  I have been pushed in the right direction (thank you Terry), but am 
> stumbling on something which I am sure is trivial (I just don't know what 
> it is).
>
> I can successfully modify existing header strings by changing them in the 
> C:\dspace-5.5-release\dspace\modules\xmlui\src\main\webapp\i18n\messages.xml 
> code file.  I wanted to add a new header string.  So, in 
> C:\dspace-5.5-release\dspace\modules\xmlui\src\main\webapp\i18n\messages.xml 
> I added my new string:
>
>     <message key="xmlui.statistics.visits.cities">Top cities 
> views</message>
>     <message key="xmlui.statistics.visits.bitstreams">File 
> Downloads</message>  Note - this is one of the header string I have updated 
> and it renders just fine
>     <message key="xmlui.statistics.visits.setcstats">Feedback</message>   
> Note - this is the new one I added
>
> I updated 
> C:\dspace-5.5-release\dspace\modules\xmlui\src\main\java\org\dspace\app\xmlui\aspect\statistics\StatisticsTransformer.java
>  
> as follows:
>
> 1. I added my new header string to the list at the start of the class 
> definition as follows:
>          private static final String T_head_visits_cities = 
> "xmlui.statistics.visits.cities";
>     private static final String T_head_visits_bitstream = 
> "xmlui.statistics.visits.bitstreams";  -- Note this corresponds to the 
> header string which I updated in messages.xml 
>     private static final String T_head_visits_setcstats = 
> "xmlui.statistics.visits.setcstats"; -- This is the new header string that 
> I added to messages.xml
>
> 2. I commented out the original City and Country sections and added my new 
> (modified from the original Country section) section to the renderViewer 
> method as follows:
>
>         try {
>             StatisticsListing statListing = new StatisticsListing(
>                        new StatisticsDataVisits(dso));
>             statListing.setTitle(T_head_visits_setcstats); -- Note this 
> is the reference to my new header string
>             statListing.setId("list2");
> //            DatasetDSpaceObjectGenerator dsoAxis = new 
> DatasetDSpaceObjectGenerator();
> //            dsoAxis.addDsoChild(dso.getType(), 10, false, -1);
>             DatasetTypeGenerator typeAxis = new DatasetTypeGenerator();
>             typeAxis.setType("countryCode");
>             typeAxis.setMax(10);
>             statListing.addDatasetGenerator(typeAxis);
>             addDisplayListing(division, statListing);
>
> I have rebuilt XMLUI.  However, when the Usage Statistics page renders, 
> the header string is displayed as: "xmlui.statistics.visits.setcstats" 
> (without the quotes) instaed of the actual text of the string that I added 
> to messages.xml (it should have rendered "Feedback".
>
> Clearly something is not binding, I just don't know what.
>
> Help here would be much appreciated,
>
> Regards,
>
> Don.
>
>

-- 
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