% #----------------------------------------------------------------- # GDL # Connecting People's Knowledge # Copyright (c) 1998-2001 by KMRG ITB, kmrg@kmrg.lib.itb.ac.id # Version 3.1, April 2001, by: Ismail Fahmi, ismail@itb.ac.id # Free for IndonesiaDLN Members #----------------------------------------------------------------- # ---------------- init ---------------- include "./inc/types.inc"; $goinit = mysql_query("SELECT DC_IDENTIFIER_HIERARCHY, DC_CONTRIBUTOR_MODIFIEDBY, REVIEW, ACCESS_RIGHT FROM metadata WHERE DC_IDENTIFIER = '$id'"); if ($goinit){ $rinit = mysql_fetch_array($goinit); $reader_allowed = FALSE; $DC_CONTRIBUTOR_MODIFIEDBY = $rinit[DC_CONTRIBUTOR_MODIFIEDBY]; if ($rinit[ACCESS_RIGHT] == "Intranet"){ if (($DC_CONTRIBUTOR_MODIFIEDBY == $sess_email)|| ($sess_group == "1")) { $reader_allowed = TRUE; } else { if ($gochk = mysql_query("SELECT GID FROM metadata_group WHERE DC_IDENTIFIER = '$id'")) { while ($rchk = mysql_fetch_array($gochk)){ if ($sess_addgroup[$rchk[GID]] == "1"){ $reader_allowed = TRUE; } } } } } else { $reader_allowed = TRUE; } if ($reader_allowed) { // allowed to read if (empty($sess_last_clicked_top)){ $sess_last_clicked_top = $rinit[DC_IDENTIFIER_HIERARCHY]; } session_register("sess_article_master"); $sess_article_master = $rinit[DC_IDENTIFIER_HIERARCHY]; $cat_target = $sess_last_clicked_top; include "./inc/create_path.inc"; $REVIEW = $rinit[REVIEW]; } else { // not allowed to read $title = "Intranet Only"; $content = "./pages/not_authorized.inc"; include "./template/template_noad.html"; exit; } } %>
<%
echo "".stripslashes($row[DC_TITLE]).""; if (strlen($row[DC_TITLE_ALTERNATIVE])>5){ echo "(".stripslashes($row[DC_TITLE_ALTERNATIVE]).") "; } echo "".stripslashes($row[DC_CREATOR])."
".$types[$row[DC_TYPE]].""; if (empty($pub_url)&&($pub_id != $DC_PUBLISHER_ID)){ echo " WARNING: UNKNOWN PUBLISHER ADDRESS ($pub_id) !!
(".$rowc[DC_RELATION_HASFILENAME].", ". $rowc[DC_RELATION_HASSIZE]." bytes) $imgremark"; } else { echo "$c. $url (".$rowc[DC_RELATION_HASFILENAME].", ". $rowc[DC_RELATION_HASSIZE]." bytes) $imgremark"; } echo " "; if ($c == $row[DC_RELATION_COUNT]){ break; } } } else { echo mysql_error(); } # ---------- related categories --- echo " Categories:"; if ($gocat = mysql_query("SELECT DC_IDENTIFIER_HIERARCHY from toc WHERE DC_IDENTIFIER = '$id' order by DC_IDENTIFIER_HIERARCHY")) { while($rowcat = mysql_fetch_array($gocat)){ echo " ".$row[DC_CREATOR_ORGNAME]; if (!empty($row[DC_CREATOR_EMAIL])){ $str_creator .= " Email: ".$row[DC_CREATOR_EMAIL]." "; } if (!empty($row[DC_CREATOR_BDAY])){ $str_creator .= "Birth date: ".$row[DC_CREATOR_BDAY]." "; } if (!empty($row[DC_CREATOR_STREET])){ $str_creator .= $row[DC_CREATOR_STREET]; } if (!empty($row[DC_CREATOR_LOCALITY])){ $str_creator .= " ".$row[DC_CREATOR_LOCALITY]; } if (!empty($row[DC_CREATOR_REGION])){ $str_creator .= " ".$row[DC_CREATOR_REGION]; } if (!empty($row[DC_CREATOR_COUNTRY])){ $str_creator .= " ".$row[DC_CREATOR_COUNTRY]; } if (!empty($row[DC_CREATOR_PCODE])){ $str_creator .= " ".$row[DC_CREATOR_PCODE]; } echo " Creator: $str_creator "; # --------- publisher -------- echo "Publisher: $publisher "; echo "Language: ".$row[DC_LANGUAGE]; echo " Description: ".ereg_replace("\n"," ",stripslashes($row[DC_DESCRIPTION]))." "; if (!empty($row[DC_DESCRIPTION_ALTERNATIVE])){ echo "Description (English): ".ereg_replace("\n"," ",stripslashes($row[DC_DESCRIPTION_ALTERNATIVE]))." "; } %> |
|
<% include "./inc/border_bottom.inc"; include "./inc/menu_body_end.inc"; %>