Changeset 6144 for trunk


Ignore:
Timestamp:
2003-12-08T14:18:43+13:00 (20 years ago)
Author:
jmt12
Message:

Changed how a collection name appears. It now displays the collection title, followed by the shorter filename in curved brackets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java

    r6051 r6144  
    199199        if(collect_cfg_file.exists()) {
    200200            BasicCollectionConfiguration collect_cfg = new BasicCollectionConfiguration(collect_cfg_file);
    201             String collection_title = collect_cfg.getName();
     201            StringBuffer title_buffer = new StringBuffer(collect_cfg.getName());
     202            title_buffer.append(StaticStrings.SPACE_CHARACTER);
     203            title_buffer.append(StaticStrings.OPEN_PARENTHESIS_CHARACTER);
     204            title_buffer.append(possible_collections[i].getName());
     205            title_buffer.append(StaticStrings.CLOSE_PARENTHESIS_CHARACTER);
     206            String collection_title = title_buffer.toString();
     207            title_buffer = null;
    202208            String collection_name = possible_collections[i].getName();
    203209            // We do have to block the model collection.
    204             if(!collection_title.equals("**title**")) {
     210            if(!collect_cfg.getName().equals("**title**")) {
    205211            Entry entry = new Entry(collection_title);
    206212            entry.setProperty(collection_name);
Note: See TracChangeset for help on using the changeset viewer.