Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- containerhtmls4scientists

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

  physical materials.
       
AUTHOR
  Clint Steele   3/30/2006    based on containerhtmls2activities


    
Reads
          read (HoldingsHeadersFile, '(q,a)', end = 199)
     *        DBHeadLineLength(DBCount), 
     *        DBHeadLine(DBCount)(1:DBHeadLineLength(DBCount))
          read (ItemsListFile, '(q,a)', end = 399) 
     *        ScientistLineLength, ScientistLine(1:ScientistLineLength)
              read (ScientistItemFile, '(q,a)', end=1088) 
     *              RecLineLength, RecLine(1:RecLineLength)
                  read (ScientistItemFile, '(q,a)', end = 1099)
     *                RecLineLength, RecLine(1:RecLineLength)
Writes
      write (ThisScientist, '(80x)')
      write (LastScientist, '(80x)')
              write (ThisScientist, '(80x)')
              write (ScientistHtmlFile, '(2x,a)') '</t
              write (ScientistHtmlFile, '(2x,a)') '</tabl
              write (ScientistHtmlFile, '(a)')
     *              '<table border="0" width="90%" 
     *              'align="center" bgcolor="#ffffff" '//
     *              'cellpadding="0" cellspacing="0"&g
              write (ScientistHtmlFile, '(2x,a)') '<t
              write (ScientistHtmlFile, '(4x,a)') '<t
              write (ScientistHtmlFile, '(6x,a)') '<table border="0
              write (ScientistHtmlFile, '(8x,a)') '<t
              write (ScientistHtmlFile, '(10x,a)') '<t
              write (LastScientist, '(80x)')
              write (TitleScientist, '(80x)')
              write (ScientistHtmlFile, '(4x,a)') '</t
              write (ScientistHtmlFile, '(2x,a)') '</t
              write (ScientistHtmlFile, '(a)')    '</tabl
              write (LastLocation, '(1024x)')
                      write (ScientistHtmlFile, '(2x,a)') '</t
                      write (ScientistHtmlFile, '(a)') '</tabl
                      write (ScientistHtmlFile, '(a)') 
     *                    '<b
                      write (ScientistHtmlFile, '(a)') 
     *                    '<table border="3" bgcolor="00ffff
                      write (ScientistHtmlFile, '(2x,a)') '<t
                      write (ScientistHtmlFile, '(4x,a)') '<t
                      write (ScientistHtmlFile, '(6x,a)')
     *                    '<b>Location of Containers
                      write (ScientistHtmlFile, '(6x,a)') 
     *                         RecLine(RecTab(4)+1:RecTab(5)-1) //
     *                   ', ' //RecLine(RecTab(5)+1:RecTab(6)-1)
                      write (ScientistHtmlFile, '(4x,a)') '</t
                      write (ScientistHtmlFile, '(2x,a)') '</t
                      write (ScientistHtmlFile, '(a)') '</tabl
                      write (ScientistHtmlFile, '(a)') 
     *                   '<table border="1" bgcolor="ccffff
                      write (ScientistHtmlFile, '(2x,a)')
     *                   '<tr bgcolor="00ffff" align="center
                      write (ScientistHtmlFile, '(4x,a)') 
     *                   '<th>Item #
                      write (ScientistHtmlFile, '(4x,a)') 
     *                   '<th>Activity ID
                      write (ScientistHtmlFile, '(4x,a)') 
     *                   '<th>Container #
                      write (ScientistHtmlFile, '(4x,a)') 
     *                   '<th>Container Area
                      write (ScientistHtmlFile, '(4x,a)') 
     *                   '<th>Column
                      write (ScientistHtmlFile, '(4x,a)') '<th>Row
                              write (ScientistHtmlFile, '(4x,a)') 
     *                 '<th>' // DBHeadline(DBnum)(DBTab(DBnum,L
     *                          :DBTab(DBnum, Loop+1)-1) // '</t
                      write (ScientistHtmlFile, '(2x,a)') '</t
                  write (ScientistHtmlFile, '(2x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(1)+1:RecTab(2)-1)
                  write (ScientistHtmlFile, '(4x,a)') '</t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)')
     * '<a href="http://walrus.wr.usgs.gov/infobank/'//ShortID(1:1
     * '/'//ShortID(1:IDLength)//'/html/'//LongID(1:IDLength+3)//
     * '.meta.html"> '//CapShortID(1:IDLength)//'&l
                  write (ScientistHtmlFile, '(4x,a)') '</t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)') ' '
                  write (ScientistHtmlFile, '(4x,a)') '</t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(2)+1:RecTab(3)-1)
                  write (ScientistHtmlFile, '(4x,a)') '</t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(3)+1:RecTab(4)-1)
                  write (ScientistHtmlFile, '(4x,a)') '</t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(6)+1:RecTab(7)-1)
                  write (ScientistHtmlFile, '(4x,a)') '</t
                  write (ScientistHtmlFile, '(4x,a)') '<t
                  write (ScientistHtmlFile, '(4x,a)')
     *                   RecLine(RecTab(7)+1:RecTab(8)-1)
                  write (ScientistHtmlFile, '(4x,a)') '</t
                          write (ScientistHtmlFile, '(4x,a)') '<t
                                  write (ScientistHtmlFile, '(4x,a)')
     *                                   ' '
                                  write (ScientistHtmlFile, '(4x,a)')
     *                    RecLine(RecTab(Loop)+1:RecTab(Loop+1)-1)    
                          write (ScientistHtmlFile, '(4x,a)') '</t
              write (ScientistHtmlFile, '(2x,a)') '</t
              write (ScientistHtmlFile, '(2x,a)') '</tabl
              write (ScientistHtmlFile, '(a)') 
     *              '<table border="0" width="90%" 
     *              'align="center" bgcolor="#ffffff" '//
     *              'cellpadding="0" cellspacing="0"&g
              write (ScientistHtmlFile, '(2x,a)') '<t
              write (ScientistHtmlFile, '(4x,a)') '<t
              write (ScientistHtmlFile, '(6x,a)') '<table border="0
              write (ScientistHtmlFile, '(8x,a)') '<t
              write (ScientistHtmlFile, '(10x,a)') '<t
Opens
      open (unit = HoldingsHeadersFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/programs/keep/holdings_headers.keep')
      open (unit = ItemsListFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name =
     *      '/infobank/tmp/containerhtmls4scientists.items.temp')
              open (unit = ScientistItemFile,
     *              access = 'sequential',
     *              form = 'formatted',
     *              status = 'old',
     *              name = ScientistLine(1:ScientistLineLength))
              open (unit = ScientistHtmlFile,
     *              access = 'append',
     *              form = 'formatted',
     *              status = 'unknown',
     *              name = '/infobank/programs/html'//
     *                     '/containerhtmls4scientists/scientists/'//
     *                     ScientistLine(NameStart:NameEnd)//'.html')
Calls
      call system ('/bin/rm /infobank/programs/html'//
     *    '/containerhtmls4scientists/scientists/*.html')
      call system ('/bin/cp /infobank/programs/html/index.html '//
     *    '/infobank/programs/html'//
     *    '/containerhtmls4scientists/scientists/.')
      call system ('/bin/ls -1 /infobank/programs/dbase/parseholdings'//
     *             '/scientists/a*/*.items > 
     *             '/infobank/tmp/containerhtmls4scientists.items.temp')
          call system 
     *       ('/bin/ls -1 /infobank/programs/dbase/parseholdings'//
     *        '/scientists/'//Alphabet(AlphaLoop:AlphaLoop)//
     *        '*/*.items >&g
     *        '/infobank/tmp/containerhtmls4scientists.items.temp')
              call stringlen (ThisScientist, ThisScientistLength)
              call htmlfoot (ScientistHtmlFile,
     *            '/infobank/programs/html'//
     *            '/containerhtmls4scientists/scientists/'//
     *            LastScientist(1:LastScientistLength)//'.html')
              call stringlen (LastScientist, LastScientistLength)
              call changecase ('TITLE', TitleScientist)
              call htmlhead (ScientistHtmlFile, 
     *            'Activity Physical Data: '//
     *            TitleScientist(1:NameEnd-NameStart+1))
              call includeit (ScientistHtmlFile,
     *            '/infobank/programs/html/tools/home.tabs')
              call includeit (ScientistHtmlFile,
     *            '/infobank/programs/html/tools/home.uses.tabs')
              call includeit (ScientistHtmlFile,
     *            '/infobank/programs/html/tools/home.cmgstaff.tabs')
              call includeit (ScientistHtmlFile,
     *         '/infobank/programs/html/tools/home.cmgfacilities.tabs')
              call includeit (ScientistHtmlFile,
     *         '/infobank/programs/html/tools/home.cmgdirections.tabs')
              call includeit (ScientistHtmlFile,
     *            '/infobank/programs/keep/contents.keep')
                  call stringlen(ShortID, IDLength)
                  call changecase ('SMALLS', ShortID)
              call htmlfoot (ScientistHtmlFile,
     *            '/infobank/programs/html'//
     *            '/containerhtmls4scientists/scientists/'//
     *            LastScientist(1:LastScientistLength)//'.html')

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/containerhtmls4scientists/containerhtmls4scientists.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Nov 4 03:40:33 PST 2013  (chd)