338 lines
9.6 KiB
HTML
338 lines
9.6 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>Vodenje bibliografij v sistemu COBISS</title>
|
||
|
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
|
||
|
|
||
|
|
||
|
<script src='build/pdfmake.min.js'></script>
|
||
|
<script src='build/vfs_fonts.js'></script>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
|
||
|
function naredipdf(){
|
||
|
//var source=document.getElementById("username").value
|
||
|
var pdf = new jsPDF('p', 'pt', 'letter')
|
||
|
|
||
|
// source can be HTML-formatted string, or a reference
|
||
|
// to an actual DOM element from which the text will be scraped.
|
||
|
, source = $('#fromHTMLtestdiv')[0]
|
||
|
|
||
|
// we support special element handlers. Register them with jQuery-style
|
||
|
// ID selector for either ID or node name. ("#iAmID", "div", "span" etc.)
|
||
|
// There is no support for any other type of selectors
|
||
|
// (class, of compound) at this time.
|
||
|
, specialElementHandlers = {
|
||
|
// element with id of "bypass" - jQuery style selector
|
||
|
'#bypassme': function(element, renderer){
|
||
|
// true = "handled elsewhere, bypass text extraction"
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
margins = {
|
||
|
top: 80,
|
||
|
bottom: 60,
|
||
|
left: 40,
|
||
|
width: 522
|
||
|
};
|
||
|
// all coords and widths are in jsPDF instance's declared units
|
||
|
// 'inches' in this case
|
||
|
var source="<!DOCTYPE html><html><head><meta charset=\"UTF-8\"><title>Title of the document</title></head><body>š</body></html>"
|
||
|
pdf.fromHTML(
|
||
|
source // HTML string or DOM elem ref.
|
||
|
, margins.left // x coord
|
||
|
, margins.top // y coord
|
||
|
, {
|
||
|
'width': margins.width // max width of content on PDF
|
||
|
, 'elementHandlers': specialElementHandlers
|
||
|
},
|
||
|
function (dispose) {
|
||
|
// dispose: object with X, Y of the last line add to the PDF
|
||
|
// this allow the insertion of new lines after html
|
||
|
pdf.save('Test.pdf');
|
||
|
},
|
||
|
margins
|
||
|
)
|
||
|
}
|
||
|
function cobiss()
|
||
|
{
|
||
|
var knjiznica="Knjižnica FKKT in FRI\n Večna pot 113, Ljubljana\n Tel:01/4798005, 4798006\n\n"
|
||
|
var avtor=document.getElementById("avtor").value
|
||
|
var predlagatelj="Predlagatelj dokumenta(avtor/soavtor): "
|
||
|
var avtor1=predlagatelj.concat(avtor)
|
||
|
var delo=document.getElementById("naslov").value
|
||
|
var avtorji=document.getElementById("avtorji").value
|
||
|
var slo=document.getElementById("slo").value
|
||
|
var eng=document.getElementById("angl").value
|
||
|
var vir=document.getElementById("vir").value
|
||
|
if (vir.localeCompare("")!=0){
|
||
|
var vir1=vir.match(/.{1,70}/g);
|
||
|
vir = vir1.join(" ") }
|
||
|
var tipologija=document.getElementById("tipologija").value
|
||
|
var prispevki=document.getElementById("prispevki").value
|
||
|
var priloge="Priloga: "
|
||
|
var datum = new Date();
|
||
|
var date="Datum: "+datum.getDate() + ". "+ (datum.getMonth()+1) + ". " + datum.getFullYear()
|
||
|
|
||
|
if (document.getElementById("priloga").checked){
|
||
|
|
||
|
var priloge1=document.getElementById("priloga").value
|
||
|
priloge=priloge+priloge1
|
||
|
}
|
||
|
if (document.getElementById("fotokopija").checked){
|
||
|
|
||
|
var fotokopija=document.getElementById("fotokopija").value
|
||
|
priloge=priloge+", "+fotokopija
|
||
|
}
|
||
|
if (document.getElementById("dokazila").checked){
|
||
|
|
||
|
var dokazila=document.getElementById("dokazila").value
|
||
|
priloge=priloge+", "+dokazila
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
var docDefinition = {
|
||
|
content: [// using a { text: '...' } object lets you set styling properties
|
||
|
{ text: knjiznica, fontSize: 12 },
|
||
|
|
||
|
// if you set pass an array instead of a string, you'll be able
|
||
|
// to style any fragment individually
|
||
|
{
|
||
|
text: avtor1,fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
|
||
|
{ text: 'Spremni list o dokumentu/delu za vodenje bibliografij raziskovalcev v sistemu COBISS', fontSize:15, bold:true },
|
||
|
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
{
|
||
|
text: 'Tipologija dokumenta/dela:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
{
|
||
|
text: tipologija, fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: 'Za prispevke, ki so objavljeni v zborniku:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
{
|
||
|
text: prispevki, fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
{
|
||
|
text: 'Naslov dela/dokumenta:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: delo, fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: 'Priimek in imena:avtorja in soavtorja:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: avtorji, fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: 'Ključne besede v slovenkem jeziku:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: slo, fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: 'Ključne besede v angleškem jeziku:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
eng,
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: 'Vir:\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: vir,fontSize:12
|
||
|
|
||
|
|
||
|
},/*,
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
|
||
|
/* { text: 'Priloge', style: 'header' },
|
||
|
{
|
||
|
ol: [
|
||
|
'primarni vir',
|
||
|
'fotokopija članka/prispevka in fotokopija naslova primarnega vira',
|
||
|
'dokazila(recenzija, vabila)',
|
||
|
]
|
||
|
},*/
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: priloge, fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: '\n\n',fontSize:12
|
||
|
|
||
|
|
||
|
},
|
||
|
{
|
||
|
text: date,fontSize:12
|
||
|
|
||
|
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
// pdfMake.createPdf(docDefinition).open();
|
||
|
|
||
|
|
||
|
// print the PDF (temporarily Chrome-only)
|
||
|
//pdfMake.createPdf(docDefinition).print();
|
||
|
|
||
|
// download the PDF (temporarily Chrome-only)
|
||
|
pdfMake.createPdf(docDefinition).download('cobiss-obrazec.pdf');
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<title>Spremni list o dokumentu/delu za vodenje bibliografij raziskovalcev v sistemu COBISS</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<form action="vnos.php" method="get"class="pure-form pure-form-aligned">
|
||
|
<fieldset>
|
||
|
<div class="pure-form">
|
||
|
|
||
|
<legend><b>Spremni list o dokumentu/delu za vodenje bibliografij raziskovalcev v sistemu COBISS</b></legend>
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
<label for="ime">Predlagatelj dokumenta/dela(avtor oz. soavtor)</label>
|
||
|
<input name="ime" id="avtor" type="text" placeholder="Predlagatelj dokumenta">
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
<label for="priimek">Tipologija dokumenta/dela</label>
|
||
|
<input name="priimek" id="tipologija" type="text" placeholder="Tipologija">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="pure-control-group">
|
||
|
<label for="posta">Za prispevke, ki so objavljeni v zborniku</label>
|
||
|
<select id="prispevki" name="posta">
|
||
|
<option value=""></option>
|
||
|
<option value="2.30(Zbornik strokovnih in nerecenziranih znanstvenih prispevkov na konferenci)">2.30(Zbornik strokovnih in nerecenziranih znanstvenih prispevkov na konferenci)</option>
|
||
|
<option value="2.31(Zbornik recenziranih znanstevih prispevkov na mednarodni ali tuji konferenci)">2.31(Zbornik recenziranih znanstevih prispevkov na mednarodni ali tuji konferenci)</option>
|
||
|
<option value="2.32(Zbornik nerecenziranih znanstevih prispevkov na domači konferenci)">2.32(Zbornik nerecenziranih znanstevih prispevkov na domači konferenci)</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
<label for="ime">Naslov dela/dokumenta</label>
|
||
|
<textarea id="naslov" class="pure-input-1-2" placeholder="naslov dela"></textarea>
|
||
|
</div>
|
||
|
|
||
|
<div class="pure-control-group">
|
||
|
<label for="ime">Priimek ime:avtorjev in soavtorjev</label>
|
||
|
<textarea id="avtorji" class="pure-input-1-2" placeholder="avtorji in soavtorji"></textarea>
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
<label for="ime">Vir</label>
|
||
|
<textarea class="pure-input-1-2" placeholder="vir" id="vir"></textarea>
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
<label for="ime">Ključne besede v slovenkem jeziku</label>
|
||
|
<textarea id="slo" class="pure-input-1-2" placeholder="ključne besede v slovenksem jeziku"></textarea>
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
<label for="ime">Ključne besede v angleškem jeziku</label>
|
||
|
<textarea id = "angl" class="pure-input-1-2" placeholder="ključne besede v angleškem jeziku"></textarea>
|
||
|
</div>
|
||
|
<label for="ime">Priloge</label>
|
||
|
<div class="pure-control-group">
|
||
|
|
||
|
<input type="checkbox" name="priloga" id="priloga" value="primarni vir" checked> primarni vir<br>
|
||
|
<input type="checkbox" id="fotokopija" value="fotokopija članka prispevka in kopija naslovne strani vira" > fotokopija članka prispevka in kopija naslovne strani vira<br>
|
||
|
<input type="checkbox" id="dokazila" value="dokazila(recenzija, vabilo)" > dokazila(recenzija, vabilo)<br>
|
||
|
</div>
|
||
|
<button type="button" onclick="javascript:cobiss()" class="pure-button pure-button-primary">Izpiši pdf</button>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|