Converting patrons data into Alma’s xml format
This is a manual “step-by-step” procedure that you can simplify or automate (i.e. with cron scripts) at various stages.
We receive the patron data from a system called S3 (or ESSE3) in excel file:
but you can use any equivalent SIS that permits to extract your desired data in xls or csv format. The fields of our xls are the following:
Italian name | Translation | Perl array variable inside the scripts |
---|---|---|
tipo | user type | value NOT used inside the script, it’s only useful to understand the pl script we should use |
email uniud | institutional email | $Campi[0] |
nome | first name | $Campi[1] |
cognome | last name | $Campi[2] |
sesso | gender | $Campi[3] |
data nascita | birth date | $Campi[4] |
indirizzo residenza | stay address | $Campi[5] |
numero residenza | stay number | $Campi[6] |
comune residenza | stay city | $Campi[7] |
provincia residenza | stay country | $Campi[8] |
cap residenza | stay PO box | $Campi[9] |
nazione residenza | stay nation | $Campi[10] |
indirizzo domicilio | domestic address | $Campi[11] |
numero domicilio | domestic number | $Campi[12] |
comune domicilio | domestic city | $Campi[13] |
provincia domicilio | domestic country | $Campi[14] |
cap domicilio | domestic PO box | $Campi[15] |
nazione domicilio | domestic nation | $Campi[16] |
mail alternativa | alternate mail | $Campi[17] |
tel residenza | home phone | $Campi[18] |
tel domicilio | domestic phone | $Campi[19] |
cellulare | mobile phone | $Campi[20] |
codice fiscale | fiscal code | $Campi[21] |
matricola | student/personal ID | $Campi[22] |
username | username for aouthentication | $Campi[23] |
We delete the first column (user type), the first line (the names of the fields), and save the data in UTF-8 csv format with TAB separator:
Than we use the following perl scripts in order to extract a valid xml for Alma:
Note:
- The scripts are commented in Italian but the syntax is clear & simple.
- The scripts use statistical categories according to our University’s setup, so obviously they should be personalized according to each institution’s needs.
- In particular on the graduates script (laureati.pl) we set the expiry_date and the purge_date 366 days before the launch of the script, so we can use a very large “grace period” whn purging the patrons
3 Replies to “Converting patrons data into Alma’s xml format”
Leave a Reply
You must be logged in to post a comment.
Tried downloading your scripts, but the site is not available.
All 3 of the example scripts above are 404.
This page is useless without the linked scripts.
Could someone please repair these links?
studenti.pl http://biblioinfo.uniud.it/alma/script/studenti.pl
laureandi.pl http://biblioinfo.uniud.it/alma/script/laureandi.pl
laureati.pl http://biblioinfo.uniud.it/alma/script/laureati.pl
Corrected: excuse me & thanks