Child pages
  • Server Scripts

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Location:

/var/www/cgi-bin/

Language:

Perl

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="801652a404589843-cf419d73-4a554dbc-af06916d-dd4b50311be3ede34ebf040e"><ac:plain-text-body><![CDATA[

Usage:

viewStats.cgi?[current][year=yyyy][month=Mmm][day=dd][location=In+Music+Library|On+Campus|Off+Campus|Totals][view=yearly|monthly|daily]

]]></ac:plain-text-body></ac:structured-macro>

When to run:

Whenever an administrator wants to view statistics

Notes:

For this script to work the filepath directory should be linked into an apache viewable directory that is specified with urlpath.
This script now displays both UI and Darwin statistics.

Changes to make for test sites:

Line 28: filepath - filesystem path to statistics files generated by generateStats.pl and generateQTStats.pl
Line 29: v2URL - url of access page rendering script
Line 30: urlPath - url where comma delimited files and generated images can be found
Line 31: homepage - url of statistics about page
Line 282: CSS link is specified as urlPath/dml1.css

...

Location:

/var/www/cgi-bin/

Language:

Perl

Usage:

generate-ref-movie.mov?path=leasedir/mediafile

When to run:

Whenever an user wants to access a media file

Notes:

This script is adapted from the generate-ref-movie shell script and called Java code.
No checks are done to ensure that the mediafile is located at the path specified.
The script currently generates a reference movie only containing the 192k file. This should be changed for varying bitrates supported by reference movies.
The script does not check that QTAtom children added to a QTAtom are of the allowable types.
Line 127: Uses an assumption that is currently true and is potentially always true (but unverified)

Changes to make for test sites:

Line 9: baseurl - RTSP url that specifies the path to the lease directory under Darwin

V2X Generation

variationsURL.v2x

Location:

/var/www/cgi-bin/

Language:

Perl

Usage:

variationsURL.v2x?type=timeline&ref=urlthatholdsv2xfile
variationsURL.v2x?type=opus&instatiation_id=LIB/Instantiation/xxx=&start_offset=xxx&work_start=xxx&work_end=xxx&work_id=LIB/Work/xxx
variationsURL.v2x?type=anything&container_id=LIB/Container/xxx&start_offset=xxx

When to run:

When a link is clicked on from an access page or when directed to from another source

Notes:

Most references to Variations1 has been deleted and support dropped for simplicity.
Query string parameters vary widely as can be seen in the usage above and thus are currently gathered into a hash from $ENV{'QUERY_STRING'} as opposed to using $cgi->param('paramname]) like in the other scripts. This may want to be changed for standardization or to be used under mod_perl.
MIME types are set to application/x-variations2-* and might want to be generalized if there is a name change to Variations 3 or any other name.

Changes to make for test sites:

Line 104-121: Usage information is specific to Variations 2 and to IU.