- Timestamp:
- Feb 10, 2010, 4:16:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ippScripts/scripts/ipp_image_path.pl
r25207 r26873 19 19 use PS::IPP::Metadata::Config; 20 20 use PS::IPP::Config 1.01 qw( :standard ); 21 use Nebulous::Client; 21 22 22 23 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 23 24 use Pod::Usage qw( pod2usage ); 24 25 25 my ($exp_name, $class_id, $from_registered, $dbname, $verbose );26 my ($exp_name, $class_id, $from_registered, $dbname, $verbose, $alternate); 26 27 27 28 GetOptions( … … 31 32 'dbname|d=s' => \$dbname, # Database name 32 33 'verbose' => \$verbose, # Print to stdout 34 'alternate' => \$alternate, 33 35 ) or pod2usage( 2 ); 34 36 … … 99 101 $path = resolve_ipp008_file($uri); 100 102 } elsif ($use_017_workaround && ($uri =~ /4683/) && 101 ($uri =~ /ipp017/)) {103 ($uri =~ /ipp017/)) { 102 104 $path = resolve_ipp017_file($uri); 103 } else { 105 } elsif ($alternate) { 106 my $neb = $ipprc->nebulous(); 107 my $uris = $neb->find_instances($uri,'any'); 108 my @files = map {URI->new($_)->file if $_} @$uris; 109 110 if ($#files > 0) { 111 $path = $files[1]; 112 } 113 else { 114 $path = $files[0]; 115 } 116 117 } 118 else { 104 119 $path = $ipprc->file_resolve($uri); 105 120 }
Note:
See TracChangeset
for help on using the changeset viewer.
