/*
Copyright 2009 University of Toronto

Licensed under the Educational Community License (ECL), Version 2.0. 
ou may not use this file except in compliance with this License.

You may obtain a copy of the ECL 2.0 License at
https://source.collectionspace.org/collection-space/LICENSE.txt
*/

/*global jQuery, window, cspace*/

var demo = demo || {};

(function ($) {

    demo.setup = function () {
        var csid = cspace.util.getUrlParameter("csid");
		var isLocal = cspace.util.isLocal();
        var oeOpts = {
            alternateFields: ["accessionNumber", "objectTitle"],
			uiSpecUrl: isLocal ? "./schemas/collection-object/schema.json" : "../../chain/objects/schema",
        };
        if (csid) {
            oeOpts.csid = csid;
        }
        if (isLocal) {
            oeOpts.dataContext = cspace.util.setupTestDataContext("collection-object");
        }
        var objEntry = cspace.dataEntry(".csc-object-entry-container", oeOpts);
    };
    
})(jQuery);


/*
Copyright 2009 University of Toronto

Licensed under the Educational Community License (ECL), Version 2.0. 
ou may not use this file except in compliance with this License.

You may obtain a copy of the ECL 2.0 License at
https://source.collectionspace.org/collection-space/LICENSE.txt
*/

/*global jQuery, window, cspace*/

var demo = demo || {};

(function ($) {

    demo.setup = function () {
        var csid = cspace.util.getUrlParameter("csid");
		var isLocal = cspace.util.isLocal();
        var oeOpts = {
            alternateFields: ["accessionNumber", "objectTitle"],
			uiSpecUrl: isLocal ? "./schemas/collection-object/schema.json" : "../../chain/objects/schema"
        };
        if (csid) {
            oeOpts.csid = csid;
        }
        if (isLocal) {
            oeOpts.dataContext = cspace.util.setupTestDataContext("collection-object");
        }
        var objEntry = cspace.dataEntry(".csc-object-entry-container", oeOpts);
    };
    
})(jQuery);


Remove an extra comma that was causing IE to fail to load the page.
CSPACE-649: Remove an extra comma that was causing IE to fail to load the page.
