source: greenstone3/trunk/web/sites/localsite/collect/infomine/README@ 16486

Last change on this file since 16486 was 8159, checked in by nzdl, 20 years ago

fixed up this collection os that it works again. InfomineProxy servicerack renamed to IViaProxy, and url now specified in buildConfig.xml. modified the formatting a bit too.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1This collection talks to the iVia installation at INFOMINE, Riverside,
2California. The software should work with any iVia installation.
3
4Cgi scripts are called to do searching of and retrieval from the database.
5All three are fairly generic CGI scripts; iVia's "theming" ability is used to
6 get the data back in the format we want-- there is a gsdl3 theme.
7
8To create a new collection that talks to an iVia database, you need to create
9the two configuration files, collectionConfig.xml, and buildConfig.xml.
10The collectionConfig.xml needs to contain any display information for the
11collection, and any metadata that is available. Also it can contain format
12information for document display or search result lists if the default is
13not useful.
14
15The buildConfig.xml file needs to specify the IViaProxy serviceRack
16class. Inside this element should be the url of the iVia installation that
17you want to connect to. Here is an example:
18
19<buildConfig>
20 <metadataList/>
21 <serviceRackList>
22 <serviceRack name="IViaProxy">
23 <iViaServer url="http://infominehelper.ucr.edu"/>
24 </serviceRack>
25 </serviceRackList>
26</buildConfig>
27
28
29The following describes the iVia cgi scripts.
30
31For performing a search:
32************************
33
34 <serverhome>/cgi-bin/canned_search
35
36Parameters:
37 Required parameters: theme=gsdl3&query=xxx
38 Useful parameters: no_of_records_per_page=10&start_page_no=1&fields='kw,su'
39 Other parameters: http://infomine.ucr.edu/help/adders/index.php?section=11
40 Example: http://infomine.ucr.edu/cgi-bin/canned_search?query=tree&
41 theme=gsdl3&no_of_records_per_page=10&start_page_no=1
42
43Fields include Title (ti), Subject (su), Keyword (kw), Author (au),
44Description (de) and full text (fu). 'all' will search all fields.
45It's possible to do uch more advanced searches including phrase searching
46and bolean queries.
47
48The canned_search result page will look something like this:
49 Resources: 58
50 Ids: 1015 22128 1730 6020 2981 1014 20147 2097 46569 4360
51
52For getting an HTML representation of a record:
53***********************************************
54
55 <serverhome>/cgi-bin/view_record
56
57Parameters:
58 Required parameters: theme=gsdl3&record_id=x
59 Example: http://infomine.ucr.edu/cgi-bin/view_record?theme=gsdl3&
60 record_id=2097
61
62The result page will be an HTML fragment; specifically, it will be an HTML
63table. Again, the formatting is quite flexible. There's one current
64problem: a lot of the data is displayed as hypertext links to new infomine
65searches; This should be changed eventually.
66
67For now, the Greenstone services process the records, replacing infomine
68links with Greenstone links where possible.
69
70For getting metadata for a set of records:
71******************************************
72
73 <serverhome>/cgi-bin/view_record_set
74
75Parameters:
76 Required parameters: theme=gsdl3&record_id_list=id1,id2,id3
77 Optional parameter: field_list=f1,f2,f3
78 Example: http://infomine.ucr.edu/cgi-bin/view_record_set?theme=gsdl3&
79 record_id_list=1015,2128,1730&field_list=url,title
80
81The result will look like this:
82
83 Record: 1015
84 url: http://www.fruit.affrc.go.jp/index-e.html
85 title: National Institute of Fruit Tree Science (Japan)
86
87 Record: 2128
88 url: http://www.publish.csiro.au/journals/ajb/
89 title: Australian Journal of Botany
90
91 Record: 1730
92 url: http://usda.mannlib.cornell.edu/reports/erssor/specialty/fts-bb/
93 title: Fruit and Tree Nuts : USDA Economics and Statistics System
94
95There are many different metadata fields that can be requested, including
96keywords, subjects, ivia_description, access, expert_created, foreign_source,
97foreign_id, and so on.
98
99Note that the metadata always fits on one line (whitespace is explicitly
100normalised to space) to make parsing easier. Generally, the metadata is
101in ISO-8859-15 format (i.e. ISO-8859-1 plus the Euro currency symbol).
102Metadata is usually plain text, though the description field may contain
103HTML entities and limited set of HTML elements (bold tags, italic tags,
104links, and a few others).
105
Note: See TracBrowser for help on using the repository browser.