We are using XMLUI on 1.5.2.

In DCPersonName.java, we had added a customisation to automatically add 
fullstops to the end of author names. This was added to the toString() method. 
We had no problem with this in 1.5.1 (XMLUI), but now that we have upgraded to 
1.5.2, it is not working anymore.

Now, (and I might be showing off my ignorance here), the DescribeStep.java 
under the xmlui-api doesn't look like it directly adds any metadata to an item, 
only reads existing metadata to display it, so I'm assuming it is the 
DescribeStep.java under the dspace-api that does all the adding of metadata to 
an item. That DescribeStep.java under the dspace-api has:

                item.addMetadata(schema, element, qualifier, null,
                        new DCPersonName(l, f).toString());
under the readNames() method, which means it should add the fullstop, under the 
modified toString:


    public String toString()
    {
        StringBuffer out = new StringBuffer();

        if (lastName != null)
        {
            out.append(lastName);

            if ((firstNames != null) && !firstNames.equals(""))
            {
                out.append(", ").append(firstNames);
            }

            if (out.charAt(out.length() - 1) != '.' && out.charAt(out.length() 
- 1) == ')' && out.charAt(out.length() - 1) == '-')
            {
                out.append(".");
            }

        }

        return (out.toString());
    }



After the upgrade, I've been looking at the source, but I can't figure out why 
this would not be working anymore. If anyone could give me any hints, would be 
very thankful.





Thanks
Jennifer Whalan

Jennifer Whalan
Territory Stories Administrator
Innovation & Access, Northern Territory Library
Department of Natural Resources, Environment, The Arts and Sport
Northern Territory Government

Phone:  (08) 8922 0752
Fax:    (08) 8922 0722
Email:  [email protected]<mailto:[email protected]>
Web:    www.ntl.nt.gov.au<http://www.ntl.nt.gov.au/>

The information contained in this message and any attachments may be 
confidential information and may be subject to legal privilege, public interest 
or legal profession privilege. If you are not the intended recipient, any use, 
disclosure or copying of this message or any attachments is unauthorised. If 
you have received this document in error, please advise the sender. No 
representation or warranty is given that attached files are free from viruses 
or other defects. The recipient assumes all responsibility for any loss or 
damage resulting directly or indirectly from the use of any attached files.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to