Revision 743
Added by Matt Jones about 23 years ago
marine.html | ||
---|---|---|
35 | 35 |
|
36 | 36 |
<script language="JavaScript"> |
37 | 37 |
window.location="http://@server@@servlet-path@?" + |
38 |
"action=query&anyfield=%&doctype=any&qformat=html&" + |
|
38 |
"action=query&anyfield=%&returndoctype=any&qformat=html&" +
|
|
39 | 39 |
"returnfield=resource/dataset/originator/individualName/surName&" + |
40 | 40 |
"returnfield=resource/dataset/originator/individualName/givenName&" + |
41 | 41 |
"returnfield=resource/dataset/originator/organizationName&" + |
... | ... | |
52 | 52 |
<noscript> |
53 | 53 |
Please click |
54 | 54 |
<a href="http://@server@@servlet-path@? |
55 |
action=query&anyfield=%&doctype=any&qformat=html& |
|
55 |
action=query&anyfield=%&returndoctype=any&qformat=html&
|
|
56 | 56 |
returnfield=resource/dataset/originator/individualName/surName& |
57 | 57 |
returnfield=resource/dataset/originator/individualName/givenName& |
58 | 58 |
returnfield=resource/dataset/originator/organizationName& |
... | ... | |
65 | 65 |
|
66 | 66 |
Please click |
67 | 67 |
<a href="http://@server@@servlet-path@?? |
68 |
action=query&anyfield=%&doctype=any&qformat=html& |
|
68 |
action=query&anyfield=%&returndoctype=any&qformat=html&
|
|
69 | 69 |
returnfield=resource/dataset/originator/individualName/surName& |
70 | 70 |
returnfield=resource/dataset/originator/individualName/givenName& |
71 | 71 |
returnfield=resource/dataset/originator/organizationName& |
Also available in: Unified diff
Modifications that change the package handling behavior of metacat. Package
membership is now determined by an identifier being used as either the subject
or object in a triple. One can not request arbitrary returndocs -- only
those types that have package information embedded can be "returndoctype"
document types. Right now only one "returndoctype" field can be provided.
This needs to be changed to support multiple potential returndoctype fields.
Packages are now defined by triple elements in the eml-dataset-2.0 module,
and so changes reflect this.
Added a new column (packagetype) to xml_relation that defines the document type
of the package for that record.
In addition, I changed the behavior of metacat queries when "back tracing" is
requested. If a "returndoc" element is present in the pathquery, then the
documents are searched, and any hits are traced back to the package with
which the hit document is linked, if it is of type returndoc. Thus, any
hit returns all of the package documents with which the hit document is
associated. If a hit does not have an associated package, no record is
returned for that hit (this is different from previous metacat behavior).
If no returndoc parameter is provided, all docs are searched and all hits
returned.
A new query parameter was added to pathquery that allows us to filter which
document types are searched (independent of the back tracing feature). If
one or more "filterdoctype" element is included, only documents which are
in that list of types will be searched. If you search for doctype A, but
request that doctype B be returned, only documents of type B that have a
package member of type A and match the search criteria will be returned.
To implement this I had to modify many html files, and change substantial
code in DBQuery, QuerySepcification, and MetaCatServlet.
These changes break the URL handling code that was present previously --
now all identifiers are assumed to be from the metacat system, not in
URL format. This probably needs to be revisited.