Ignore:
Timestamp:
2018-09-18T16:10:38+12:00 (6 years ago)
Author:
kjdon
Message:

set a no_archives att to the collection element if archives are not present - then we know not to show document editing. for now, this is just a basic test whether the folder exists or not. not doing any test on the contents of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r31916 r32475  
    170170        loadSecurityInformation(coll_config_xml);
    171171
     172        // do we have archives folder?
     173        File archives_folder = new File(GSFile.collectionArchiveDir(this.site_home, this.cluster_name));
     174        if (!archives_folder.exists()) {
     175          this.description.setAttribute(GSXML.NO_ARCHIVES_ATT, "true");
     176        }
    172177        // now do the services
    173178        configureServiceRacks(coll_config_xml, build_config_xml);
Note: See TracChangeset for help on using the changeset viewer.