Project

General

Profile

« Previous | Next » 

Revision 465

Added by berkley over 23 years ago

Added backtrack functionality. Backtracking works by passing a returndoc parameter. There can be more than one. If a document that is hit by a query is not of type returndoc then it searches the database for a related file of type returndoc. If one is found it is displayed, if no relation is found, the original is displayed.

Support was also added for an index of relations. the table xml_relation handles the all of the relation indexing.

View differences:

metacatURL.java
20 20
{
21 21
  private String[][] params = new String[200][2];
22 22
  private String urlType = null;
23
  private String url;
23 24
  
24 25
  /**
25 26
   * This constructor takes a string url and parses it according to the  
......
36 37
   */
37 38
  public metacatURL(String url) throws MalformedURLException
38 39
  {
40
    this.url = url;
39 41
    parseURL(url);
40 42
  }
41 43
  
......
152 154
  }
153 155
  
154 156
  /**
157
   * returns a string representation of this metacatURL
158
   */
159
  public String toString()
160
  {
161
    return this.url;
162
  }
163
  
164
  /**
155 165
   * Prints the parameters neatly to system.out
156 166
   */
157 167
  public void printParams()

Also available in: Unified diff