From e8a9f55df9391f7dc0e83f459a57f38ec8023b2a Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 22 May 2023 09:07:01 +0200 Subject: [PATCH] Add missing fields to generated PDF --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 8c1b246..0680b1b 100644 --- a/index.html +++ b/index.html @@ -190,6 +190,10 @@ document.querySelector("#savePDF").addEventListener("click", event => { var prispevki = document.getElementById("prispevki").value var date = "Datum: " + (new Date()).toLocaleDateString("sl"); + var vnos = 'Vnos v Repozitorij UL in v dCOBISS? ' + + (document.getElementById('objava').checked ? 'da' : 'ne'); + var cost = document.getElementById('cost').value; + var priloge = "Priloge: " for (const priloga of ["fotokopija", "dokazila", "final"]) if (document.getElementById(priloga).checked) @@ -214,6 +218,8 @@ document.querySelector("#savePDF").addEventListener("click", event => { 'Ključne besede v slovenkem jeziku:\n', slo, '\n\n', 'Ključne besede v angleškem jeziku:\n', eng, '\n\n', 'Vir:\n', vir, '\n\n', + vnos, '\n\n', + 'Stroški objave članka v odprtem dostopu: ' + (cost ? cost + ' €' : ''), '\n\n', priloge, '\n\n', date ]