';
while ($record = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo '
';
$currenttype = $record['reftype'];
$currentrefno = $record['recnumber'];
$currentauthors = $record['authors'];
$currentsecauthors = $record['secondaryauthors'];
$currenttitle = $record['title'];
$currentsectitle = $record['secondarytitle'];
$currentterauthors = $record['tertiaryauthors'];
$currentpublisher = $record['publisher'];
$currentpages = $record['pages'];
$currentvol = $record['volume'];
$currentnum = $record['number'];
$currentyear = $record['year'];
$currentdate = $record['publishdate'];
$currentisbn = $record['isbn'];
$currentsection = $record['section'];
$currentacc = $record['accessionnumber'];
$currentabstract = $record['abstract'];
$currenturl = $record['urls'];
$current7 = $record['custom7'];
$currentwords = $record['custom6'];
$currenttmk = $record['custom1'];
$currentkeywords = $record['keywords'];
$currentpublocation = $record['publishlocation'];
/* JOURNAL ARTICLE */
if($currenttype == 17){
echo "
Record Number: $currentrefno
";
echo "
Type: Journal Article
";
if($currentauthors != '')
echo "
Author(s): $currentauthors
";
if($currentsectitle != '')
echo "
Journal: $currentsectitle
";
if($currenttitle != '')
echo "
Title: $currenttitle
";
if($currentpages != '')
echo "
Pages: $currentpages
";
if($currentvol != '')
echo "
Volume: $currentvol
";
if($currentnum != '')
echo "
Number: $currentnum
";
if($currentyear != '')
echo "
Year: $currentyear
";
if($currentdate != '')
echo "
Date: $currentdate
";
if($currentisbn != '')
echo "
ISBN/ISSN: $currentisbn
";
if($currentacc != '')
echo "
Accession Number: $currentacc
";
if($currentkeywords != '')
echo "
Keywords: $currentkeywords
";
if($currenttmk != '')
echo "
TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "
Abstract: $currentabstract
";
if(preg_match('
', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 27){
/* REPORT */
echo "Record Number: $currentrefno
";
echo "Type: Report
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currentpublisher != '')
echo "For: $currentpublisher
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 19){
/* MAGAZINE ARTICLE */
echo "Record Number: $currentrefno
";
echo "Type: Magazine Article
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currentpublisher != '')
echo "Publisher: $currentpublisher
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentvol != '')
echo "Volume: $currentvol
";
if($currentnum != '')
echo "Number: $currentnum
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 13){
/* GENERIC */
echo "Record Number: $currentrefno
";
echo "Type: Generic
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currentpublisher != '')
echo "Publisher: $currentpublisher
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentvol != '')
echo "Volume: $currentvol
";
if($currentnum != '')
echo "Number: $currentnum
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 10){
/* CONFERENCE PROCEEDINGS */
echo "Record Number: $currentrefno
";
echo "Type: Conference Proceedings
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentsectitle != '')
echo "Conference: $currentsectitle
";
if($currentyear != '')
echo "Year of Conference: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 6){
/* BOOK */
echo "Record Number: $currentrefno
";
echo "Type: Book
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentedition != '')
echo "Edition: $currentedition
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentpublisher != '')
echo "Publisher: $currentpublisher
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 5){
/* BOOK SECTION */
echo "Record Number: $currentrefno
";
echo "Type: Book Section
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentpages != '')
echo "Pages: $currentpages
";
if($currentsection != '')
echo "Section: $currentsection
";
if($currentedition != '')
echo "Edition: $currentedition
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentpublisher != '')
echo "Publisher: $currentpublisher
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 46){
/* GOVERNMENT DOCUMENT */
echo "Record Number: $currentrefno
";
echo "Type: Book Section
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currentsecauthors != '')
echo "Department: $currentsecauthors
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 47){
/* CONFERENCE PAPER */
echo "Record Number: $currentrefno
";
echo "Type: Book Section
";
if($currentauthors != '')
echo "Author(s): $currentauthors
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentsectitle != '')
echo "Secondary Title: $currentsectitle
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentpublocation != '')
echo "Location: $currentpublocation
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($currentabstract != '')
echo "Abstract: $currentabstract
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else if($currenttype == 23){
/* NEWSPAPER ARTICLE */
echo "Record Number: $currentrefno
";
echo "Type: Newspaper Article
";
if($currentauthors != '')
echo "Reporter: $currentauthors
";
if($currenttitle != '')
echo "Title: $currenttitle
";
if($currentsectitle != '')
echo "Newspaper: $currentsectitle
";
if($currentyear != '')
echo "Year: $currentyear
";
if($currentdate != '')
echo "Date: $currentdate
";
if($currentnum != '')
echo "Page: $currentnum
";
if($currentpublocation != '')
echo "City: $currentpublocation
";
if($currentpublisher != '')
echo "Publisher: $currentpublisher
";
if($currentwords != '')
echo "Number of Words: $currentwords
";
if($currentkeywords != '')
echo "Keywords: $currentkeywords
";
if($currenttmk != '')
echo "TMK Keywords: $currenttmk
";
if($current7 != '')
echo "Full Article: $current7
";
if(preg_match('', $currenturl) == 0 && $currenturl != '')
echo "URL(s): $currenturl
";
}else{
foreach($record as $field){
echo "$field
";
}
}
echo "