How to automatically include a list of your publications from the ISR database into a web page

From ISRWiki
Jump to navigation Jump to search

A list of publications from a person or a lab can be obtained automatically from the central database at the ISR web server.

from a person

  • obtain you user ID: go to your institutional web page from http://welcome.isr.ist.utl.pt/people/ by clicking on your page and checking the number right after the "id_people=" string
  • the link "http://welcome.isr.ist.utl.pt/api.asp?id_people=n" where n is your ID returns a list of your publications in plain HTML
  • you can format the appearance of the output using Cascading Style Sheets (CSS)
  • example for PHP and n=1, but straightforwardly adaptable to other frameworks:

<?php $pubs = file_get_contents("http://welcome.isr.ist.utl.pt/api.asp?id_people=1"); echo iconv("ISO-8859-1", "UTF-8", $pubs); ?>

The result of the use of this code can be seen here: http://users.isr.ist.utl.pt/~yoda/homepage/publications.php

from a lab

  • obtain the lab ID
  • the link "http://welcome.isr.ist.utl.pt/api.asp?id_lab=n" where n is the lab ID returns a list of your publications in plain HTML
  • you can format the appearance of the output using Cascading Style Sheets (CSS)
  • example for PHP and n=1, but straightforwardly adaptable to other frameworks:

<?php $pubs = file_get_contents("http://welcome.isr.ist.utl.pt/api.asp?id_lab=1"); echo iconv("ISO-8859-1", "UTF-8", $pubs); ?>