Project

General

Profile

« Previous | Next » 

Revision 738

Added by bojilova over 23 years ago

fix to view abstract only when abstractpath parameter was specified

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
699 699
      }
700 700
      if (params.containsKey("abstractpath")) {
701 701
        abstrpath = ((String[])params.get("abstractpath"))[0];
702
        viewAbstract(response, abstrpath, docs[0]);
702
        if ( !abstrpath.equals("") && (abstrpath != null) ) {
703
          viewAbstract(response, abstrpath, docs[0]);
704
          return;
705
        }
703 706
      }
704 707
      if ( (docs.length > 1) || qformat.equals("zip") ) {
705 708
        zip = true;
......
990 993
    Connection conn = null;
991 994
    try {
992 995
      conn = util.getConnection();
993
      DocumentImpl doc = new DocumentImpl(conn, docid);
994 996
    
995 997
      Object[] abstracts = DBQuery.getNodeContent(abstractpath, docid, conn);
996 998
    

Also available in: Unified diff