SVOCat Documentation

Version 2.2, March 2021, author: Carlos Rodrigo

HomeDownloadDocumentationExamplesCreditsHelp-Desk
1. Introduction
2. Download
    2.1. Extract
    2.2. Permissions
3. The files
4. Example
5. Configure
    5.1. First
    5.2. Project
    5.3. Mysql
    5.4. Web
    5.5. VO options
    5.6. Fields
    5.7. Photometry
    5.8. Search Opts.
    5.9. File Paths
    5.10. Scripts
    5.11. Registry
    5.12. Spectra
    5.13. Links
    5.14. References
6. Edit
7. Web Design
    7.1. style.css
    7.2. Colors
    7.3. header.php
    7.4. footer.php
8. Extra tips
Previous   Next

Configuration

[First][Project][Mysql][Web][VO options][Fields][Photometry][Search Opts.][File Paths][Scripts][Registry][Spectra][Links][References]

Links to external URLs in results table

You can add links to any column in the results table. In some cases, you can even include columns only to contain links.

In our example we are going to want to include several types of links:

By now:

  • A link in the name column pointing to the SIMBAD information for this object.
  • A link to the object spectrum in ascii format.
  • A link to the "preview" plot of the object spectrum (that will open in a separate window).
  • A link to open a list of all the available links.

and later we will also include:

  • A link to the object spectrum in VOTable format.

To do this we need to configure 4 new "special" columns in the fields configuration so that we can include links in those columns. These ones do not correspond to any database field, they are just placeholders for the links.

(we have configured the "spec_vot" column as be shown never by now, so it doesn't appear in the web page).

Now we go to the links configuration to configure how to show these links.

See that you can use, in some configuration options, {$MYFIELD} as a place holder that will be replace with the value of the MYFIELD column for each catalogue entry.

Links with OpenWindow in results table

You can also include links that open a windows displaying some content. This is often used to preview some images associated to catalogue entries. But other types of html content could be displayed.

In the case of our example catalogue we include a link that will open a window showing a preview of the object spectrum.

This only applies to the web presentation of the catalogue. That's why in the section above we have included a link to download the plot only in the VO services and we include here the preview of the curve in the web service.

Datalink configuration

Datalink is a VO protocol designed to associate links to catalogue entries. If you activate it you need to define also a field to be used as Datalink ID. And,below, you will have to define what links you want to show and their properties.

Links for Datalink

In our example catalogue we have three types of links:

  • Link to the spectrum (ascii file).
  • Link to the plot of the spectrum (png file).

Including SSAP spectra

If you have spectra in your catalogue and you have decided to implement a SSAP service, you can configure this links section in a more interesting way.

You include the links to spectra through the SSAP protocol, which is richer and gives more information than just downloading the ascii files.

You include a dataLink protocol with a link associated to the all links columns.

And include all the possible files in the DataLink content.

And finally the catalogue web page will include all the information.

Previous   Next