Inside the <head>
tag include the following lines:
<script
type="text/javascript" src="http://openscience.si/jan/scripts/osebe.js"></script>
<link
rel="stylesheet" type="text/css" href="http://openscience.si/jan/content/osebe.css">
Both files (js, css) can be downloaded and modified, but do not forget to include them in your web server afterwards!
Somewhere inside the <body>
tag include the following HTML element:
<div
id="Div0"></div>
E-publications will appear within this element osebe Bo��tjan Pokorny The id
value doesn't have to be "Div0" (see below).
Immediately after <div>
add the following HTML code:
<script
type="text/javascript">
boolPrevedi = true; // set to true for English interface
prikaziOsebe('conorid=4579939', 'Div0'); // for a detailed explanation of the parameters, see below
</script>
Set boolPrevedi to true only when you want to show the English interface. The default value is set to false (Slovenian interface).
1. parameter: a string of characters where you enter which author is to be shown, for example:
'arrsid=06823'
or 'conorid=4579939'
, where arrsid represents the researcher number and conorid represents CONOR/COBISS number of the author.
2. The argument: a string of characters where you enter in which <div>
element should the e-publications appear. Specify the id
of the element, which in our case is 'Div0'
.
The following example shows a complete HTML document:
<!DOCTYPE
html>
<html>
<head>
<meta
charset="utf-8">
<title>Osebe
primer</title>
<script
type="text/javascript" src="http://openscience.si/jan/scripts/osebe.min.js"></script>
<link
rel="stylesheet" type="text/css" href="http://openscience.si/jan/content/osebe.min.css"
>
</head>
<body>
<div
id="Div0"></div>
<script
type="text/javascript">
boolPrevedi=true;
prikaziOsebe('conorid=4579939',
'Div0');
</script>
</body>
</html>
End-result looks like the following: