Changeset 32859

Show
Ignore:
Timestamp:
05.03.2019 15:30:21 (6 months ago)
Author:
davidb
Message:

Mostly code tidy-up. In IIIFServerBridge.java, edit to remove hard-wired path

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/iiif-servlet/trunk/src/src/main/java/edu/illinois/library/cantaloupe/resource/iiif/v2/GSInformationResource.java

    r32707 r32859  
    8989        } 
    9090 
     91    String identifier_str = identifier.toString(); 
     92    String[] strs = identifier_str.split(":", 3); 
     93    if(strs == null || strs.length < 3) { 
     94        System.err.println("identifier is not in the form site:coll:id" + identifier_str); 
     95        return null; 
     96    }     
     97    String site_name = strs[0]; 
     98    String coll_name = strs[1]; 
     99    String doc_id = strs[2]; 
     100 
     101    // Move into Constructor, ,and keep hashmap ??? 
    91102    IIIFServerBridge gs_iiif_bridge = new IIIFServerBridge(); 
    92     gs_iiif_bridge.init("localsite"); 
    93     String gs_message = gs_iiif_bridge.doGetDocumentMessage(identifier.toString()); 
     103    gs_iiif_bridge.init(site_name); 
     104    String gs_message = gs_iiif_bridge.doGetDocumentMessage(coll_name + ":" + doc_id); 
    94105     
    95106        final Source source = new SourceFactory().newSource(