Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- containerhtmls4activities

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
containerhtmls4activities
Synopsis
/infobank/programs/html/containerhtmls4activities/containerhtmls4activities.for
Description
  Program to generate .html pages for each activity that has

  physical materials.
       
AUTHOR
  Alex Ma     1/26/2006

    
NOTES
  1st run "updateholdings"  (to update the holdings files)

  2nd run "parseholdings"   (to subdivide the holdings files)
  3rd run "containerhtmls4activities"
  The resulting .html pages 
  (/infobank/<letter>/<id>/html/<long-id&g
  are the ones linked to on an Activity ID's metadata page
  under "Analog Materials" -- "list"

    
Reads
          read (HoldingsHeadersFile, '(q,a)', end = 199)
     *        DBHeadLineLength(DBCount), 
     *        DBHeadLine(DBCount)(1:DBHeadLineLength(DBCount))
          read (ItemsListFile, '(q,a)', end = 399) 
     *        IDLineLength, IDLine(1:IDLineLength)
              read (IDItemFile, '(q,a)', end=1088) 
     *              RecLineLength, RecLine(1:RecLineLength)
                  read (IDItemFile, '(q,a)', end = 1099)
     *                RecLineLength, RecLine(1:RecLineLength)
Writes
              write (BadIDsFile, '(a)') IDLine(Slash+1:Dot-1)
              write (LongID, '(10x)')
              write (IDHtmlFile, '(a)')
     *        '<!-- START /infobank/programs/html
     *        '/containerhtmls4activities'//
     *        '/containerhtmls4activities.for --&g
              write (IDHtmlFile, '(4x,a)') '</t
              write (IDHtmlFile, '(2x,a)') '</t
              write (IDHtmlFile, '(a)')    '</tabl
              write (LastLocation, '(1024x)')
                          write (IDHtmlFile, '(2x,a)')
     *                        '<tr bgcolor="00ffff" align="center
                     write (IDHtmlFile, '(4x,a)') '<th>Item #
                    write (IDHtmlFile, '(4x,a)') '<th>Container #
                 write (IDHtmlFile, '(4x,a)') '<th>Container Area
                        write (IDHtmlFile, '(4x,a)') '<th>Column
                         write (IDHtmlFile, '(4x,a)') '<th>Row
                                  write (IDHtmlFile, '(4x,a)')
     *                '<th>' // DBHeadline(DBnum)(DBTab(DBnum,L
     *                         :DBTab(DBnum, Loop+1)-1) // '</t
                      write (IDHtmlFile, '(2x,a)') '</t
                      write (IDHtmlFile, '(2x,a)') '</tabl
                      write (IDHtmlFile, '(a)') '<b
                      write (IDHtmlFile, '(a)') 
     *                    '<table border="3" bgcolor="00ffff
                      write (IDHtmlFile, '(2x,a)') '<t
                      write (IDHtmlFile, '(4x,a)') '<t
                      write (IDHtmlFile, '(6x,a)')
     *                    '<b>Location of Containers
                      write (IDHtmlFile, '(6x,a)') 
     *                         RecLine(RecTab(4)+1:RecTab(5)-1) //
     *                   ', ' //RecLine(RecTab(5)+1:RecTab(6)-1)
                      write (IDHtmlFile, '(4x,a)') '</t
                      write (IDHtmlFile, '(2x,a)') '</t
                      write (IDHtmlFile, '(a)') '</tabl
                      write (IDHtmlFile, '(a)') 
     *                   '<table border="1" bgcolor="ccffff
                      write (IDHtmlFile, '(2x,a)')
     *                   '<tr bgcolor="00ffff" align="center
                      write (IDHtmlFile, '(4x,a)') '<th>Item #
                   write (IDHtmlFile, '(4x,a)') '<th>Container #
                 write (IDHtmlFile, '(4x,a)') '<th>Container Area
                      write (IDHtmlFile, '(4x,a)') '<th>Column
                      write (IDHtmlFile, '(4x,a)') '<th>Row
                              write (IDHtmlFile, '(4x,a)') 
     *                 '<th>' // DBHeadline(DBnum)(DBTab(DBnum,L
     *                          :DBTab(DBnum, Loop+1)-1) // '</t
                      write (IDHtmlFile, '(2x,a)') '</t
                  write (IDHtmlFile, '(2x,a)') '<t
                  write (IDHtmlFile, '(4x,a)') '<t
                  write (IDHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(1)+1:RecTab(2)-1)
                  write (IDHtmlFile, '(4x,a)') '</t
                  write (IDHtmlFile, '(4x,a)') '<t
                  write (IDHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(2)+1:RecTab(3)-1)
                  write (IDHtmlFile, '(4x,a)') '</t
                  write (IDHtmlFile, '(4x,a)') '<t
                  write (IDHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(3)+1:RecTab(4)-1)
                  write (IDHtmlFile, '(4x,a)') '</t
                  write (IDHtmlFile, '(4x,a)') '<t
                  write (IDHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(6)+1:RecTab(7)-1)
                  write (IDHtmlFile, '(4x,a)') '</t
                  write (IDHtmlFile, '(4x,a)') '<t
                  write (IDHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(7)+1:RecTab(8)-1)
                  write (IDHtmlFile, '(4x,a)') '</t
                          write (IDHtmlFile, '(4x,a)') '<t
                                  write (IDHtmlFile, '(4x,a)')
     *                                   ' '
                                  write (IDHtmlFile, '(4x,a)')
     *                         RecLine(RecTab(Loop)+1:RecTab(Loop+1)-1)    
                                  write (IDHtmlFile, '(4x,a)')
     *                       '<a href="http://walrus.wr.usgs.gov
     *                       '/infobank/'//IDLine(Slash+1:Slash+1)//
     *                       '/'//IDLine(Slash+1:Slash+LongIDLength-3)//
     *                       '/html/'//LongID(1:LongIDLength)//
     *                       '.summary.images.html" target="new">
     *                       'scanned</
                          write (IDHtmlFile, '(4x,a)') '</t
              write (IDHtmlFile, '(2x,a)')
     *            '<tr bgcolor="00ffff" align="center
              write (IDHtmlFile, '(4x,a)') '<th>Item #
              write (IDHtmlFile, '(4x,a)') '<th>Container #
              write (IDHtmlFile, '(4x,a)') '<th>Container Area
              write (IDHtmlFile, '(4x,a)') '<th>Column
              write (IDHtmlFile, '(4x,a)') '<th>Row
                      write (IDHtmlFile, '(4x,a)') 
     *            '<th>' // DBHeadline(DBnum)(DBTab(DBnum,L
     *                     :DBTab(DBnum, Loop+1)-1) // '</t
              write (IDHtmlFile, '(2x,a)') '</t
              write (IDHtmlFile, '(2x,a)') '</tabl
          write (IDHtmlFile, '(a)') '<table border="0" width="90%" 
     *              'align="center" bgcolor="#f3f3f3" '//
     *              'cellpadding="0" cellspacing="0"&g
          write (IDHtmlFile, '(2x,a)') '<t
          write (IDHtmlFile, '(4x,a)') '<t
              write (IDHtmlFile, '(a)')
     *        '<!-- END   /infobank/programs/html
     *        '/containerhtmls4activities'//
     *        '/containerhtmls4activities.for --&g
Opens
      open (unit = HoldingsHeadersFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/programs/keep/column_headers.keep')
      open (unit = ItemsListFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/containerhtmls4activities.items.temp')
      open (unit = BadIDsFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/html'//
     *             '/containerhtmls4activities'//
     *             '/badids.list')
              open (unit = IDItemFile,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'old',
     *              name = IDLine(1:IDLineLength))
              open (unit = IDHtmlFile,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = '/infobank/'//
     *                     IDLine(Slash+1:Slash+1)//'/'//
     *                     IDLine(Slash+1:Dot-1)//'/html/'//
Calls
      call executiontime (480)
      call system ('/bin/ls -1 /infobank/programs/dbase/parseholdings'//
     *             '/activities/a*.items > 
     *             '/infobank/tmp/containerhtmls4activities.items.temp')
          call system 
     *       ('/bin/ls -1 /infobank/programs/dbase/parseholdings'//
     *        '/activities/'//Alphabet(AlphaLoop:AlphaLoop)//
     *        '*.items >&g
     *        '/infobank/tmp/containerhtmls4activities.items.temp')
              call stringlen(CurrentDB, CurrentDBLength)
              call changecase ('CAPITALS', CapID)
              call htmlhead (IDHtmlFile, 'Activity Physical Data: '//
     *            CapID(1:LongIDLength))
              call includeit (IDHtmlFile,
     *            '/infobank/programs/html/tools/home.tabs')
              call includeit (IDHtmlFile,
     *            '/infobank/programs/html/tools/home.uses.tabs')
              call includeit (IDHtmlFile,
     *            '/infobank/programs/html/tools/home.cmgstaff.tabs')
              call includeit (IDHtmlFile,
     *         '/infobank/programs/html/tools/home.cmgfacilities.tabs')
              call includeit (IDHtmlFile,
     *         '/infobank/programs/html/tools/home.cmgdirections.tabs')
              call includeit (IDHtmlFile,
     *            '/infobank/programs/keep/contents.keep')
                      call stringlen(CurrentDB, CurrentDBLength)
              call htmlfoot (IDHtmlFile, 
     *            '/infobank/'//
     *            IDLine(Slash+1:Slash+1)//'/'//
     *            IDLine(Slash+1:Dot-1)//'/html/'//
     *            LongID(1:LongIDLength)//'.container.html')
      call system (
     *    '/bin/rm /infobank/tmp/containerhtmls4activities.items.temp')

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/html/containerhtmls4activities/containerhtmls4activities.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Nov 4 03:40:31 PST 2013  (chd)