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="c62d7ef5e9bb13c3-b499c744-4c3b4034-b5519c07-33fb324eec2254ea9d113492"><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:

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.

Access Pages

access.pl

Location:

/var/www/cgi-bin/

Language:

Perl

Usage:

access.pl?id=notisSyleID

When to run:

When a link is clicked on from a catalog page or from another source

Notes:

Depends on access.xsl and score-access.xsl which have entries below as well as access.css and v2-logo.jpg.

Changes to make for test sites:

 

access.xsl

Location:

/home/content/access/

Language:

XSLT

Usage:

 

When to run:

When called by access.pl for rendering an audio access page

Notes:

 

Changes to make for test sites:

 

score-access.xsl

Location:

/home/content/access/

Language:

XSLT

Usage:

 

When to run:

When called by access.pl for rendering an audio access page

Notes:

 

Changes to make for test sites:

 

generateAccessPage.sh

Location:

/home/dmlserv/dml/bin/

Language:

sh calling Java

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4206e599-41dd-47b3-af56-6a3832d999fd"><ac:plain-text-body><![CDATA[

Usage:

generateAccessPage.sh service_name [variationsID | variationsID_file] out_directory

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

When to run:

Whenever a new Container is created or updated (not currently setup)

Notes:

Calls v2run on edu.indiana.dml.util.AccessPageGenerator.
variationsIDs (notis-style) passed to this script must be for Containers

Changes to make for test sites: