Project

General

Profile

« Previous | Next » 

Revision 5906

Added by berkley almost 14 years ago

few bug fixes for listObjects

View differences:

src/edu/ucsb/nceas/metacat/IdentifierManager.java
923 923
                
924 924
                Checksum cs = new Checksum();
925 925
                cs.setValue(checksum);
926
                cs.setAlgorithm(ChecksumAlgorithm.convert(checksumAlgorithm));
926
                cs.setAlgorithm(ChecksumAlgorithm.valueOf(checksumAlgorithm));
927 927
                oi.setChecksum(cs);
928 928
                
929 929
                ObjectFormat oFormat = ObjectFormat.convert(format);
......
931 931
                {
932 932
                    oi.setObjectFormat(oFormat);
933 933
                }
934
                else
935
                { //if there is no object format, just default to text/plain
936
                    oi.setObjectFormat(ObjectFormat.TEXT_PLAIN);
937
                }
934 938
                
935 939
                ol.addObjectInfo(oi);
936 940
                countIndex++;

Also available in: Unified diff