Changeset 37159 for gs3-extensions/structured-image/trunk/perllib/plugins/GoogleVisionImagePlugin.pm
- Timestamp:
- 2023-01-18T23:51:57+13:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/structured-image/trunk/perllib/plugins/GoogleVisionImagePlugin.pm
r37065 r37159 35 35 use utf8; 36 36 use JSON qw( from_json ); 37 38 #use Data::Dumper; 37 use Digest::MD5 qw( md5_hex ); 39 38 40 39 use gsprintf; … … 100 99 #$ret_val_ok = $self->opt_run_gen_webannotation($doc_obj); 101 100 } 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); 102 110 103 111 return $ret_val_ok;
Note:
See TracChangeset
for help on using the changeset viewer.