CINXE.COM
RetrIS - Katalog
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <title>RetrIS - Katalog</title> <link href="/Content/bootstrap.css" rel="stylesheet"/> <link href="/Content/site.css" rel="stylesheet"/> <link href="/Content/css/global.css" rel="stylesheet"/> <link href="/Content/jquery-ui.css" rel="stylesheet"/> <link rel="shortcut icon" type="image/ico" href="/Content/Images/favicon.ico?v=2"> <link href="/Content/jquery.flashmessages.css" rel="stylesheet" /> <link rel="stylesheet" href="/Content/css/font-awesome.min.css"> <script src="/Scripts/modernizr-2.8.3.js"></script> <script src="/Scripts/spin.min.js"></script> <link href="/Content/Site.css" rel="stylesheet" /> <link href="/Content/colorpicker/css/colorpicker.css" rel="stylesheet" /> <link href="/Content/select2/select2.css" rel="stylesheet"/> <link href="/Content/FancyTree/skin-bootstrap/ui.fancytree.css" rel="stylesheet"/> <link href="/Content/DataTables/css/dataTables.bootstrap.css" rel="stylesheet"/> <link href="/Content/css/DataTablesCustom.css" rel="stylesheet"/> <link href="/Content/bootstrap-datetimepicker.min.css" rel="stylesheet"/> <link rel="stylesheet" href="/Content/css/record.css"> <link href="/Content/css/retroconversionBatchDialog.css" rel="stylesheet" /> <style> span.fancytree-title { margin: 0; } span.fancytree-icon { margin-left: 2px; } #catalogTree { line-height: 1em; } #catalogTree ul { overflow: visible; } #catalogTree ul.fancytree-container { border: none; } .ui-contextmenu { z-index: 1000; } body { overflow: hidden; } .zoomContainer { z-index: 10000; } .bootstrap-datetimepicker-widget td.day { line-height: 10px !important; font-size: 10px !important; } .buttonsDatatable { float: left; } .buttonsDatatableSearch { } #catalogTree .filtr span.fancytree-icon:before, #catalogTree .filtrCatalog span.fancytree-icon:before { content: "\f0b0" !important; } #catalogTree .public span.fancytree-icon:before { content: "\f0c0" !important; } #catalogTree .categoryNode span.fancytree-icon:before { content: "\f023" !important; } #catalogTree .filtrNode span.fancytree-icon:before { color: #808080; content: "\f0b0" !important; } #catalogTree .bookmark span.fancytree-icon:before { content: "\f097" !important; } #catalogTree .pracDavUser.zpracovani span.fancytree-icon:before { content: "\f0ae" !important; } #catalogTree .pracDavUser.uzavrene span.fancytree-icon:before { content: "\f00c" !important; } #catalogTree .pracDavUser.uzivatel span.fancytree-icon:before { content: "\f007" !important; } #catalogTree .retroconversionNode span.fancytree-icon:before { content: "\f086" !important; } #priznakyTable_processing { display: none !important; } .fancytree-node.notRewritten .fancytree-title, .fancytree-node.notRewritten .fancytree-title:hover { background-color: #f72323 !important; color: #ffffff !important; } .fancytree-node.multiplePages .fancytree-title, .fancytree-node.multiplePages .fancytree-title:hover { background-color: #235bf7 !important; color: #ffffff !important; } .fancytree-node.notRewritten.multiplePages .fancytree-title, .fancytree-node.notRewritten.multiplePages .fancytree-title:hover { background-color: #235bf7 !important; color: #f67676 !important; } /*filtry v dialogu*/ /* Define custom width and alignment of table columns */ #treetable-priznaky { table-layout: fixed; } #treetable-priznaky tr td:nth-of-type(1) { text-align: right; } #treetable-priznaky tr td:nth-of-type(2) { text-align: center; } #treetable-priznaky tr td:nth-of-type(3) { min-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } input, select, textarea { max-width: 100%; } .dropdown-menu { z-index: 1151 !important; } </style> <link href="/Content/jquery.splitter.css" rel="stylesheet"/> <link href="/Content/css/select2Override.css" rel="stylesheet"/> <style type="text/css"> .table tbody tr:hover { background-color: #f8940b !important; background-color: rgba(248, 148, 11, 0.5) !important; } .table tbody tr.highlight { background-color: #f8940b; background-color: rgba(248, 148, 11, 0.5); } </style> </head> <body> <div class="above-navbar"> <div class="container-small row above-navbar-content"> <div class="col-xs-12"> <div class="float-left" style="height: 50px"><a title="Hlavní strana" href="/"><img style="height: 50px;" src="/Content/images/RetrIs_logo.png" /></a></div> <div style="height: 50px;" class="float-right"><a title="http://www.nkp.cz/" href="http://www.nkp.cz/"><img style="height: 50px;" src="/Content/images/logo.jpg" /></a></div> <div class="float-right hidden-xs" style="display:inline-block; line-height: 50px; margin-right: 30px"> <a href="/Home/SetLocale?locale=cs-CZ&returnUrl=%2FCatalog%3Fsigla%3DABA001">CZ</a> | <a href="/Home/SetLocale?locale=en-US&returnUrl=%2FCatalog%3Fsigla%3DABA001">EN</a> </div> </div> </div> </div> <div class="navbar navbar-default navbar-fixed-top navbar-container" id="navbarContainer"> <div class="container-small"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="/Catalog">Katalog</a></li> <li class=""><a href="/Orders/OrdersSummary">Přehled objednávek</a></li> <li><a href="/Home/Manual" target="_blank">Uživatelská příručka</a></li> <li class=""><a href="/Home/Contact">Kontakt</a></li> <li class="hidden-lg hidden-md hidden-lg hidden-print hidden-sm"><a href="/Home/SetLocale?locale=cs-CZ&returnUrl=%2FCatalog%3Fsigla%3DABA001">CZ</a></li> <li class="hidden-lg hidden-md hidden-lg hidden-print hidden-sm"><a href="/Home/SetLocale?locale=en-US&returnUrl=%2FCatalog%3Fsigla%3DABA001">EN</a></li> </ul> <ul class="nav navbar-nav navbar-right" style="margin-right:0"> <li><a href="/Account/Login" id="loginLink">Přihlásit se</a></li> </ul> </div> </div> </div> <div class="body-content"> <div id="leftPanelLayoutSplitter" style="height: 500px"> <div class="leftPanel" style="height: 100%"> <div class="row" style="height: 38px"> <div class="col-xs-12"> <select id="Institutes" name="Institutes"><option selected="selected" value="ABA001">Národní knihovna České republiky</option> <option value="ABE304">Institut umění – Divadelní ústav</option> <option value="CKA501">Jihočeská vědecká knihovna v Českých Budějovicích</option> <option value="ABE336">Knihovna Památníku národního písemnictví</option> <option value="ABG001">Městská knihovna v Praze</option> <option value="BOA001">Moravská zemská knihovna Brno</option> <option value="OSA001">Moravskoslezská vědecká knihovna v Ostravě</option> <option value="ABA008">Národní lékařská knihovna</option> <option value="ABX002">Národní muzeum – České muzeum hudby – katalog hudebnin 1</option> <option value="ABX003">Národní muzeum – České muzeum hudby – katalog hudebnin 2</option> <option value="ABX001">Národní muzeum – České muzeum hudby – ostatní katalogy</option> <option value="ABA010">Národní muzeum – Knihovna Národního muzea</option> <option value="ABE308">Národní muzeum – Náprstkovo muzeum</option> <option value="ABA012">Národní pedagogická knihovna Komenského</option> <option value="PNA001">Studijní a vědecká knihovna Plzeňského kraje</option> <option value="PND002">Univerzitní knihovna Západočeské univerzity v Plzni</option> <option value="OLA001">Vědecká knihovna v Olomouci</option> <option value="ABE323">Židovské muzeum v Praze</option> </select> </div> </div> <div class="row" style="height: 20px;"> <div class="col-xs-12 quickSearchBar" style="display: none"> <a href="#!" class="clickable" id="createQuickFilterButton"><i class="fa fa-search fa-lg" aria-hidden="true"></i></a> </div> </div> <div class="row" id="catalogTreeWrapper" style="height: calc(100% - 58px); "> <div class="col-xs-12" style="height: 100%; "> <div class="filtrRootContextMenuWrapper" style="height: 100%; "> <div class="filtrContextMenuWrapper" style="height: 100%; "> <div class="catalogContextMenuWrapper" style="height: 100%; "> <div class="caseContextMenuWrapper" style="height: 100%; "> <div class="drawerContextMenuWrapper" style="height: 100%"> <div class="bookmarkContextMenuWrapper" style="height: 100%"> <div id="catalogTree" style="overflow: auto; height: 100%"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="rightPanel" style="overflow:hidden"> <div class="rightPanel-content"> <input id="filterCategoryId" name="filterCategoryId" type="hidden" value="" /> <input id="filterCatalogId" name="filterCatalogId" type="hidden" value="" /> <input data-val="true" data-val-required="The Boolean field is required." id="openUpdateRetroconversionBatchDialog" name="openUpdateRetroconversionBatchDialog" type="hidden" value="False" /> <div id="recordContent" style="height: 100%"> <div class="overflowDiv"> <h2> Národní knihovna České republiky </h2> <div> <p> Na těchto stránkách naleznete naskenované katalogy knihovny. Skříně a zásuvky jsou řazeny podle české abecedy, anglické verze popisků jsou k dispozici pouze pro název a stručný popis katalogu. Podrobné charakteristiky jednotlivých katalogů se zobrazí po výběru požadovaného katalogu. </p> </div> <div> <b>Sigla:</b> ABA001 <br/> <b>Oficiální web:</b> <a href="http://www.nkp.cz" target="_blank">http://www.nkp.cz</a> <br/> <b>Adresa:</b> Klementinum 190, 110 01 Praha 1 <br/> <b>Email:</b> <a href="mailto:retris@nkp.cz">retris@nkp.cz</a> <br/> <b>Telefon:</b> 221 663 111 <h4 style="margin-top: 20px">Zodpovědná osoba</h4> <b>Jméno:</b> Nataša Mikšovská <br/> <b>Email:</b> <a href="mailto:natasa.miksovska@nkp.cz">natasa.miksovska@nkp.cz</a> <br/> <b>Telefon:</b> 221 663 300 </div> <div id="oldRecordOrderDiv" style="margin-top: 10px; overflow: hidden;"> <form action="/Orders/CreateOldRecordOrder?Length=6" data-ajax="true" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-success="initCreateOldRecordOrder(data)" data-ajax-update="#oldRecordOrderDiv" id="createOldRecordOrderForm" method="post"><input data-val="true" data-val-required="Pole SIGLA je povinné" id="SIGLA" name="SIGLA" type="hidden" value="ABA001" /><input id="KAT_KEY" name="KAT_KEY" type="hidden" value="010GK1" /><input data-val="true" data-val-number="Pole ZAZNAM_ID musí být číslo." data-val-required="Pole ZAZNAM_ID je povinné" id="ZAZNAM_ID" name="ZAZNAM_ID" type="hidden" value="0" /><input data-val="true" data-val-number="Pole STRANKA musí být číslo." data-val-required="Pole STRANKA je povinné" id="STRANKA" name="STRANKA" type="hidden" value="1" /><input data-val="true" data-val-number="Pole Místo pro vyzvednutí musí být číslo." data-val-required="Pole Místo pro vyzvednutí je povinné" id="KS_ID" name="KS_ID" type="hidden" value="9" /> <div class="row"> <div class="col-xs-12"> <h3>Historické knižní fondy</h3> </div> </div> <div class="row"> <div class="col-xs-12"> <p><a href="http://aleph.nkp.cz/F/BD58IMF25EF7K3D3YVYGIMY4NDLT9QUQXVKUPDM98PTQ4QSHB9-45812?func=file&file_name=find-b&local_base=STT" target="_blank">Velké procento starých tisků a map je již zpracováno a možno dohledat/objednat v online bázi STT.</a></p> </div> </div> <div class="row"> <div class="col-xs-12"> <p>Rukopisy, inkunábule a staré tisky neobsazené v Generálním katalogu I lze objednat pouze do studovny rukopisů a starých tisků pomocí následujícího formuláře:</p> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2"><label for="BIBL_AUTOR">Autor</label><span>*</span></div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Autor must be a string with a maximum length of 100." data-val-length-max="100" data-val-required="Pole Autor je povinné" id="BIBL_AUTOR" name="BIBL_AUTOR" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="BIBL_AUTOR" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2"><label for="BIBL_NAZEV">Název</label><span>*</span></div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Název must be a string with a maximum length of 100." data-val-length-max="100" data-val-required="Pole Název je povinné" id="BIBL_NAZEV" name="BIBL_NAZEV" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="BIBL_NAZEV" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2"><label for="BIBL_SIGNATURA_1">Signatura</label><span>*</span></div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Signatura must be a string with a maximum length of 255." data-val-length-max="255" id="BIBL_SIGNATURA_1" name="BIBL_SIGNATURA_1" type="text" value="" /> </div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Sig F2 must be a string with a maximum length of 255." data-val-length-max="255" data-val-regex="2., případně 1. část signatury (abecední) – např. H, BB, Nd" data-val-regex-pattern="[A-Za-z]{1,4}" id="BIBL_SIGNATURA_2" name="BIBL_SIGNATURA_2" type="text" value="" /> </div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-number="Pole Sig F3 musí být číslo." data-val-regex="3., případně 2. část signatury (číselná)" data-val-regex-pattern="[0-9]{1,6}" id="BIBL_SIGNATURA_3" name="BIBL_SIGNATURA_3" type="text" value="" /> </div> <div class="col-md-12 col-lg-4"> <span style="padding-right: 15px"><a class="btn btn-default btn-sm" href="/Orders/SignatureModels" target="_blank">+</a></span> <span style="padding-left: 15px"><a href="http://www.nkp.cz/katalogy-a-db/katalogy-nk-cr/podminky-expedice-sbirek" class="btn btn-default btn-sm" target="_blank">Podmínky expedice podle signatury</a></span> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2 col-lg-offset-2"> <span class="field-validation-valid" data-valmsg-for="BIBL_SIGNATURA_1" data-valmsg-replace="true"></span> </div> <div class="col-md-12 col-lg-2"> <span class="field-validation-valid" data-valmsg-for="BIBL_SIGNATURA_2" data-valmsg-replace="true"></span> </div> <div class="col-md-12 col-lg-2"> <span class="field-validation-valid" data-valmsg-for="BIBL_SIGNATURA_3" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2"><label for="BIBL_SIGNATURA_ZALOM">Svazek, ročník, rok</label></div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Svazek, ročník, rok must be a string with a maximum length of 255." data-val-length-max="255" id="BIBL_SIGNATURA_ZALOM" name="BIBL_SIGNATURA_ZALOM" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="BIBL_SIGNATURA_ZALOM" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <label class="col-md-12 col-lg-2" for="AKTUALNI_OD">Platná od</label> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm datepickerOldRecordOrder" data-val="true" data-val-date="Pole Platná od musí být validní datum." id="AKTUALNI_OD" name="AKTUALNI_OD" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="AKTUALNI_OD" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <div class="col-xs-12"> <h4>Objednávka - Uživatel knihovny</h4> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2"><label for="CTENAR_JMENO">Jméno</label><span>*</span></div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Jméno must be a string with a maximum length of 100." data-val-length-max="100" data-val-required="Pole Jméno je povinné" id="CTENAR_JMENO" name="CTENAR_JMENO" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="CTENAR_JMENO" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <div class="col-md-12 col-lg-2"><label for="CTENAR_PRIJMENI">Příjmení</label><span>*</span></div> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-length="The field Příjmení must be a string with a maximum length of 100." data-val-length-max="100" data-val-required="Pole Příjmení je povinné" id="CTENAR_PRIJMENI" name="CTENAR_PRIJMENI" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="CTENAR_PRIJMENI" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <label class="col-md-12 col-lg-2" for="CTENAR_EMAIL">Email</label> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-email="E-mailová adresa není validní." data-val-length="The field Email must be a string with a maximum length of 100." data-val-length-max="100" id="CTENAR_EMAIL" name="CTENAR_EMAIL" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="CTENAR_EMAIL" data-valmsg-replace="true"></span> </div> </div> <div class="row"> <label class="col-md-12 col-lg-2" for="CTENAR_ROK_NAROZENI">Rok narození</label> <div class="col-md-12 col-lg-2"> <input class="form-control input-sm" data-val="true" data-val-number="Pole Rok narození musí být číslo." data-val-range="Prosím, zadejte číslo v rozsahu 1900 - 9999" data-val-range-max="9999" data-val-range-min="1900" id="CTENAR_ROK_NAROZENI" name="CTENAR_ROK_NAROZENI" type="text" value="" /> </div> <div class="col-lg-offset-2 col-xs-12 col-lg-10"> <span class="field-validation-valid" data-valmsg-for="CTENAR_ROK_NAROZENI" data-valmsg-replace="true"></span> </div> </div> <div class="row text-left" style="margin-top: 10px"> <div class="col-md-offset-2 col-md-10 col-xs-12"> <input type="submit" value="Odeslat objednávku" class="btn btn-default btn-sm" /> </div> </div> </form> </div> </div> </div> <div class="row"> <input type="button" id="buttonId" class="button small radius" value="zobraz tif" style="display: none" /> </div> <div class="row"> <div class="col-md-12" id="divTif"> </div> </div> <div id="knihovnaDialogModal"> </div> <div style='display:none'> <form id='image2form'> <label>Poznámka</label> <input type='text' name='title' /> <div style="text-align: right;;margin-top: 10px"> <button type="submit" class="btn btn-primary" id="btn-add-comment" style="">Vložit</button> <button type="button" class="btn btn btn-default cancel-tag" style="">Zrušit</button> </div> </form> </div> </div> </div> </div> <script> var leftPanelSplitter = null; </script> </div> <script src="/Scripts/jquery-2.2.0.js"></script> <script src="/Scripts/Resources/Resources_cs.js" type="text/javascript"></script> <script src="/Scripts/jquery.cookie.js"></script> <script src="/Scripts/jquery.flashmessages.js"></script> <script src="/Scripts/Loader.js"></script> <script src="/Scripts/jquery-ui-1.11.4.js"></script> <script src="/Scripts/bootstrap.js"></script> <script src="/Scripts/respond.js"></script> <!--[if IE]> <script> history.pushState = function () { }; </script> <![endif]--> <!-- Google Analytics --> <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); var trackingCode = 'UA-6683622-40'; ga('create', trackingCode, 'auto'); ga('send', 'pageview'); </script> <!-- End Google Analytics --> <script> var bootstrapButton = $.fn.button.noConflict() // return $.fn.button to previously assigned value $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Bootstrap functionality $(function () { resizeWindowEvent(); }); function resizeWindowEvent() { var height = 10 + $('#navbarContainer').height() + ($('.above-navbar').is(":visible") ? $('.above-navbar').height() : 0); $('body').css('padding-top', height + 'px'); if (typeof setSplitterContainerHeight == 'function') { setSplitterContainerHeight(); } }; var resizeWindowTimeout = null; $(window).resize(function () { clearTimeout(resizeWindowTimeout); resizeWindowTimeout = setTimeout(resizeWindowEvent, 300); }); var currentCulture = 'cs-CZ'; var currentCultureSimplified = ('cs-CZ').substring(0, 2); var dataTablesLocalizationScript = 'cs-CZ' == 'cs-CZ' ? '/Scripts/DataTables/Czech.js' : '/Scripts/DataTables/English.js'; </script> <script src="/Scripts/jquery.splitter-0.20.0.js"></script> <script> var timer2; var delay = (function () { var timer = 0; return function (callback, ms) { clearTimeout(timer); timer = setTimeout(callback, ms); }; })(); //$(function () { //setSplitterContainerHeight(); //}); function setSplitterContainerHeight() { var bottomPadding = 10; var topPanelHeight = parseInt($('body').css('padding-top').replace('px', '')); $('#leftPanelLayoutSplitter').height(window.innerHeight - topPanelHeight - bottomPadding); } $(window).on('resize', function () { setSplitterContainerHeight(); //delay(function () { //}, 100); }); function initLeftPanelSplitter(position) { leftPanelSplitter = $('#leftPanelLayoutSplitter').split({ orientation: 'vertical', limit: 0, position: position+'px' // if there is no percentage it interpret it as pixels }); } $(function () { initLeftPanelSplitter(200); }); </script> <script src="/Scripts/jquery.validate.js"></script> <script src="/Scripts/jquery.validate.unobtrusive.js"></script> <script src="/Scripts/jquery.validate.custom.js"></script> <script src="/Scripts/select2.full.js"></script> <script src="/Scripts/i18n/cs.js"></script> <script src="/Scripts/FancyTree/jquery.fancytree-all.js"></script> <script src="/Scripts/Datatables/jquery.dataTables.js"></script> <script src="/Scripts/Datatables/dataTables.bootstrap.js"></script> <script src="/Scripts/jquery.ui-contextmenu.js"></script> <script src="/Scripts/jquery.elevateZoom-3.0.8.js"></script> <script src="/Scripts/jquery.print.js"></script> <script src="/Scripts/jquery.unobtrusive-ajax.js"></script> <script src="/Scripts/dragscroll.js"></script> <script src="/Scripts/moment-with-locales.min.js"></script> <script src="/Scripts/bootstrap-datetimepicker.min.js"></script> <script type="text/javascript" src="/Scripts/i18n/validation-messages_cs.js"> </script> <script src="/Scripts/ViewScripts/Shared/AjaxDialog.js"></script> <script src='/Scripts/ViewScripts/Shared/ActionDialog.js'></script> <script src='/Scripts/colorpicker.js'></script> <script src='/Scripts/ViewScripts/Catalog/TifTextEditor.js'></script> <script src="/Scripts/tinymce/tinymce.min.js"></script> <script src="/Scripts/ViewScripts/Catalog/RetroconversionBatchDialog.js"></script> <script src='/Scripts/ViewScripts/Catalog/Index.js'></script> <script src='/Scripts/ViewScripts/Catalog/ConcatCut.js'></script> <script src='/Scripts/ViewScripts/Filters/FilterFunction.js'></script> <script src='/Scripts/jquery-image-tag.js'></script> <script src="/Scripts/ViewScripts/Filters/NewFilter.js"></script> <script src="/Scripts/ViewScripts/Catalog/CatalogOperations.js"></script> <script> var userAuthenticated = 'False' == 'True'; var urlPrefix = 'https://retris.nkp.cz'; var sigla = 'ABA001'; var catalogId = ''; var caseId = ''; var drawerId = ''; var recordId = ''; var bookmarkId = ''; var filterId = ''; var page = ''; var phase = ''; var batchId = ''; var batchUser = ''; var firstFancyTreeLoad = true; var record; var filterFunction; var concatCut; var catalogOperations; $(document).ready(function () { record = new Index(); record.SaveUrl = '/Record/SaveSign'; record.SaveDialog = '/Record/GetDialog'; record.SysnoTable = '/Record/GetSysnoDT'; record.SignTable = '/Record/GetSignDT'; record.getImageData = '/Record/GetImage'; record.DeleteDialog = '/Record/GetDeleteDialog'; record.DeleteUrl = '/Record/DeleteSign'; record.categoryUrl = '/Record/GetSignCategoriesJson'; record.bookmarkDialog = '/Record/GetBookmarkDialog'; record.SavebookmarkUrl = '/Record/SaveBookmark'; record.SaveSysnokUrl = '/Record/SaveSysno'; record.sysnoDialog = '/Record/GetSysnoDialog'; record.DefaultPictureSize = '50'; record.MintPictureSize = '15'; record.MaxtPictureSize = '150'; record.StepPictureSize = '15'; record.getMaxZoomData = '/Record/GetImageForMaxZoom'; record.MaxZoomValue = '4'; record.moveRecordUrl = '/Record/MoveRecord'; record.concatMultipleRecordsUrl = '/Record/ConcatMultipleRecords'; record.saveImageData = '/Record/SaveImageText'; record.catalogSelectUrl = '/Catalog/GetCatalogSelect'; record.caseSelectUrl = '/Catalog/GetCaseSelect'; record.drawerSelectUrl = '/Catalog/GetDrawerSelect'; record.getRecord = ' /Catalog'; record.GetOriginalImage = ' /Record/GetOriginalImageBack'; record.cutImage = ' /Record/CutImage'; record.concatImage = ' /Record/ConcatImage'; record.deletImage = ' /Record/DeleteImage'; record.ImportFileDialog = ' /Record/ImportFileDialog'; record.ImportFile = ' /Record/ImportFile'; record.NewFile = '/Record/NewFile'; record.NewFileDialog = '/Record/NewFileDialog'; record.aboutCatalogDialog = '/Record/AboutCatalogDialog'; record.hasCatalogAdminRights = ('False' == "True" || 'False' == "True"); record.hasCatalogOperatorRights = ('False' == "True" || 'False' == "True" || 'False' == "True" || 'False' == "True"); record.deleteSysno = '/Record/DeleteSysno'; record.EditSignNote = '/Record/EditSignNote'; record.createOrderUrl = '/Orders/CreateOrder'; record.filterUrl = '/Filters/NewFilter'; record.updateRecordNoteUrl = '/Record/UpdateRecordNote'; record.filterId = filterId; record.showRightPanel = ('False' == "True" || 'False' == "True" || 'False' == "True" || 'False' == "True"); record.retroconversionBatchDialogUrl = '/Retroconversion/UpdateRetroconversionBatch'; record.retroconversionBatchTreeUrl = '/Retroconversion/GetRetroconversionBatchTree'; record.updateRetroconversionBatchRightPanelUrl = '/Retroconversion/UpdateRetroconversionBatchRightPanel'; record.EditPersonalSign = '/Record/EditPersonalSign'; record.GetPersonalSign = '/Record/GetPersonalSign'; record.SetPersonalSign = '/Record/SetPersonalSign'; record.retroconversionBatchSavePageUrl = '/Retroconversion/UpdateRetroconversionBatchSavePage'; record.retroconversionBatchPrintPageUrl = '/Retroconversion/UpdateRetroconversionBatchPrintPage'; record.retroconversionBatchGetBatchIdUrl = '/Retroconversion/UpdateRetroconversionBatchGetBatchId'; record.loadBatchCountsUrl = '/Retroconversion/UpdateRetroconversionBatchLoadBatchCounts'; record.userAuthorized = 'False' == "True"; record.Init(); concatCut = new ConcatCut(); concatCut.concat = '/Catalog/ConcatDrawer'; concatCut.concatDialog = '/Catalog/ConcatDrawerDialog'; concatCut.reloadPage = '/Catalog'; concatCut.cutDialog = '/Catalog/CutDrawerDialog'; concatCut.cut = '/Catalog/CutDrawer'; concatCut.concatCaseDialog = '/Catalog/ConcatCaseDialog'; concatCut.cutCaseDialog = '/Catalog/CutCaseDialog'; filterFunction = new FilterFunction(); catalogOperations = new CatalogOperations(); catalogOperations.deleteDrawerUrl = '/Catalog/DeleteDrawer' }); function updateConcatDrawerSuccess(data) { concatCut.updateConcatDrawerSuccess(data); } function updateCutDrawerSuccess(data) { concatCut.updateCutDrawerSuccess(data); } function statisticsDialog(catalogId, caseId, drawerId, filterId) { $('body').createLoader(); AjaxDialog({ url: '/Record/RecordsStatistics', data: { catalogId: catalogId, caseId: caseId, drawerId: drawerId, filterId: filterId }, method: 'GET', success: function (data) { } }, { dialogId: "statisticsDialog", title: resources.statistics, width: 500 }, function () { $('body').destroyLoader(); }); } function initCreateOrder(data) { $("body").destroyLoader(); if (data != null && data.result == null) { $('#orderDiv').html(data); //validace if ($('#SIGLA').val() != null && $('#SIGLA').val().toLowerCase().trim() == 'aba001') { $.validator.addMethod("BIBL_SIGNATURA_2", function (value, element) { var result = true; if (value == null || value == "") { result = false; } return result; }, resources.poleNesmiBytPrazdne); $.validator.addMethod("BIBL_SIGNATURA_3", function (value, element) { var result = true; if (value == null || value == "") { result = false; } return result; }, resources.poleNesmiBytPrazdne); } else { $.validator.addMethod("BIBL_SIGNATURA_BEZ_VALIDACE", function (value, element) { var result = true; if (value == null || value == "") { result = false; } return result; }, resources.poleNesmiBytPrazdne); } $('#mainDiv').css('height', '60%'); $('#orderDiv').show(); $('#KS_ID').select2({ placeholder: resources.Choose, width: '100%', language: currentCultureSimplified, }); //events $("#continueOrder").off('click').on('click', function () { $.validator.unobtrusive.parse($('#createOrderForm')); if ($('#createOrderForm').valid()) { $('#orderDiv').createLoader(); $.ajax({ cache: false, url: '/Orders/LibraryServiceIsMvs', method: 'get', data: { id: $('#KS_ID').val() }, success: function (data) { $('#orderPart1').hide(); if (data.result) { $('#orderPart2Mvs').show(); } else { $('#orderPart2').show(); } }, complete: function (data) { $('#orderDiv').destroyLoader(); } }); } }); jQuery.validator.addMethod("MVS_PASSWORD", function (value, element) { var returnValue = false; $('#orderDiv').createLoader(); $.ajax({ url: '/Orders/ValidateMvsPassword', method: 'get', data: { sigla: $('#MVS_SIGLA').val(), password: $('#MVS_PASSWORD').val() }, async: false, success: function (data) { returnValue = data.result; }, complete: function (data) { $('#orderDiv').destroyLoader(); } }); return returnValue; }, resources.mvsPasswordInvalid); } else if (data != null && data.result == true) { $('#orderDiv').hide(); $('#orderDiv').html(""); $('#mainDiv').css('height', '100%'); $('body').createFlashMessage({ type: "fm-success", message: resources.createOrderSuccess.replace('{0}', data.id), permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } else { $('body').createFlashMessage({ type: "fm-fail", message: resources.createOrderFail, permanent: false, closeable: true, duration: resources.TimeouFive, position: "fm-fixed", location: "fm-top-right" }); $('#orderDiv').hide(); $('#orderDiv').html(""); $('#mainDiv').css('height', '100%'); } } function destroyOrder() { $('#orderDiv').hide(); $('#orderDiv').html(""); $('#mainDiv').css('height', '100%'); } function initCreateOldRecordOrder(data) { if (data != null) { if (data.result == true) { $('body').createFlashMessage({ type: "fm-success", message: resources.createOrderSuccess.replace('{0}', data.id), permanent: true, closeable: true, duration: resources.TimeouFive, position: "fm-fixed", location: "fm-top-right" }); } else { $('body').createFlashMessage({ type: "fm-fail", message: resources.createOrderFail, permanent: false, closeable: true, duration: resources.TimeouFive, position: "fm-fixed", location: "fm-top-right" }); } } } $('.datepickerOldRecordOrder').datetimepicker({ locale: currentCultureSimplified, widgetPositioning: { horizontal: 'right', vertical: 'top' }, format: 'D. M. YYYY', minDate: moment().startOf('day'), maxDate: moment().add(1, 'month') }); $('.datepickerOldRecordOrder').val(''); function updateConcatCaseSuccess(data) { concatCut.updateConcatCaseSuccess(data); } function updateCutCaseSuccess(data) { concatCut.updateCutCaseSuccess(data); } function initPersonalSignGroup(data) { $("#editPersonalSignDialog").dialog('destroy'); $("#categoriesPom").val(data); $("#categories").select2("val", ""); } function initConcatMultipleRecords(data) { $('body').destroyLoader(); if (data != null && data.result) { $("#concatMultipleRecordsDialog").dialog('destroy'); url = '/Record/GetRecord'; data = { drawerId: $('#SUPLIK_ID').val(), categoryId: $('#KAT_KEY').val(), bookcase: $('#SKRIN_ID').val(), order: $('#sliderValue').val() }; record.loadRecord(url, data); $('body').createFlashMessage({ type: "fm-success", message: resources.concatMultipleSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } else if (data != null && data.result == false) { $("#concatMultipleRecordsDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.concatMultipleFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } else { $('#ConcatMultipleRecordsForm').submit(function () { $('body').createLoader(); }); $('.concatMultipleRecordIdFrom, .concatMultipleRecordIdTo').off('focus').on('focus', function () { $('#ConcatFromToRadio').prop('checked', true); }); $('.concatMultipleRecordIds').off('focus').on('focus', function () { $('#ConcatListedIdsRadio').prop('checked', true); }); } } function initMoveRecord(data) { if (data != null && data.result) { $('body').destroyLoader(); $("#moveRecordDialog").dialog('destroy'); url = '/Record/GetRecord'; data = { drawerId: $('#SUPLIK_ID').val(), categoryId: $('#KAT_KEY').val(), bookcase: $('#SKRIN_ID').val(), order: $('#sliderValue').val() }; record.loadRecord(url, data); $('body').createFlashMessage({ type: "fm-success", message: resources.moveRecordSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } else if (data != null && data.result == false) { $('body').destroyLoader(); $("#moveRecordDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.moveRecordFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } else { $('#CatalogId').select2({ placeholder: resources.Choose, width: '100%', language: currentCultureSimplified, ajax: { dataType: 'json', type: "POST", url: record.catalogSelectUrl, data: function (params) { var queryParameters = { query: params.term, instituteId: function () { return $('#Institutes').val() }, } return queryParameters; }, processResults: function (data) { return { results: data }; }, } }); $('#CaseId').select2({ placeholder: resources.Choose, width: '100%', language: currentCultureSimplified, ajax: { dataType: 'json', type: "POST", url: record.caseSelectUrl, data: function (params) { var queryParameters = { query: params.term, catalogId: function () { return $('#CatalogId').val() }, instituteId: function () { return $('#Institutes').val() } } return queryParameters; }, processResults: function (data) { return { results: data }; }, } }); $('#DrawerId').select2({ placeholder: resources.Choose, width: '100%', language: currentCultureSimplified, ajax: { dataType: 'json', type: "POST", url: record.drawerSelectUrl, data: function (params) { var queryParameters = { query: params.term, caseId: function () { return $('#CaseId').val() }, catalogId: function () { return $('#CatalogId').val() }, instituteId: function () { return $('#Institutes').val() } } return queryParameters; }, processResults: function (data) { return { results: data }; }, } }); $('#CaseId').on('change', function () { $('#DrawerId').select2('val', ''); $('#DrawerId option').remove(); }); $('#CatalogId').on('change', function () { $('#CaseId').select2('val', ''); $('#DrawerId').select2('val', ''); $('#CaseId option').remove(); $('#DrawerId option').remove(); }); $('#MoveRecordForm').submit(function () { $('body').createLoader(); }); } } function renameCaseSuccess(data) { if (data != null && data.result) { $("#renameCaseDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-success", message: resources.renameCaseSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); window.location = '/Catalog' + '?sigla=' + sigla + '&catalogId=' + catalogId + '&caseId=' + caseId + '&drawerId=' + drawerId + '&recordId=' + recordId + '&bookmarkId=' + bookmarkId + '&batchId=' + batchId + '&phase=' + phase + '&batchUser=' + batchUser; } else if (data != null && data.result == false) { $("#renameCaseDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.renameCaseFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } } function renameCatalogSuccess(data) { if (data != null && data.result) { $("#renameCatalogDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-success", message: resources.renameCatalogSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); window.location = '/Catalog' + '?sigla=' + sigla + '&catalogId=' + catalogId + '&caseId=' + caseId + '&drawerId=' + drawerId + '&recordId=' + recordId + '&bookmarkId=' + bookmarkId + '&batchId=' + batchId + '&phase=' + phase + '&batchUser=' + batchUser; } else if (data != null && data.result == false) { $("#renameCatalogDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.renameCatalogFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } } function renameDrawerSuccess(data) { if (data != null && data.result) { $("#renameDrawerDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-success", message: resources.renameDrawerSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); window.location = '/Catalog' + '?sigla=' + sigla + '&catalogId=' + catalogId + '&caseId=' + caseId + '&drawerId=' + drawerId + '&recordId=' + recordId + '&bookmarkId=' + bookmarkId + '&batchId=' + batchId + '&phase=' + phase + '&batchUser=' + batchUser; } else if (data != null && data.result == false) { $("#renameDrawerDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.renameDrawerFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } } function scrollOnTreeOpen(node) { if (node) { var position = $(node.span).position(); if (position) { $("#catalogTree").animate({ scrollTop: position.top }, 400); } } } //Bookmark context menu actions function deleteBookmark(id, name) { if (confirm(resources.bookmarkDeleteConfirm.replace('{1}', name))) { $.ajax({ type: 'POST', cache: false, url: '/Record/DeleteBookmark', data: { id: id }, success: function (data) { if (data.result) { refreshSelectedBookmarks(id); $('body').createFlashMessage({ type: "fm-success", message: resources.bookmarkDeleteSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } else { $('body').createFlashMessage({ type: "fm-fail", message: resources.bookmarkDeleteFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } } }); } } function refreshSelectedBookmarks(id) { var tree = $("#catalogTree").fancytree('getTree'); tree.findFirst(function (node) { if (id == null || id === undefined || id == '') { if ((node.extraClasses.indexOf('drawer') >= 0 && node.isActive())) { var isExpanded = node.isExpanded(); node.resetLazy(); if (isExpanded) { node.setExpanded(); } else { node.load(true); } } else if (node.extraClasses.indexOf('bookmark') >= 0 && node.isActive()) { var isExpanded = node.parent.isExpanded(); var parent = node.parent; parent.resetLazy(); if (isExpanded) { parent.setExpanded(); } else { parent.load(true); } } } else { if (node.extraClasses.indexOf('bookmark') >= 0 && node.key == id) { var isExpanded = node.parent.isExpanded(); var parent = node.parent; var childrenCount = node.parent.children.length; parent.resetLazy(); if (childrenCount < 2) { parent.visitAndLoad(null, true); parent.lazy = false; } if (childrenCount > 1) { if (isExpanded) { parent.setExpanded(); } else { parent.load(true); } } } } }); } function refreshCase(id, activate) { var tree = $("#catalogTree").fancytree('getTree'); tree.findFirst(function (node) { if (node.extraClasses.indexOf('case') >= 0 && node.key == id) { node.resetLazy(); node.setExpanded(); if (activate) { node.setActive(); } //parent.visitAndLoad(null, true); //parent.lazy = false; //if (isExpanded) { //} else { // parent.load(true); //} //if (childrenCount < 2) { // parent.visitAndLoad(null, true); // parent.lazy = false; //} //if (childrenCount > 1) { // if (isExpanded) { // parent.setExpanded(); // } else { // parent.load(true); // } //} } }); } function updateBookmark(id) { if ($('#updateBookmarkDialog').length < 1) { AjaxDialog({ url: '/Record/UpdateBookmark', data: { bookmarkId: id }, method: 'GET', success: function (data) { } }, { dialogId: "updateBookmarkDialog", title: resources.updateBookmark, width: 300 }, function () { }); } } function updateBookmarkSuccess(data) { if (data != null && data.result) { $("#updateBookmarkDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-success", message: resources.bookmarkDialogSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); refreshSelectedBookmarks(); //window.location = '/Catalog' + '?sigla=' + sigla + '&catalogId=' + catalogId + '&caseId=' + caseId + '&drawerId=' + drawerId + '&recordId=' + recordId + '&bookmarkId=' + bookmarkId; } else if (data != null && data.result == false) { $("#updateBookmarkDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.bookmarkDialogFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } } // function updateRecordNoteSuccess(data) { if (data != null && data.result) { $("#updateRecordNoteDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-success", message: resources.updateRecordNoteDialogSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); //if (data.signatureWholeText != null) { // $('#recordSignature').html(data.signatureWholeText); //} else { // $('body').createFlashMessage({ type: "fm-success", message: resources.deleteRecordNoteDialogSuccess, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); // $('#recordSignature').html(''); //} } else if (data != null && data.result == false) { $("#updateRecordNoteDialog").dialog('destroy'); $('body').createFlashMessage({ type: "fm-fail", message: resources.updateRecordNoteDialogFail, permanent: false, closeable: true, duration: resources.TimeouThree, position: "fm-fixed", location: "fm-top-right" }); } } function manageFilter(filterId, catalogId) { loader.createLoader(); var filtr = null; var dialog = AjaxDialog({ url: '/Filters/ManageFilter', data: { filterId: filterId, catalogId: catalogId}, method: 'GET', success: function (data) { } }, { dialogId: "manageFilterDialog", title: filterId != null ? resources.vlastnosti_filtru : resources.novy_filtr, width: (window.innerWidth <= 900 ? window.innerWidth : 900), height: window.innerHeight, resizeable: true }, function () { filtr = new NewFilter(); filtr.url = '/Filters/GetSkrineTree'; filtr.urlPriznaky = '/Filters/GetPriznakyTree'; filtr.urlPrehledFiltru = '/Filters/Filters'; filtr.dateFormat = 'D. M. YYYY'; filtr.urlKategorie = '/Filters/GetCategories'; filtr.urlRetro = '/Filters/GetRetro'; filtr.oznacitSkrine = 'Označit všechny skříně'; filtr.odznacitSkrine = 'Odznačit všechny skříně'; filtr.priznakyPrefix = 'raaaaaaaaaaaaaaaaaaaaxxx'; filtr.Init(); loader.destroyLoader(); $('#manageFilterDialog').data("ui-dialog").uiDialog.draggable("option", "containment", "none"); }); } $(document).on('change', '#sliderValue', function () { page = null; $("#recordSlider").slider("option", "value", $(this).val()); url = '/Record/GetRecord'; data = { drawerId: $('#SUPLIK_ID').val(), categoryId: $('#KAT_KEY').val(), bookcase: $('#SKRIN_ID').val(), order: $(this).val(), filterId: $('#filterId').val(), batchId: $('#batchId').val(), phase: $('#phase').val(), batchUser: $('#batchUser').val(), currentRecord: $('#ZAZNAM_ID').val(), currentOrder: $('#orderOfCurrentRecord').val() }; record.loadRecord(url, data); }); $(document).on('change', '#recordIdValue', function () { $('body').createLoader(); var recordId = $(this).val(); var catalogId = $('#KAT_KEY').val(); var filterId = $('#filterId').val(); filterId = filterId == -1 || filterId == "-1" ? null : filterId; $.ajax({ url: '/Record/GetRecordExists', data: { catalogId: catalogId, recordId: recordId, filterId: filterId }, method: 'GET', success: function (data) { if (data.result) { window.location.href = '/Catalog' + '?catalogId=' + catalogId + '&recordId=' + recordId + '&filterId=' + filterId; } else { $('body').deleteFlashMessages(0); $('body').createFlashMessage({ type: "fm-fail", message: resources.zaznam_nenalezen_v_katalogu.replace('{1}', recordId), permanent: false, closeable: true, duration: resources.TimeouFive, position: "fm-fixed", location: "fm-top-right" }); } }, complete: function (data) { $('body').destroyLoader(); } }); }); $(document).on('click', '#decrementSlider', function () { removeFromSlider(1); }); $(document).on('click', '#decrementSlider10', function () { removeFromSlider(10); }); $(document).on('click', '#decrementSliderStart', function () { setSliderMin(); }); $(document).on('click', '#incrementSlider', function () { addToSlider(1); }); $(document).on('click', '#incrementSlider10', function () { addToSlider(10); }); $(document).on('click', '#incrementSliderEnd', function () { setSliderMax(); }); function addToSlider(value) { var max = $("#recordSlider").slider("option", "max"); var valueToSet = parseInt($("#recordSlider").slider("option", "value")) + value; if (max >= valueToSet) { $("#recordSlider").slider("option", "value", valueToSet).change(); $("#sliderValue").change(); } else { setSliderMax(); } } function removeFromSlider(value) { var min = $("#recordSlider").slider("option", "min"); var valueToSet = parseInt($("#recordSlider").slider("option", "value")) - value; if (min <= valueToSet) { $("#recordSlider").slider("option", "value", valueToSet); $("#sliderValue").change(); } else { setSliderMin(); } } function setSliderMin() { var min = $("#recordSlider").slider("option", "min"); var valueToSet = parseInt(min); if (valueToSet) { $("#recordSlider").slider("option", "value", valueToSet); $("#sliderValue").change(); } } function setSliderMax() { var max = $("#recordSlider").slider("option", "max"); var valueToSet = parseInt(max); if (valueToSet) { $("#recordSlider").slider("option", "value", valueToSet); $("#sliderValue").change(); } } function initSlider() { var value = $("#sliderValue").val(); $("#recordSlider").slider({ slide: function (event, ui) { $(this).slider('value', ui.value); $("#sliderValue").val($(this).slider("value")); }, change: function (event, ui) { $("#sliderValue").val($(this).slider("value")); }, stop: function (event, ui) { $("#sliderValue").val($(this).slider("value")).change(); }, value: value, min: 1, max: $('#numberOfRecords').text() }); } $(function () { $("#Institutes").select2({ width: "100%" }); sigla = $("#Institutes").val(); catalogTreeInit(sigla, catalogId, caseId, drawerId, recordId, bookmarkId, filterId, batchId, phase, batchUser); }); $("#Institutes").on('change', function () { ShowQuickSearch(false); var tree = $("#catalogTree").fancytree('getTree'); tree.reload({ type: "POST", url: '/Catalog/GetCatalogsTree', data: { sigla: $("#Institutes").val() } }); sigla = $("#Institutes").val(); $.ajax({ cache: false, method: 'GET', url: '/Catalog/InstituteWelcomeScreen' + '?sigla=' + sigla, success: function (data) { $("#recordContent .overflowDiv").html(data); } }); if (sigla === 'ABA001') { $.ajax({ cache: false, method: 'GET', url: '/Orders/CreateOldRecordOrder' + '?sigla=' + sigla, success: function (data) { $("#recordContent .overflowDiv").append(data); } }); } }); glyph_opts = { map: { doc: "fa fa-file-o", docOpen: "fa fa-file-o", //checkbox: "glyphicon glyphicon-unchecked", //checkboxSelected: "glyphicon glyphicon-check", //checkboxUnknown: "glyphicon glyphicon-share", //dragHelper: "glyphicon glyphicon-play", //dropMarker: "glyphicon glyphicon-arrow-right", error: "fa fa-exclamation-triangle", expanderClosed: "fa fa-caret-right", expanderLazy: "fa fa-caret-right", // glyphicon-expand expanderOpen: "fa fa-caret-down", // glyphicon-collapse-down folder: "fa fa-folder", folderOpen: "fa fa-folder-open", loading: "fa fa-refresh fa-spin" } }; function catalogTreeInit(_sigla, _catalogId, _caseId, _drawerId, _recordId, _bookmarkId, _filterId, _batchId, _phase, _batchUser) { $("#catalogTree").fancytree({ extensions: ["glyph"], glyph: glyph_opts, //toggleEffect: { effect: "drop", options: { direction: "left" }, duration: 400 }, wide: { iconWidth: "1em", iconSpacing: "0.5em", levelOfs: "1.5em" }, source: $.ajax({ cache: false, type: "POST", url: '/Catalog/GetCatalogsTree', data: { sigla: $("#Institutes").val() } }), init: function (event, data) { //aktivování klíče dle cesty v url if (_catalogId && firstFancyTreeLoad && !_filterId && !_batchId && !_phase) { var catalogNode = data.tree.findFirst(function (node) { if (node.extraClasses.indexOf("catalog") >= 0 && node.key == _catalogId) { return true; } }); if (catalogNode && _caseId) { catalogNode.setExpanded(true); } else { catalogNode.setActive(); } } else if (_filterId && firstFancyTreeLoad) { var filterNode = data.tree.findFirst(function (node) { if (node.extraClasses.indexOf("filtr") >= 0) { return true; } }); if (filterNode) { filterNode.setExpanded(true); } var filterCatalogId = $("#filterCatalogId").val(); var categoryNode = data.tree.findFirst(function (node) { if (node.extraClasses.indexOf("filtrCatalog") >= 0 && node.key == filterCatalogId) { return true; } }); if (categoryNode) { categoryNode.setExpanded(true); } } else if (_batchId && _phase && _catalogId && _batchUser && firstFancyTreeLoad) { var retroNode = data.tree.findFirst(function (node) { if (node.extraClasses.indexOf("retroconversionNode") >= 0) { return true; } }); var retroCatalogNode = data.tree.findFirst(function (node) { if (node.extraClasses.indexOf("retroconversionCatalogNode") >= 0 && node.key == 'retroconversionCatalog-' + _catalogId) { return true; } }); if (retroNode) { retroNode.setExpanded(true).done(function () { if (retroCatalogNode) { retroCatalogNode.setExpanded(true); } }); } var phaseNode = data.tree.findFirst(function (node) { if (node.extraClasses.indexOf("phase") >= 0 && node.key == _phase && node.parent.key == 'retroconversionCatalog-' + _catalogId) { return true; } }); if (phaseNode) { phaseNode.setExpanded(true); } } else { firstFancyTreeLoad = false; } if ('False' == "True" ? true : false) { //contextmenu bookmarks $(".bookmarkContextMenuWrapper").contextmenu({ delegate: ".bookmark", menu: [ { title: resources.delete, cmd: "delete", uiIcon: "ui-icon-trash" }, { title: resources.update, cmd: "update", uiIcon: "ui-icon-pencil" }, ], select: function (event, ui) { var node = $.ui.fancytree.getNode(ui.target); if (node != null) { switch (ui.cmd) { case "delete": deleteBookmark(node.key, ui.target.hasClass('fancytree-title') ? ui.target.text() : ui.target.next('.fancytree-title').text()); break; case "update": updateBookmark(node.key); break; } } } }); } if ('False' == "True" || 'False' == "True" ? true : false) { //contextmenu drawers $(".drawerContextMenuWrapper").contextmenu({ delegate: ".drawer", menu: [ { title: resources.rename, cmd: "rename", uiIcon: "ui-icon-pencil" }, { title: resources.spojit_s_predchozim_suplik, cmd: "concatPrevious", uiIcon: "ui-icon-arrowthick-1-n" }, { title: resources.spojit_s_nasledujicim_suplik, cmd: "concatNext", uiIcon: "ui-icon-arrowthick-1-s" }, { title: resources.rozdelit_suplik, cmd: "CutDrawer", uiIcon: "ui-icon-arrowthick-2-n-s" }, { title: resources.statistics, cmd: "statistics", uiIcon: "ui-icon-info" }, { title: resources.delete, cmd: "delete", uiIcon: "ui-icon-trash" }, ], select: function (event, ui) { var node = $.ui.fancytree.getNode(ui.target); var caseNode = node.parent; var catalogNode = caseNode.parent; if (node != null) { switch (ui.cmd) { case "concatPrevious": concatCut.ConcatDrawer(node.key, node.parent.key, node.parent.parent.key, true); break; case "concatNext": concatCut.ConcatDrawer(node.key, node.parent.key, node.parent.parent.key, false); break; case "CutDrawer": concatCut.CutDrawer(node.key, node.parent.key, node.parent.parent.key); break; case "rename": if ($('#renameDrawerDialog').length < 1) { AjaxDialog({ url: '/Catalog/RenameDrawer', data: { catalogId: catalogNode.key, caseId: caseNode.key, drawerId: node.key }, method: 'GET', success: function (data) { } }, { dialogId: "renameDrawerDialog", title: resources.rename, width: 300 }, function () { }); } break; case "statistics": statisticsDialog(node.parent.parent.key, node.parent.key, node.key, null); break; case "delete": catalogOperations.deleteDrawer(node.parent.parent.key, node.parent.key, node.key, node.title); break; } } }, beforeOpen: function (event, ui) { $('.filtersHref').parent().contextmenu("showEntry", "delete", 'False' == "True"); } }); } //contextmenu case if ('False' == "True" || 'False' == "True" ? true : false) { $(".caseContextMenuWrapper").contextmenu({ delegate: ".case", menu: [ { title: resources.rename, cmd: "rename", uiIcon: "ui-icon-pencil" }, { title: resources.spojit_s_predchozim_skrin, cmd: "concatPrevious", uiIcon: "ui-icon-arrowthick-1-n" }, { title: resources.spojit_s_nasledujicim_skrin, cmd: "concatNext", uiIcon: "ui-icon-arrowthick-1-s" }, { title: resources.rozdelit_skrin, cmd: "CutCase", uiIcon: "ui-icon-arrowthick-2-n-s" }, { title: resources.statistics, cmd: "statistics", uiIcon: "ui-icon-info" }, ], select: function (event, ui) { var node = $.ui.fancytree.getNode(ui.target); var caseId = node.key; var catalogId = node.parent.key; if (node != null) { switch (ui.cmd) { case "concatPrevious": concatCut.ConcatCase(node.key, node.parent.key, true); break; case "concatNext": concatCut.ConcatCase(node.key, node.parent.key, false); break; case "CutCase": concatCut.CutCase(node.key, node.parent.key); break; case "rename": if ($('#renameCaseDialog').length < 1) { AjaxDialog({ url: '/Catalog/RenameCase', data: { catalogId: catalogId, caseId: caseId }, method: 'GET', success: function (data) { } }, { dialogId: "renameCaseDialog", title: resources.rename, width: 300 }, function () { }); } break; case "statistics": statisticsDialog(catalogId, caseId, null, null); break; } } } }); } if ('False' == "True" || 'False' == "True" ? true : false) { //contextmenu catalog $(".catalogContextMenuWrapper").contextmenu({ delegate: ".catalog", menu: [ { title: resources.rename, cmd: "rename", uiIcon: "ui-icon-pencil" }, { title: resources.zneplatnit, cmd: "unvalid", uiIcon: "ui-icon-trash" }, { title: resources.statistics, cmd: "statistics", uiIcon: "ui-icon-info" }, ], select: function (event, ui) { var node = $.ui.fancytree.getNode(ui.target); var catalogId = node.key; if (node != null) { switch (ui.cmd) { case "rename": if ($('#renameCaseDialog').length < 1) { AjaxDialog({ url: '/Catalog/RenameCatalog', data: { catalogId: catalogId }, method: 'GET', success: function (data) { } }, { dialogId: "renameCatalogDialog", title: resources.rename, width: 300 }, function () { }); } break; case "unvalid": if (confirm(resources.opravdu_zneplatnit_katalog)) { window.location = '/Catalog/UnvalidateCatalog?catalogId=' + node.key; } break; case "statistics": statisticsDialog(catalogId, null, null, null); break; } } } }); } if ('False' == "True" || 'False' == "True" || 'False' == "True" || 'False' == "True") { //contextmenu filters $(".filtrContextMenuWrapper").contextmenu({ delegate: ".filtrNode", menu: [ { title: resources.novy, cmd: "novy", uiIcon: "ui-icon-document" }, { title: resources.vlastnosti, cmd: "vlastnosti", uiIcon: "ui-icon-contact" }, { title: resources.smazat, cmd: "smazat", uiIcon: "ui-icon-trash" }, //{ title: resources.statistika, cmd: "CutDrawer", uiIcon: "ui-icon-arrowthick-2-n-s" }, { title: resources.statistics, cmd: "statistics", uiIcon: "ui-icon-info" }, ], select: function (event, ui) { var node = $.ui.fancytree.getNode(ui.target); if (node != null) { switch (ui.cmd) { case "novy": var category = ""; category = node.parent.parent.key; manageFilter(null, category); break; case "vlastnosti": //filterFunction.Detail(node.key, node.parent.key, node.parent.parent.key, false); manageFilter(node.key); break; case "smazat": if (confirm(resources.opravdu_smazat.replace('{0}', node.title))) { window.location = '/Filters/Delete?filterId=' + node.key + '&isCatalog=true'; } else { } break; case "statistics": statisticsDialog(null, null, null, node.key); break; } } } }); //contextmenu filters $(".filtrRootContextMenuWrapper").contextmenu({ delegate: ".filtr", menu: [ { title: resources.novy, cmd: "novy", uiIcon: "ui-icon-document" }, ], select: function (event, ui) { var node = $.ui.fancytree.getNode(ui.target); if (node != null) { switch (ui.cmd) { case "novy": manageFilter(); break; } } } }); } }, lazyLoad: function (event, data) { var node = data.node; if (node.extraClasses.indexOf("catalog") >= 0) { var catalogNode = data.node; var result = $.ajax({ url: '/Catalog/GetCaseTree', type: "POST", data: { catalogKey: catalogNode.key }, complete: function () { if (_caseId && firstFancyTreeLoad) { var caseNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("case") >= 0 && node.key == _caseId && node.parent.key == _catalogId) { return true; } }); if (caseNode && _drawerId) { caseNode.setExpanded(true); } else { caseNode.setActive(); } } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("case") >= 0) { var caseNode = data.node; var catalogNode = caseNode.parent; var result = $.ajax({ url: '/Catalog/GetDrawerTree', type: "POST", cache: false, data: { catalogKey: catalogNode.key, caseId: caseNode.key }, complete: function () { if (_drawerId && firstFancyTreeLoad) { var drawerNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("drawer") >= 0 && node.key == _drawerId && node.parent.key == _caseId && node.parent.parent.key == _catalogId) { return true; } }); if (drawerNode && _bookmarkId) { drawerNode.setExpanded(true); } else if (_recordId && _catalogId && firstFancyTreeLoad) { drawerNode.setActive(true, { noEvents: true }); var url = '/Record/GetRecord'; var ajaxData = { recordId: _recordId, categoryId: _catalogId }; record.loadRecord(url, ajaxData); } else { drawerNode.setActive(); } if (!_bookmarkId) { firstFancyTreeLoad = false; } } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("drawer") >= 0) { var drawerNode = data.node; var caseNode = drawerNode.parent; var catalogNode = caseNode.parent; var result = $.ajax({ url: '/Catalog/GetBookmarksTree', type: "POST", cache: false, data: { drawerId: drawerNode.key, caseId: caseNode.key, catalogId: catalogNode.key }, complete: function () { if (_bookmarkId && firstFancyTreeLoad) { var bookmarkNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("bookmark") >= 0 && node.key == _bookmarkId && node.parent.key == _drawerId && node.parent.parent.key == _caseId && node.parent.parent.parent.key == _catalogId) { return true; } }); if (bookmarkNode) { bookmarkNode.setActive(); } } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("filtrCatalog") >= 0) { var result = $.ajax({ url: '/Filters/GetFilteresTree', type: "POST", cache: false, data: { catalogId: data.node.key }, complete: function () { if (_filterId && firstFancyTreeLoad) { var filterCategoryId = $("#filterCategoryId").val(); var filterNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if ((node.extraClasses.indexOf("public") >= 0 || node.extraClasses.indexOf("categoryNode") >= 0) && node.key == filterCategoryId) { return true; } }); if (filterNode) { filterNode.setExpanded(true); //firstFancyTreeLoad = false; } //var filterNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { // if (node.extraClasses.indexOf("filtrNode") >= 0 && node.key == _filterId && node.parent.key == _catalogId) { // return true; // } //}); //if (filterNode) { // filterNode.setActive(); // firstFancyTreeLoad = false; //} } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("public") >= 0) { var result = $.ajax({ url: '/Filters/GetFilteresNodesTree', type: "POST", cache: false, data: { isPublic: true, cetegory: data.node.key, catalogId: data.node.parent.key }, complete: function () { if (_filterId && firstFancyTreeLoad) { var filterNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("filtrNode") >= 0 && node.key == _filterId) { return true; } }); if (filterNode) { filterNode.setActive(); //scroll na filtr při prvním spuštění se děje až po activatu proto je toto až v metodě expanded v public a categoryNode podmínce //firstFancyTreeLoad = false; } } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("categoryNode") >= 0) { var result = $.ajax({ url: '/Filters/GetFilteresNodesTree', type: "POST", cache: false, data: { catalogId: data.node.parent.key, isPublic: false, cetegory: data.node.key }, complete: function () { if (_filterId && firstFancyTreeLoad) { var filterNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("filtrNode") >= 0 && node.key == _filterId) { return true; } }); if (filterNode) { filterNode.setActive(); //scroll na filtr při prvním spuštění se děje až po activatu proto je toto až v metodě expanded v public a categoryNode podmínce //firstFancyTreeLoad = false; } } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("phase") >= 0) { var sigF1Node = data.node; var result = $.ajax({ cache: false, url: '/Retroconversion/GetSigF2Tree', type: "POST", data: { sigF1: sigF1Node.key, catalogId: node.parent.key.split('-')[1] }, complete: function () { //nastavit lazy všem potomkům var pracDavUsers = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("pracDavUser") >= 0) { node.resetLazy(); } }); if (_batchUser && firstFancyTreeLoad) { var batchUserNodeNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("pracDavUser") >= 0 && node.key == _batchUser) { return true; } }); if (batchUserNodeNode) { batchUserNodeNode.setExpanded(true); } } else { firstFancyTreeLoad = false; } } }); data.result = result; } else if (node.extraClasses.indexOf("pracDavUser") >= 0) { var node = data.node; var result = $.ajax({ cache: false, url: '/Retroconversion/GetBatchesTree', type: "POST", data: { user: node.key, phase: node.parent.key, catalogId: node.parent.parent.key.split('-')[1] }, complete: function () { if (_batchId && firstFancyTreeLoad) { var batchNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("batchIdNode") >= 0 && node.key == _batchId + ';' + _phase + ';' + _catalogId) { return true; } }); if (batchNode) { //batchNode.setActive(); // batchNode.setActive(true, { noEvents: true }); var url = '/Record/GetRecord'; var ajaxData = { recordId: _recordId, batchId: _batchId, phase: _phase, batchUser: _batchUser, categoryId: _catalogId }; record.loadRecord(url, ajaxData); // firstFancyTreeLoad = false; } } else { firstFancyTreeLoad = false; } } }); data.result = result; } }, expand: function (event, data) { var node = data.node; scrollOnTreeOpen(data.node); if (node.extraClasses.indexOf("filtr") >= 0) { if (_filterId && firstFancyTreeLoad) { var filtrCatalogNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("filtrCatalog") >= 0 && node.key == _catalogId) { return true; } }); if (filtrCatalogNode) { filtrCatalogNode.setExpanded(true); } } else { firstFancyTreeLoad = false; } } if ((node.extraClasses.indexOf("categoryNode") >= 0 || node.extraClasses.indexOf("public") >= 0) && firstFancyTreeLoad) { var filterNode = $('#catalogTree').fancytree('getTree').findFirst(function (node) { if (node.extraClasses.indexOf("filtrNode") >= 0 && node.key == _filterId) { return true; } }); if (filterNode != null) { scrollOnTreeOpen(filterNode); } firstFancyTreeLoad = false; } }, activate: function (event, data) { ShowQuickSearch(false); var drawerNode = data.node; var caseNode = drawerNode.parent; var catalogNode = caseNode.parent; var node = data.node; var url = null; var data = null; var oldRecordId = recordId; if (node.extraClasses.indexOf("bookmark") >= 0) { url = '/Record/GetRecord'; data = { bookmarkId: node.key }; recordId = null; bookmarkId = node.key; drawerId = node.parent.key; caseId = node.parent.parent.key; catalogId = node.parent.parent.parent.key; filterId = null; page = null; batchId = null; phase = null; batchUser = null; if (userAuthenticated) { ShowQuickSearch(true); } else { if ('061khi' == catalogId.trim().toLowerCase()) { ShowQuickSearch(true); } else { ShowQuickSearch(false); } } } else if (node.extraClasses.indexOf("drawer") >= 0) { url = '/Record/GetRecord'; data = { drawerId: node.key, categoryId: catalogNode.key, bookcase: caseNode.key }; recordId = null; bookmarkId = null; drawerId = node.key; caseId = node.parent.key; catalogId = node.parent.parent.key; filterId = null; page = null; batchId = null; phase = null; batchUser = null; if (userAuthenticated) { ShowQuickSearch(true); } else { if ('061khi' == catalogId.trim().toLowerCase()) { ShowQuickSearch(true); } else { ShowQuickSearch(false); } } } else if (node.extraClasses.indexOf("catalog") >= 0) { $.ajax({ cache: false, method: 'GET', url: '/Catalog/CatalogWelcomeScreen' + '?catalogId=' + node.key, success: function (data) { $("#recordContent").html(data); } }); //$("#recordContent").load('/Catalog/CatalogWelcomeScreen' + '?catalogId=' + node.key) recordId = null; bookmarkId = null; drawerId = null; caseId = null; catalogId = node.key; filterId = null; page = null; batchId = null; phase = null; batchUser = null; if (userAuthenticated) { ShowQuickSearch(true); } else { if ('061khi' == catalogId.trim().toLowerCase()) { ShowQuickSearch(true); } else { ShowQuickSearch(false); } } } else if (node.extraClasses.indexOf("case") >= 0) { $.ajax({ cache: false, method: 'GET', url: '/Catalog/CatalogWelcomeScreen' + '?catalogId=' + node.parent.key, success: function (data) { $("#recordContent").html(data); } }); //$("#recordContent").load('/Catalog/CatalogWelcomeScreen' + '?catalogId=' + node.parent.key) recordId = null; bookmarkId = null; drawerId = null; caseId = node.key; catalogId = node.parent.key; filterId = null; page = null; batchId = null; phase = null; batchUser = null; if (userAuthenticated) { ShowQuickSearch(true); } else { if ('061khi' == catalogId.trim().toLowerCase()) { ShowQuickSearch(true); } else { ShowQuickSearch(false); } } } else if (node.extraClasses.indexOf("filtrNode") >= 0) { url = '/Record/GetRecord'; data = { filterId: node.key, recordId: '' }; recordId = null; bookmarkId = null; drawerId = null; caseId = null; filterId = node.key; catalogId = $("#filterCatalogId").val(); page = null; batchId = null; phase = null; batchUser = null; ShowQuickSearch(false); } else if (node.extraClasses.indexOf("batch") >= 0) { url = '/Record/GetRecord'; data = { batchId: node.key.split(';')[0], phase: node.key.split(';')[1], categoryId: node.key.split(';')[2], batchUser: node.parent.key }; recordId = null; bookmarkId = null; drawerId = null; caseId = null; filterId = null; catalogId = node.key.split(';')[2]; page = null; batchId = node.key.split(';')[0]; phase = node.key.split(';')[1]; batchUser = node.parent.key; ShowQuickSearch(false); } if (url && data) { record.loadRecord(url, data); } window.history.pushState(null, $(document).find("title").text(), '/Catalog' + '?sigla=' + sigla + '&catalogId=' + catalogId + '&caseId=' + caseId + '&drawerId=' + drawerId + '&recordId=' + recordId + '&bookmarkId=' + bookmarkId + '&filterId=' + filterId + '&page=' + page + '&batchId=' + batchId + '&phase=' + phase + '&batchUser=' + batchUser); } }); } function ShowQuickSearch(show) { if (show) { $('.quickSearchBar').show(); } else { $('.quickSearchBar').hide(); } } $("#createQuickFilterButton").click(function () { //instance.priznakyTable.ajax.reload(); AjaxDialog({ url: '/Filters/CreateQuickFilter', data: { catalogId: $('#KAT_KEY').val() }, method: 'GET', success: function (data) { } }, { dialogId: "createQuickFilterDialog", title: resources.createQuickFilterDialog, width: 350 }, function () { }); }); function CreateQuickFilterSuccess(data) { if (data.result) { $('#createQuickFilterDialog').dialog('destroy'); $('body').createFlashMessage({ type: "fm-success", message: 'Filtr byl přidán', permanent: false, closeable: true, duration: resources.TimeouFive, position: "fm-fixed", location: "fm-top-right" }); window.location = '/Catalog' + '?filterId=' + data.filterId; } else { $('body').createFlashMessage({ type: "fm-fail", message: 'Filtr se nepodařilo přidat', permanent: false, closeable: true, duration: resources.TimeouFive, position: "fm-fixed", location: "fm-top-right" }); } } </script> </body> </html>