Ignore:
Timestamp:
2023-01-18T23:51:57+13:00 (16 months ago)
Author:
davidb
Message:

Additional metadata set (SASShortID) to help with creating IIIF Manifest files in the XSLT to support within-doc searching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/structured-image/trunk/perllib/plugins/GoogleVisionImagePlugin.pm

    r37065 r37159  
    3535use utf8;
    3636use JSON qw( from_json );
    37 
    38 #use Data::Dumper;
     37use Digest::MD5 qw( md5_hex );
    3938
    4039use gsprintf;
     
    10099    #$ret_val_ok = $self->opt_run_gen_webannotation($doc_obj);
    101100    }
     101
     102    # Compute SimpleAnnotationServer short_id (md5_hex hash on OID)
     103    # and store as metadata for later use
     104    my $OID= $doc_obj->get_OID();
     105
     106    my $sas_manifest_url = "http-greenstone://intermuse/programmes-and-performers/$OID/manifest";
     107    my $sas_short_id = md5_hex($sas_manifest_url);
     108
     109    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(),"SASShortID",$sas_short_id);
    102110   
    103111    return $ret_val_ok;
Note: See TracChangeset for help on using the changeset viewer.