var shorts = { PH : "právní historie", O : "občanské právo", OB : "obchodní právo", P : "pracovní právo", R : "rodinné právo", HP : "hospodářské právo", Ú : "ústavní právo a státověda", S : "správní právo", F : "finanční právo", T : "trestní právo", A : "právo duševního vlastnictví (patenty, autorské atd…)", M : "mezinárodní právo ", MPS : "mezinárodní právo soukromé", ŽP : "právo životního prostředí a pozemkové právo", OS : "ostatní (právní filosofie, sociologie…)", PSZ : "právo sociálního zabezpečení", } var actArticles = [] var authors = [] function showMainSection(sid) { document.getElementById(sid).style.display = "block" document.getElementById("tab_" + sid).className = "actual" if (sid == "browser") { document.getElementById("searcher").style.display = "none" document.getElementById("tab_searcher").className = "" } else { document.getElementById("browser").style.display = "none" document.getElementById("tab_browser").className = "" } } function showSubsection(nodeId) { var tabs = document.getElementById(nodeId).parentNode.getElementsByTagName("li"); for (var i = 0; i < tabs.length; i++) { var tid = tabs[i].id var sid = tid.substring(tid.indexOf("_") + 1); if (tid == nodeId) { document.getElementById(tid).className = "actual" document.getElementById(sid).style.display = "block" } else { document.getElementById(tid).className = "" document.getElementById(sid).style.display = "none" } } } /******** vyhledavani, ovladani formulare ******/ function toggleAllCats(){ var list = document.getElementById("search_cats"); var inputs = list.getElementsByTagName("input"); var isChecked = document.getElementById("cats_all").checked; for (var i = 1; i < inputs.length; i++) { inputs[i].checked = isChecked; //if (isChecked) inputs[i].disabled = isChecked; } } var searchResults = [] function search() { var sc = {} sc.author = document.getElementById("search_author").value; sc.author = sc.author.replace(/\*/g, ".*") sc.author = sc.author.replace(/\?/g, ".") sc.title = document.getElementById("search_title").value; sc.title = sc.title.replace(/\*/g, ".*") sc.title = sc.title.replace(/\?/g, ".") sc.publ = document.getElementById("search_publication").value; sc.from = parseInt(document.getElementById("search_year_from").value); if (isNaN(sc.from)) sc.from = 1989 sc.to = parseInt(document.getElementById("search_year_to").value ); if (isNaN(sc.to)) sc.to = 1918 sc.cats = []; if (document.getElementById("cat_ph").checked) sc.cats.push("PH") if (document.getElementById("cat_a").checked) sc.cats.push("A") if (document.getElementById("cat_f").checked) sc.cats.push("F") if (document.getElementById("cat_hp").checked) sc.cats.push("HP") if (document.getElementById("cat_m").checked) sc.cats.push("M") if (document.getElementById("cat_mps").checked) sc.cats.push("MPS") if (document.getElementById("cat_ob").checked) sc.cats.push("OB") if (document.getElementById("cat_o").checked) sc.cats.push("O") if (document.getElementById("cat_p").checked) sc.cats.push("P") if (document.getElementById("cat_psz").checked) sc.cats.push("PSZ") if (document.getElementById("cat_r").checked) sc.cats.push("R") if (document.getElementById("cat_s").checked) sc.cats.push("S") if (document.getElementById("cat_t").checked) sc.cats.push("T") if (document.getElementById("cat_u").checked) sc.cats.push("Ú") if (document.getElementById("cat_zp").checked) sc.cats.push("ŽP") if (document.getElementById("cat_os").checked) sc.cats.push("OS") sc.langs = []; if (document.getElementById("lang_cs").checked) sc.langs.push("cze"); if (document.getElementById("lang_sk").checked) sc.langs.push("slo"); if (document.getElementById("lang_pl").checked) sc.langs.push("pol"); if (document.getElementById("lang_de").checked) sc.langs.push("ger"); if (document.getElementById("lang_ru").checked) sc.langs.push("rus"); if (document.getElementById("lang_fr").checked) sc.langs.push("fre"); if (document.getElementById("lang_it").checked) sc.langs.push("ita"); if (document.getElementById("lang_en").checked) sc.langs.push("eng"); searchResults = []; document.getElementById("results_search").innerHTML = "" if (sc.publ == "all") { searchJournals(sc); searchProcs(sc); } if (sc.publ == "s_all") searchProcs(sc); if (sc.publ == "j_all") searchJournals(sc); if (sc.publ.charAt(0) == "j" && sc.publ.charAt(2) != "a") { var index = parseInt(sc.publ.substring(2)); searchJournal(index, sc); } if (sc.publ.charAt(0) == "s" && sc.publ.charAt(2) != "a") { var index = parseInt(sc.publ.substring(2)); searchProc(index, sc); } listSearchResults(); } function searchJournals(sc) { for (var i = 0; i < casopisy.length; i++) searchJournal(i, sc) } function searchJournal(index, sc) { var jrnl = casopisy[index] for (var i = 0; i < jrnl.volumes.length; i++) { var vol = jrnl.volumes[i]; if (vol.articles && vol.articles.length > 0) { for (var j = 0; j < vol.articles.length; j++) { var art = vol.articles[j] art.j = index; art.vol = i; if (checkArticle(art, sc) ) { searchResults.push(art); } } } if (vol.issues && vol.issues.length > 0) { for (var j = 0; j < vol.issues.length; j++) { for (var k = 0; k < vol.issues[j].articles.length; k++) { var art = vol.issues[j].articles[k]; art.j = index; art.vol = i; art.issue = j; if (checkArticle(art, sc)) { searchResults.push(art); } } } } } } function searchProcs(sc) { for (var i = 0; i < sborniky.length; i++) searchProc(i, sc) } function searchProc(index, sc) { var proc = sborniky[index] for (var i = 0; i < proc.volumes.length; i++) { var vol = proc.volumes[i]; if (vol.articles && vol.articles.length > 0) { for (var j = 0; j < vol.articles.length; j++) { var art = vol.articles[j] art.p = index; art.vol = i; if (checkArticle(art, sc) ) { searchResults.push(art); } } } } if (proc.articles && proc.articles.length > 0) { for (var j = 0; j < vol.articles.length; j++) { var art = proc.articles[j] art.p = index; if (checkArticle(art, sc) ) { searchResults.push(art); } } } } function checkArticle(art, sc) { var isOK = true; var publ = (art.j != undefined) ? casopisy[art.j] : sborniky[art.p] var fraze = ""; if (sc.author != "" && sc.author != undefined ) { fraze = new RegExp(sc.author, "i") if (art.author.join(",").search(fraze) == -1 ) isOK = false; } if (sc.title != "") { fraze = new RegExp(sc.title, "i") if (art.title.search(fraze) == -1 ) isOK = false; } if (sc.cats.length < 15 && art.cats != undefined) { var hasCat = false; for (var k = 0; k < sc.cats.length; k++) { for(l = 0; l < art.cats.length; l++) { if (sc.cats[k] == art.cats[l]) hasCat = true; } } isOK = (sc.cats.length == 0) ? isOK : isOK && hasCat; } if (sc.cats.length > 0 && !art.cats) isOK = false; var isLang = true; if (sc.langs.length > 0) { isLang = false; for(l = 0; l < sc.langs.length; l++) { if (sc.langs[l] == art.lang) isLang = true; } } isOK = isOK && isLang; //if (sc.langs.length > 0 && !art.lang) isOK = false; //if (sc.cats.length == 0) isOK = true; var year = publ.volumes[art.vol].year if (year < sc.from || year > sc.to ) isOK = false; return isOK; } function listSearchResults() { var vystup = "

Zadaným kritériím nevyhovují žádné články.

" //vystup += "

Zpět na seznam sborníků

" // vystup += "

Zpět na seznam roků

" //vystup += "

Ročník " + actVolume.year + "

" if (searchResults.length > 0) { vystup = "

Celkem nalezeno článků: " + searchResults.length + "

" vystup += "" vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += ""; //vystup += ""; vystup += ""; //vystup += ""; vystup += "" vystup += "" for (var i = 0; i < searchResults.length; i++) { var art = searchResults[i]; var publ = (art.j != undefined) ? casopisy[art.j] : sborniky[art.p] vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += ""; var cats = (art.cats) ? art.cats.join(" ") : "" //vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" } vystup += "
Autor Název článku Publikace Rok JazykCatsStr. Str.
" + (i+1) + "." + listAuthors(art.author) + "" + art.title + "" + publ.title + "" + publ.volumes[art.vol].year + "" + art.lang + "" + cats + "" + pages + "
" } var sd = document.getElementById("results_search") sd.style.display = "block" sd.innerHTML = vystup } function sortResults(prop, asc) { if (prop == "author") { searchResults.sort(authorSorter); if (!asc) searchResults.reverse(); } if (prop == "pages") { searchResults.sort(pageSorter); if (!asc) searchResults.reverse(); } if (prop == "title") { searchResults.sort(titleSorter); if (!asc) searchResults.reverse(); } if (prop == "publ") { searchResults.sort(publSorter); if (!asc) searchResults.reverse(); } if (prop == "year") { searchResults.sort(yearSorter); if (!asc) searchResults.reverse(); } listSearchResults() } function listCitations() { var vystup = "" vystup += "

Celkem nalezeno článků: " + searchResults.length + "

" for (var i = 0; i < searchResults.length; i++) { var art = searchResults[i]; vystup += createCitation(art) } var sd = document.getElementById("results_search") sd.style.display = "block" sd.innerHTML = vystup } function createCitation(art) { var vystup = "" vystup += "

" if (art.j != undefined) { // clanek v casopisu var name = art.author[1].toUpperCase() + ", " + art.author[0]; if (art.author.length > 3) { name += " a " + art.author[2] + " " + art.author[3].toUpperCase() } if (name != ", " && name != "-, " ) { vystup += name; if (vystup.charAt(vystup.length-1) != "." ) vystup += "."; vystup += " " } vystup += art.title.replace(/\s+$/, "") + ". "; var publ = casopisy[art.j] vystup += "" + publ.title + "" + ". " if (art.vol != undefined) { var vol = publ.volumes[art.vol] vystup += vol.year + ", roč. " + vol.no; if (art.issue != undefined && vol.issues[art.issue] != undefined) { vystup += ", č. " +vol.issues[art.issue].no } vystup += "." } var strany = art.pages[0] if (strany != undefined) vystup += " s. " + strany + "." //vystup += " s. " + art.pages.join("-") + "." } else { //STEHLIK, Marek a Jarmoir TAUCHEN. NazevClanku. In: NazevSborniku. MistoVydani: Nakladatelstvi, RokVydani, s. 1-100. ISBN 0-1-0-2. var name = art.author[1].toUpperCase() + ", " + art.author[0]; if (art.author.length > 3) { name += " a " + art.author[2] + " " + art.author[3].toUpperCase() } if (name != ", " && name != "-, " ) { vystup += name; if (vystup.charAt(vystup.length-1) != "." ) vystup += "."; vystup += " " } vystup += art.title.replace(/\s+$/, "") + ". "; var publ = sborniky[art.p] vystup += "In: " + publ.title + "" + ". " vystup += publ.town + ": " + publ.publisher if (art.vol != undefined) { var vol = publ.volumes[art.vol] vystup += ", " + vol.year } var strany = art.pages[0] //strany = strany.replace(/\s/g, "") if (strany != undefined) vystup += ", s. " + strany + "." } vystup += "

" return vystup; } /******** prochazeni sborniku a casopisu *****/ var actPubl = null, actVolume = null, actIssue = null; function listProceedings() { var vystup = "" actPubl = null; actVolume = null; actIssue = null; document.getElementById("proc_list").style.display = "none"; document.getElementById("proc_titles").style.display = "none"; document.getElementById("proc_title").innerHTML = ""; document.getElementById("proc_volume").innerHTML = ""; var half = Math.ceil(sborniky.length/2) + 3; vystup += "" vystup += "" document.getElementById("list_proceedings").style.display = "block" document.getElementById("list_proceedings").innerHTML = vystup document.getElementById("results_p_volumes").style.display = "none" document.getElementById("results_p_articles").style.display = "none" document.getElementById("results_p_cover").style.display = "none" } function listVolumesProc(index) { document.getElementById("list_proceedings").style.display = "none" document.getElementById("proc_list").style.display = "block"; actPubl = index; var volumes = sborniky[index].volumes; vystup = "" document.getElementById("proc_titles").style.display = "block" document.getElementById("proc_title").innerHTML = sborniky[index].title; document.getElementById("proc_volume").innerHTML = ", r. " +sborniky[index].volumes[0].year ; if (sborniky[index].cover) { document.getElementById("results_p_cover").style.display = "inline-block" document.getElementById("p_cover").src = "pics/covers/" + sborniky[index].cover } // vystup += "" //document.getElementById("results_p_volumes").style.display = "block" //document.getElementById("results_p_volumes").innerHTML = vystup listArticlesProc(0) } function listArticlesProc(volume) { if (volume == undefined) volume = actVolume; else actVolume = volume; actArticles = sborniky[actPubl].volumes[actVolume].articles; actArticles.sort(pageSorter) var vystup = "" document.getElementById("proc_volume").innerHTML = ", r. " + sborniky[actPubl].volumes[actVolume].year; vystup += "

" vystup += "" vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += "" vystup += "" for (var i = 0; i < actArticles.length; i++) { var art = actArticles[i]; art.p = actPubl; art.vol = volume; vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" } vystup += "
Autor Název článku JazykStr.
" + (i+1) + "." + listAuthors(art.author) + "" + art.title + "" + art.lang + "" + pages + "
" document.getElementById("results_p_articles").style.display = "inline-block" document.getElementById("results_p_articles").innerHTML = vystup } function listCitationsProc() { var vystup = "" vystup += "

" for (var i = 0; i < actArticles.length; i++) { var art = actArticles[i]; vystup += createCitation(art) } var sd = document.getElementById("results_p_articles") sd.style.display = "inline-block" sd.innerHTML = vystup } /**** trideni clanku podel ruznych kriterii ********/ function pageSorter(a1, a2) { if (a1.pages[0] > a2.pages[0] ) return 1 if (a1.pages[0] < a2.pages[0] ) return -1 if (a1.pages[0] == a2.pages[0] ) return 0 } function authorSorter (a1, a2) { var surnames = a1.author[1].localeCompare(a2.author[1]) if (surnames == 0 ) return a1.author[0].localeCompare(a2.author[0]) else return surnames; } function titleSorter (a1, a2) { return a1.title.localeCompare(a2.title) } function publSorter(a1, a2) { var p1 = (a1.j != undefined) ? casopisy[a1.j] : sborniky[a1.p]; var p2 = (a2.j != undefined) ? casopisy[a2.j] : sborniky[a2.p]; var pc = p1.title.localeCompare(p2.title) if (pc != 0) return pc; else return a1.title.localeCompare(a2.title) } function yearSorter(a1, a2) { var y1 = (a1.j != undefined) ? casopisy[a1.j].volumes[a1.vol].year : sborniky[a1.p].volumes[a1.vol].year; var y2 = (a2.j != undefined) ? casopisy[a2.j].volumes[a2.vol].year : sborniky[a2.p].volumes[a2.vol].year; if (y1 > y2) return 1; if (y1 < y2) return -1; if (y1 == y2) return a1.title.localeCompare(a2.title) } function sortArticlesProc(prop, asc) { if (prop == "author") { actArticles.sort(authorSorter); if (!asc) actArticles.reverse(); } if (prop == "pages") { actArticles.sort(pageSorter); if (!asc) actArticles.reverse(); } if (prop == "title") { actArticles.sort(titleSorter); if (!asc) actArticles.reverse(); } var vystup = "" vystup += "

" vystup += "" vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += "" vystup += "" for (var i = 0; i < actArticles.length; i++) { var art = actArticles[i]; vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" } vystup += "
Autor Název článku JazykStr.
" + (i+1) + "." + listAuthors(art.author) + "" + art.title + "" + art.lang + "" + pages + "
" document.getElementById("results_p_articles").style.display = "inline-block" document.getElementById("results_p_articles").innerHTML = vystup } function listJournals() { var vystup = "" actPubl = null; actVolume = null; actISsue = null; document.getElementById("jour_list").style.display = "none" document.getElementById("jour_titles").style.display = "none" var half = Math.ceil(casopisy.length/2); //vystup += "

Časopisy v databázi

" vystup += "" vystup += "" document.getElementById("results_journals").innerHTML = vystup document.getElementById("results_journals").style.display = "block" document.getElementById("results_j_volumes").innerHTML = "" document.getElementById("results_j_articles").innerHTML = "" document.getElementById("results_j_articles").style.display = "none" document.getElementById("results_j_cover").style.display = "none" } function listVolumesJour(index) { actPubl = index; var volumes = casopisy[index].volumes; var jr = casopisy[index]; document.getElementById("jour_list").style.display = "block" document.getElementById("jour_titles").style.display = "block" document.getElementById("results_j_issues").innerHTML = "" document.getElementById("results_j_articles").innerHTML = "" document.getElementById("results_j_articles").style.display = "inline-block" document.getElementById("results_j_articles").style.visibility = "hidden" if (jr.cover) { document.getElementById("results_j_cover").style.display = "inline-block" document.getElementById("j_cover").src = "pics/covers/" + jr.cover } else { document.getElementById("results_j_cover").style.display = "none" } document.getElementById("jour_title").innerHTML = casopisy[index].title; document.getElementById("jour_volume").innerHTML = ""; document.getElementById("jour_issue").innerHTML = ""; var vystup = "" document.getElementById("results_journals").style.display = "none" document.getElementById("results_j_volumes").innerHTML = vystup } function listIssuesJour(vol) { actVolume = vol actIssue = null; document.getElementById("results_j_issues").innerHTML = "" document.getElementById("results_j_articles").innerHTML = "" var vystup = ""; var issues = casopisy[actPubl].volumes[vol].issues; var jr = casopisy[actPubl]; document.getElementById("jour_volume").innerHTML = ", ročník " + jr.volumes[vol].no; document.getElementById("jour_issue").innerHTML = ""; vystup += "" document.getElementById("results_journals").style.display = "none" document.getElementById("results_j_issues").innerHTML = vystup } function listArticlesJour(volume, issue) { var jr = casopisy[actPubl] actVolume = volume; actArticles = [] document.getElementById("jour_issue").innerHTML = "" if (!jr.volumes[volume].issues || jr.volumes[volume].issues.length == 0 ) { document.getElementById("results_j_issues").innerHTML = "" } var arts = jr.volumes[volume].articles; document.getElementById("jour_volume").innerHTML = ", ročník " + jr.volumes[volume].no + "/" + jr.volumes[volume].year //if (issue != undefined) arts = jr.volumes[volume].issues[issue].articles var vystup = "" // vystup += "

Zpět na seznam sborníků

" //vystup += "

Zpět na seznam roků

" // vystup += "

Ročník " + jr.volumes[volume].no + "/" + jr.volumes[volume].year //if (issue) document.getElementById("jour_issues").innerHTML = ", číslo " + jr.volumes[volume].issues[issue].no vystup += "

" vystup += "" vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += "" var rowCounter = 0; vystup += "" if (jr.volumes[volume].articles != undefined) { for (var i = 0; i < arts.length; i++) { var art = arts[i]; art.j = actPubl; art.vol = actVolume; vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" actArticles.push(art) } } if (jr.volumes[volume].issues != undefined) { for (var j = 0; j < jr.volumes[volume].issues.length; j++) { arts = jr.volumes[volume].issues[j].articles; for (var k = 0; k < arts.length; k++) { var art = arts[k]; art.j = actPubl; art.vol = actVolume; art.issue = k vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" actArticles.push(art) } } } vystup += "
Autor Název článku JazykStr.
" + ++rowCounter + "." + listAuthors(art.author) + "" + art.title + "" + art.lang + "" + pages + "
" + ++rowCounter + "." + listAuthors(art.author) + "" + art.title + "" + art.lang + "" + pages + "
" document.getElementById("results_j_articles").style.display = "inline-block" document.getElementById("results_j_articles").style.visibility = "visible" document.getElementById("results_j_articles").innerHTML = vystup } function sortArticlesJour(prop, asc) { if (prop == "author") { actArticles.sort(authorSorter); if (!asc) actArticles.reverse(); } if (prop == "pages") { actArticles.sort(pageSorter); if (!asc) actArticles.reverse(); } if (prop == "title") { actArticles.sort(titleSorter); if (!asc) actArticles.reverse(); } var vystup = "" vystup += "

" vystup += "" vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += "" vystup += "" for (var i = 0; i < actArticles.length; i++) { var art = actArticles[i]; vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" } vystup += "
Autor Název článku JazykStr.
" + (i+1) + "." + listAuthors(art.author) + "" + art.title + "" + art.lang + "" + pages + "
" document.getElementById("results_j_articles").style.display = "inline-block" document.getElementById("results_j_articles").innerHTML = vystup } function listCitationsJour() { var vystup = "" vystup += "

" for (var i = 0; i < actArticles.length; i++) { var art = actArticles[i]; vystup += createCitation(art) } var sd = document.getElementById("results_j_articles") sd.style.display = "inline-block" sd.innerHTML = vystup } /**************** prochazeni podle autoru ********/ function listAuthors(af) { var vystup = "" for (var i = 0; i < af.length/2; i++) { if (i > 0) vystup += ", " var name = af[2*i+1] + ", " + af[2*i] if (name != ", " && name != "-, ") { vystup += "" + name + "" } } return vystup } function createAuthorList() { authors = []; for (var i = 0; i < casopisy.length; i++) { for (var j = 0; j < casopisy[i].volumes.length; j++) { var volume = casopisy[i].volumes[j]; if (volume.articles != undefined) { for (var k = 0; k < volume.articles.length; k++) { checkAuthors(volume.articles[k]); } } if (volume.issues != undefined) { for (var k = 0; k < volume.issues.length; k++) { for (var l=0; l < volume.issues[k].articles.length; l++) { checkAuthors(volume.issues[k].articles[l]); } } } } } for (var i = 0; i < sborniky.length; i++) { for (var j = 0; j < sborniky[i].volumes.length; j++) { var volume = sborniky[i].volumes[j]; if (volume.articles != undefined) { for (var k = 0; k < volume.articles.length; k++) { checkAuthors(volume.articles[k]); } } } } authors.sort(authorlistSorter) //showAuthorList() } function checkAuthors(art) { var isAuthor1 = false, isAuthor2 = false; for (var i = 0; i < art.author.length; i++) { art.author[i] = art.author[i].replace(/^\s*(\S+)\s*$/, "$1") } for (var i = 0; i < authors.length; i++) { /* if (art.author[1] == authors[i].surname && art.author[0].charAt(0) == authors[i].name.charAt(0)) { isAuthor1 = true; authors[i].count++ } if (art.author.length > 3 && art.author[3] == authors[i].surname && art.author[2].charAt(0) == authors[i].name.charAt(0)) { isAuthor2 = true; authors[i].count++ } */ if (art.author[1] == authors[i].surname && art.author[0].toLowerCase() == authors[i].name.toLowerCase()) { isAuthor1 = true; authors[i].count++ } if (art.author.length > 3 && art.author[3] == authors[i].surname && art.author[2].toLowerCase() == authors[i].name.toLowerCase()) { isAuthor2 = true; authors[i].count++ } } if (!isAuthor1) authors.push({ name: art.author[0], surname: art.author[1], count: 1}) if (!isAuthor2 && art.author.length > 3) authors.push({ name: art.author[2], surname: art.author[3], count: 1}) } function authorlistSorter(a1, a2) { var cs = a1.surname.localeCompare(a2.surname); if (cs != 0) return cs else return a1.name.localeCompare(a2.name); } function showAuthorList() { var vystup = "
    " for (var i = 0; i < authors.length; i++) { vystup += "
  1. " + authors[i].surname + ", " + authors[i].name + " (" + authors[i].count + ")
  2. " ; } vystup += "
" document.getElementById("list_authors").innerHTML = vystup; } var actLetter = null; function showAuthorsByLetters(node, letters) { if (actLetter == node) return; if (actLetter && actLetter != node) { actLetter.className = "letter" } actLetter = node; actLetter.className = "letter actual" var selAuthors = [] for (var i = 0; i < authors.length; i++) { if (authors[i].surname.length < 3 || authors[i].surname.length > 20 || authors[i].surname.charAt(authors[i].surname.length-1) == "." ) continue; if (letters != "ch" && letters != "c") { for (var j = 0; j < letters.length; j++) { if (authors[i].surname.charAt(0).toLowerCase() == letters[j] ) { selAuthors.push(authors[i]) //vystup += "
  • " + authors[i].surname + ", " + authors[i].name + "
  • " ; } } } if (letters == "ch") { if (authors[i].surname.toLowerCase().indexOf("ch") == 0) { selAuthors.push(authors[i]) //vystup += "
  • " + authors[i].surname + ", " + authors[i].name + "
  • " ; } } if (letters == "c") { if ( authors[i].surname.charAt(0).toLowerCase() == "c" && authors[i].surname.charAt(1).toLowerCase() != "h" ) { selAuthors.push(authors[i]) // } } } var colCount = 6; var rowCount = Math.ceil(selAuthors.length/colCount) var vystup = "" for (var i = 0; i < colCount; i++) { vystup += "
      " for (var j = 0; j < rowCount; j++) { if (selAuthors[i*rowCount + j] ) { var author = selAuthors[i*rowCount + j] vystup += "
    1. " + author.surname + ", " + author.name + "
    2. " ; } } vystup += "
    " } document.getElementById("list_authors").innerHTML = vystup; } var authorArticles = []; function showArticlesByAuthor(sname, fname) { document.getElementById("alphabet_authors").style.display = "none"; document.getElementById("list_authors").style.display = "none"; authorArticles = []; for (var i = 0; i < casopisy.length; i++) { for (var j = 0; j < casopisy[i].volumes.length; j++) { var volume = casopisy[i].volumes[j]; if (volume.articles != undefined) { for (var k = 0; k < volume.articles.length; k++) { var art = volume.articles[k]; if ((art.author[0].toLowerCase() == fname.toLowerCase() && art.author[1] == sname) || (art.author.length > 2 && art.author[2].toLowerCase() == fname.toLowerCase() && art.author[3] == sname)) authorArticles.push(art); art.j = i; art.vol = j; } } if (volume.issues != undefined) { for (var k = 0; k < volume.issues.length; k++) { for (var l=0; l < volume.issues[k].articles.length; l++) { var art = volume.issues[k].articles[l]; if ( (art.author[0].toLowerCase() == fname.toLowerCase() && art.author[1] == sname) || (art.author.length > 2 && art.author[2].toLowerCase() == fname.toLowerCase() && art.author[3] == sname) ) authorArticles.push(art); art.j = i; art.vol = j; art.issue = k; } } } } } for (var i = 0; i < sborniky.length; i++) { for (var j = 0; j < sborniky[i].volumes.length; j++) { var volume = sborniky[i].volumes[j]; if (volume.articles != undefined) { for (var k = 0; k < volume.articles.length; k++) { var art = volume.articles[k]; if ((art.author[0].toLowerCase() == fname.toLowerCase() && art.author[1] == sname) || (art.author.length > 2 && art.author[2].toLowerCase() == fname.toLowerCase() && art.author[3] == sname)) authorArticles.push(art); art.p = i; art.vol = j; } } } } listAuthorResults() } function sortAuthResults(prop, asc) { if (prop == "author") { authorArticles.sort(authorSorter); if (!asc) authorArticles.reverse(); } if (prop == "pages") { authorArticles.sort(pageSorter); if (!asc) authorArticles.reverse(); } if (prop == "title") { authorArticles.sort(titleSorter); if (!asc) authorArticles.reverse(); } if (prop == "publ") { authorArticles.sort(publSorter); if (!asc) authorArticles.reverse(); } if (prop == "year") { authorArticles.sort(yearSorter); if (!asc) authorArticles.reverse(); } listAuthorResults() } function listAuthCitations() { var vystup = "" vystup += "

    " vystup += "

    Celkem nalezeno článků: " + authorArticles.length + "

    " for (var i = 0; i < authorArticles.length; i++) { var art = authorArticles[i]; vystup += createCitation(art) } var sd = document.getElementById("results_authors") sd.style.display = "block" sd.innerHTML = vystup } function listAuthorResults() { var vystup = "" //vystup += "

    Zpět na seznam sborníků

    " // vystup += "

    Zpět na seznam roků

    " //vystup += "

    Ročník " + actVolume.year + "

    " if (authorArticles.length > 0) { vystup = "

    " vystup += "

    Celkem nalezeno článků: " + authorArticles.length + "

    " vystup += "" vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += ""; //vystup += ""; vystup += ""; //vystup += ""; vystup += "" vystup += "" for (var i = 0; i < authorArticles.length; i++) { var art = authorArticles[i]; var publ = (art.j != undefined) ? casopisy[art.j] : sborniky[art.p] vystup += "" vystup += "" vystup += "" vystup += ""; vystup += ""; vystup += ""; vystup += ""; var cats = (art.cats) ? art.cats.join(" ") : "" //vystup += ""; var pages = (art.pages[0] != undefined) ? art.pages[0] : ""; vystup += ""; vystup += "" } vystup += "
    AutorNázev článku Publikace Rok JazykCatsStr. Str.
    " + (i+1) + "." + listAuthors(art.author) + "" + art.title + "" + publ.title + "" + publ.volumes[art.vol].year + "" + art.lang + "" + cats + "" + pages + "
    " } var sd = document.getElementById("results_authors") sd.style.display = "block" sd.innerHTML = vystup } function gotoAuthorsList() { document.getElementById("alphabet_authors").style.display = "block"; document.getElementById("list_authors").style.display = "block"; document.getElementById("results_authors").style.display = "none"; } function createPublLists() { var listP = document.getElementById("publ_procs") for (var i= 0; i < sborniky.length; i++) { var option = listP.appendChild(document.createElement("option")) var title = sborniky[i].title; if (sborniky[i].subtitle != undefined) title += ": " + sborniky[i].subtitle option.text = title option.value = "s_" + i; } var listJ = document.getElementById("publ_journals") for (var i= 0; i < casopisy.length; i++) { var option = listJ.appendChild(document.createElement("option")) var title = casopisy[i].title; if (casopisy[i].subtitle != undefined) title += ": " + casopisy[i].subtitle option.text = title option.value = "j_" + i; } } window.onload = function() { showMainSection("browser") showSubsection("tab_proceedings") listProceedings() listJournals() createAuthorList() createPublLists() }