Ignore:
Timestamp:
2016-07-22T19:41:17+12:00 (8 years ago)
Author:
ak19
Message:

Bugfix to oversight: web document editor didn't reindex on removing metadata, only on setting it. This is because there wasn't corresponding Service on Java side to handle removing metadata. Now the Java code has a ModifyMetdata service and this is connected to both the set- and remove-metadata functions in the javascript. For now, the javascript metadataserver calls have been made synchronous by setting the async ajax-jquery property to false. Need to test whether the code still works asynchronous as before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java

    r30516 r30617  
    3535    public static final int BUILD = 2;
    3636    public static final int ACTIVATE = 3;
    37     public static final int SET_METADATA_SERVER = 4;
     37    public static final int MODIFY_METADATA_SERVER = 4;
    3838
    3939    /**
     
    122122            activateCollection();
    123123            break;
    124         case SET_METADATA_SERVER:
    125             setMetadataForCollection();
     124        case MODIFY_METADATA_SERVER:
     125            modifyMetadataForCollection();
    126126            break;
    127127        default:
     
    285285        command.add("-collectdir");
    286286        command.add(GSFile.collectDir(this.site_home));
    287 //      command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly
     287//      command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly. Shouldn't be added for incremental building
    288288        command.add("-skipactivation"); // gsdl3/util/GS2Construct does the activation and reactivation
    289289        command.addAll(extractParameters(this.process_params));
     
    302302
    303303
    304     protected void setMetadataForCollection()
    305     {
    306         sendMessage(new ConstructionEvent(this, GSStatus.INFO, "Collection metadata: setMetadata for collection."));
     304    protected void modifyMetadataForCollection()
     305    {
     306        sendMessage(new ConstructionEvent(this, GSStatus.INFO, "Collection metadata: modifyMetadata (set or remove meta) for collection."));
    307307
    308308        Vector<String> command = new Vector<String>();
Note: See TracChangeset for help on using the changeset viewer.