throws IOException, java.sql.SQLException { JspWriter out = pageContext.getOut();   DCValue[] values = item.getDC(Item.ANY, Item.ANY, Item.ANY);  out.println("<P align=center>Full metadata record</P>");  HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();   if(item.canEdit()) { String editLink = request.getContextPath() + "/tools/edit-item" + "?item_id="+item.getID();  out.println("<a href=\""+editLink+"\">Edit</a>"); }   out.println("<center><table class=\"itemDisplayTable\">"); out.println("<tr><th class=\"standard\">DC Field</th><th class=\"standard\">Value</th><th class=\"standard\">Language</th></tr>");  for (int i = 0; i < values.length; i++) { boolean hidden = false;   if (values[i].element.equals("description") && (values[i].qualifier != null && values[i].qualifier.equals("provenance"))) { hidden = true; }  if (!hidden) { out.print("<tr><td class=\"metadataFieldLabel\">"); out.print(values[i].element); if (values[i].qualifier != null) { out.print("." + values[i].qualifier); } out.print("</td><td class=\"metadataFieldValue\">"); out.print(values[i].value); out.print("</td><td class=\"metadataFieldValue\">");  if (values[i].language == null) { out.print("-"); } else { out.print(values[i].language); }  out.println("</td></tr>"); } }  listCollections();  out.println("</table></center><br>");  listBitstreams(); }
throws IOException, java.sql.SQLException { JspWriter out = pageContext.getOut();   DCValue[] values = item.getDC(Item.ANY, Item.ANY, Item.ANY);  out.println("<P align=center>Full metadata record</P>");  HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();   out.println("<center><table class=\"itemDisplayTable\">"); out.println("<tr><th class=\"standard\">DC Field</th><th class=\"standard\">Value</th><th class=\"standard\">Language</th></tr>");  for (int i = 0; i < values.length; i++) { boolean hidden = false;   if (values[i].element.equals("description") && (values[i].qualifier != null && values[i].qualifier.equals("provenance"))) { hidden = true; }  if (!hidden) { out.print("<tr><td class=\"metadataFieldLabel\">"); out.print(values[i].element); if (values[i].qualifier != null) { out.print("." + values[i].qualifier); } out.print("</td><td class=\"metadataFieldValue\">"); out.print(values[i].value); out.print("</td><td class=\"metadataFieldValue\">");  if (values[i].language == null) { out.print("-"); } else { out.print(values[i].language); }  out.println("</td></tr>"); } }  listCollections();  out.println("</table></center><br>");  listBitstreams(); }
    private void renderFull()        throws IOException, java.sql.SQLException    {        JspWriter out = pageContext.getOut();        // Get all the metadata        DCValue[] values = item.getDC(Item.ANY, Item.ANY, Item.ANY);            out.println("<P align=center>Full metadata record</P>");        HttpServletRequest request =            (HttpServletRequest) pageContext.getRequest();        // show edit link        if(item.canEdit())        {            String editLink = request.getContextPath() + "/tools/edit-item"                + "?item_id="+item.getID();                            out.println("<a href=\""+editLink+"\">Edit</a>");        }        // Three column table - DC field, value, language        out.println("<center><table class=\"itemDisplayTable\">");        out.println("<tr><th class=\"standard\">DC Field</th><th class=\"standard\">Value</th><th class=\"standard\">Language</th></tr>");                for (int i = 0; i < values.length; i++)        {            boolean hidden = false;                        // Mask description.provenance            if (values[i].element.equals("description") &&                    (values[i].qualifier != null &&                     values[i].qualifier.equals("provenance")))            {                hidden = true;            }            if (!hidden)            {                out.print("<tr><td class=\"metadataFieldLabel\">");                out.print(values[i].element);                if (values[i].qualifier != null)                {                    out.print("." + values[i].qualifier);                }                out.print("</td><td class=\"metadataFieldValue\">");                out.print(values[i].value);                out.print("</td><td class=\"metadataFieldValue\">");                if (values[i].language == null)                {                    out.print("-");                }                else                {                    out.print(values[i].language);                }                out.println("</td></tr>");            }        }                listCollections();                out.println("</table></center><br>");                listBitstreams();    }