Building links to GeneWeb
gwd is the GeneWeb server that accepts requests and returns results. Its interfaces are entirely web based: it behaves like a HTTP server.
All query parameters for the gwd server are directly available in the URL window of your web browser to build links to GeneWeb pages.
They may be useful both to GeneWeb users, and to persons who, without knowledge of GeneWeb, may want to insert in some of their web documents a link to a page produced by a GeneWeb server that they may have found on the Web.
- 1 Base address of a GeneWeb database
- 2 Requests to gwd server
- 3 Links to persons, access_by_key and opt=no_index
- 4 Language
- 5 Template
- 6 Pedigree collapse, dag=on
- 7 Origin of a person, opt=from
- 8 Cancel GeneWeb links, cgl=on/off
- 9 Names for one person, opt=misc
- 10 Hidden titles, all_titles
- 11 Refresh modified pages, escache
Base address of a GeneWeb database
The welcome page of a GeneWeb base can be found at an URL of the form
serveris the IP address or DNS name of the server hostion the GeneWeb daemon;
portis the TCP port on which the daemon is listening, the default value being 2317 for base access with gwd and 2316 for management with gwsetup (these two parameters may be changed at launch time of these two programs);
baseis the name of the GeneWeb database.
To ease things, gwd opens up by displaying the standard page
welcome.txt on which a multiplicity of text capture zones and clickable buttons provides a convenient way to build a complex request.
Requests to gwd server
Requests to gwd server are formulated as URLs loaded with parameters. The question mark
? after the base adress marks the beginning of the request:
It may be sometimes necessary to manually edit the URL to obtain the desired effect because some parameters aren't available for selection and/or clicking for all pages of the interface.
The request in itself is the sum of all query parameters added to the end of the url after the question mark. The gwd server analyse the differents parameters and will render a specific page. Depending on the situation, the delimiter between the query parameters in the URLs may change between
&. Both can be used simultaneously.
Results are returned as text. If you send the URL request from a browser (it can also be sent from any HTTP compatible program), then the text will be treated as HTML code.
Links to persons, access_by_key and opt=no_index
Within GeneWeb, persons can be identified through two main methods, names and id:
p=first_name;n=last_name;oc=occurrenceif there are homonyms;
i=1234GeneWeb internal id.
GeneWeb id numbers are unique across a base, but may change over time after cleanup for instance.
Les numéros d’id des individus sont modifiés par la commande
gwc si vous faites un nettoyage de la base. Ils ne sont donc pas pérrènes.
Obtaining permanent links is achieved through two methods:
- using option
access_by_key=yesin the .gwf configuration file of your base, which will prevent the use of internal ids for URL construction;
opt=no_indexto an URL containing id numbers will return the URL with unique but bulkier keys of individuals
p=firstname;n=lastname;oc=occurenceinstead of id numbers.
This last remark applies to all GeneWeb queries, particularly those about parental relationship where many individuals are referenced.
Pedigree collapse, dag=on
On ascendant and descendant trees,
dag=on will merge common anscestors.
Origin of a person, opt=from
opt=from option is used to determine which source file a particular person's data comes from. See merging bases for details. This information appears in italic after the family of the person, and is visible only to wizards.
cgl=off (cancel geneweb links) option to cancel GeneWeb links in a given page. This may be useful for printing, or to do a copy/paste operation of a page into some other document where you don not want to transport the various GeneWeb links.
Names for one person, opt=misc
opt=misc option will display at the end of the page all the first_name last_name alias combinations considered valit-d to invoque a particular person.
Hidden titles, all_titles
Refresh modified pages, escache