Ignore:
Timestamp:
2023-09-26T17:47:44+13:00 (9 months ago)
Author:
davidb
Message:

Latest version, adding in ImageTool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/structured-image/trunk/src/js/document_extra.js

    r37709 r38227  
    279279    "windows": [
    280280        {
     281        "imageToolsEnabled": true,
    281282        "loadedManifest": httpDocumentIIIFManifest,
    282283        "canvasIndex": canvas_index,
     
    285286    ]
    286287    };
    287 
     288   
    288289    var includeFileAssocOpenAnnotations = gs.variables.optionIncludeFileAssocOpenAnnotations;
    289290    var includeEditableOpenAnnotations  = gs.variables.optionIncludeEditableOpenAnnotations;
     
    330331        mirador3_config.annotation.exportLocalStorageAnnotations = true;  // display annotation JSON export button
    331332   
     333    }
     334    else {
     335        // Editing not actionable, but still want a user to see the annotation in the Mirador3 viewer
     336        // => Trigger getting the static (non-editable) version that is in the returned loadedManifest JSON     
     337        mirador3_config.windows[0].loadedManifest = httpDocumentIIIFManifest + "&includeFileAssocOpenAnnotations=true";
    332338    }
    333339    }
Note: See TracChangeset for help on using the changeset viewer.