Ignore:
Timestamp:
2019-04-01T16:58:49+13:00 (5 years ago)
Author:
davidb
Message:

Further generalization for running the script

Location:
other-projects/is-sheet-music-encore/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/is-sheet-music-encore/trunk/TEST-RUN.sh

    r32949 r32952  
    44echo ""
    55
    6 ./dapiclient2.pl > tmp.png
     6./dapiclient2-extended.pl > tmp.png
    77
  • other-projects/is-sheet-music-encore/trunk/dapiclient2-extended.pl

    r32951 r32952  
    8787my $base_request_url = "https://babel.hathitrust.org/cgi/htd/volume/pageimage/";
    8888
    89 #my $request_url = $base_request_url."mdp.39015000000128/1";
    90 my $request_url = $base_request_url."mdp.39015070661841/1";
    91 
     89my $request_url;
     90if (defined $ARGV[0]) {
     91    $request_url = $base_request_url.$ARGV[0];
     92}
     93else {
     94    # The following ID is to the example given in the Data API documentation
     95    # $request_url = $base_request_url."mdp.39015000000128/1";
     96   
     97    # The following is an example of a 'open-open' sheet music doc
     98    $request_url = $base_request_url."mdp.39015070661841/1";
     99}
    92100   
    93101my $consumer = OAuth::Lite::Consumer->new
Note: See TracChangeset for help on using the changeset viewer.