Project

General

Profile

« Previous | Next » 

Revision 6358

use the ObjectFormat Id (not toString()) to check against the configured science metadata formats

View differences:

src/edu/ucsb/nceas/metacat/dataone/MetadataTypeRegister.java
58 58
            while(vals.hasNext())
59 59
            {
60 60
                String val = vals.next();
61
                String ofVal = format.toString();
61
                String ofVal = format.getFmtid().getValue();
62 62
                //System.out.println("val: " + val);
63 63
                if(val.trim().equals(ofVal.trim()))
64 64
                {

Also available in: Unified diff