<!DOCTYPE html><!-- TEMPLATE FILE: errorpage.tt -->




<html lang="en" class="no-js">
<head>

<title>Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa catalog &rsaquo;  An error has occurred</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Koha 16.1101000" /> <!-- leave this for stats -->
<meta name="viewport" content="width=device-width, initial-scale=1" />

    <meta property="og:image" content="https://catalogo.biblioteca.fcsh.unl.pt/cgi-bin/koha/opac-image.pl?biblionumber=" />

<link rel="shortcut icon" href="/opac-tmpl/bootstrap/images/favicon.ico" type="image/x-icon" />

    <link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/lib/bootstrap/css/bootstrap.min.css" />



    <link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/lib/jquery/jquery-ui.css" />




    <link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/css/keeps/frontoffice.css" />



<link rel="stylesheet" type="text/css" media="print" href="/opac-tmpl/bootstrap/css/print.css" />




<link rel="shortlink" type="application/xml" title="unAPI" href="https://catalogo.biblioteca.fcsh.unl.pt/cgi-bin/koha/unapi" />

<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
<!--[if lt IE 9]>
    <script src="/opac-tmpl/bootstrap/lib/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    function _(s) { return s } // dummy function for gettext
</script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/modernizr.min.js"></script>
<link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/lib/font-awesome/css/font-awesome.min.css" />




</head>
<body id="error404" class="error">



<a class="link_main" style="display:none;" href="#wrap" title="Saltar para o conteúdo principal">Saltar conteúdo</a>
<div id="wrap">
    <div id="header-region" class="noprint">
        <div class="navbar navbar-inverse navbar-static-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <h1 id="logo">
                        <a class="brand" href="/cgi-bin/koha/opac-main.pl">
                            
                                Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa
                            
                        </a>
                    </h1>
                    
                        <div id="cartDetails" class="cart-message">Your cart is empty.</div>
                    
                    <ul class="nav">
                        
                            <li class="dropdown">
                                <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
                                    <span id="carticon" class="icon-shopping-cart icon-white"></span> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <span class="caret"></span>
                                </a>
                                <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
                                    <li role="presentation">
                                        <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
                                    </li>
                                </ul>
                            </li>
                        
                        
                            <li class="divider-vertical"></li>
                        
                        
                            <li class="dropdown">
                                <a href="#" title="Show lists" class="dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button"><span class="icon-list icon-white"></span> <span class="listslabel">Lists</span> <span class="caret"></span></a>
                                <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
                                
                                    <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li>
                                    
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=249&amp;sortfield=title" tabindex="-1" role="menuitem">Cochin</a></li>
                                        
                                        
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=416&amp;sortfield=itemcallnumber" tabindex="-1" role="menuitem">HM1</a></li>
                                        
                                        
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=403&amp;sortfield=title" tabindex="-1" role="menuitem">Ética aplicada, educação, EDU 1759 A , B </a></li>
                                        
                                        
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=350&amp;sortfield=title" tabindex="-1" role="menuitem">Técnica de escrita</a></li>
                                        
                                        
                                    
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=2" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
                                    
                                
                                <li class="divider" role="presentation"></li>
                                
                                    <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li>
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li>
                                    
                                
                                </ul> <!-- / .dropdown-menu -->
                            </li> <!-- / .dropdown -->
                        
                    </ul> <!-- / .nav -->
                    <div id="listsDetails"></div>
                    
                        <a id="user-menu-trigger" class="pull-right" href="#"><span class="icon-user"></span> <span class="caret"></span></a>
                        <div id="members">
                            <ul class="nav pull-right">

                                

<li class="dropdown">
  <a href="#" title="Switch languages" class="dropdown-toggle" id="langmenu" data-toggle="dropdown" role="button"><span class="icon-flag icon-white"></span> <span class="langlabel">Languages</span> <span class="caret"></span></a>
    <ul aria-labelledby="langmenu" role="menu" class="dropdown-menu">
    
        
            
                
                    
                    <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">English&nbsp;<i class="icon-ok"></i></a></li>
                    
                
            
        
    
        
    
        
            
                
                    
                    <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=pt-PT"  tabindex="-1" role="menuitem" class="listmenulink">Português</a></li>
                    
                
            
        
    
    </ul> <!-- /# .dropdown-menu -->
</li> <!-- / .dropdown -->



                                
                                    
                                        
                                            <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
                                        
                                    
                                    
                                
                                
                                
                                    
                                
                            </ul>
                        </div> <!-- /members -->
                    
                </div> <!-- /container-fluid -->
            </div> <!-- /navbar-inner -->
        </div> <!-- /navbar -->

        
            <div class="container-fluid">
                <div class="row-fluid">
                    <div id="opacheader">
                        <div id="header">
    <div class="logos">
        <div class="logo1">
            <a href="/">
                <img src="/opac-tmpl/bootstrap/images/keeps/header/logo_fcsh_unl.png"
                    alt="Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa">
            </a>
        </div>
    </div>

    <div class="header-search">
        <div class="header-search__container">

            <div class="header-search__title span12">
                <span class="js-text-lang-pt_PT">Pesquisa</span>
                <span class="js-text-lang-en">Search</span>
            </div>
            <div class="row-fluid">
                <div class="header-search__description span6">
                    <span class="js-text-lang-pt_PT"> Encontre no catálogo os livros de todas as bibliotecas da NOVA
                        FCSH,
                        incluindo espólios e acervos especializados das Unidades de investigação
                    </span>
                    <span class="js-text-lang-en"> Find in the catalog books from all NOVA FCSH libraries, including
                        specialized collections and collections from the Research Units
                    </span>
                </div>

                <div class="header-search_image span6">
                    <img src="/opac-tmpl/bootstrap/images/keeps/header/header-search_img.png" alt="Pesquisa - Search">
                </div>
            </div>

        </div>


    </div>
    <!-- Menu -->
    <div class="main-menu">
        <div class="main-menu__div--container">
            <ul class="main-menu__ul">
                <li class="main-menu__li js-main-menu--opac-main">
                    <a href="/">
                        <span class="js-text-lang-pt_PT">Pesquisa simples</span>
                        <span class="js-text-lang-en">Simple search</span>
                    </a>
                </li>
                <li class="main-menu__li js-main-menu--opac-advsearch">
                    <a href="/cgi-bin/koha/opac-search.pl">
                        <span class="js-text-lang-pt_PT">Pesquisa avançada</span>
                        <span class="js-text-lang-en">Advanced search</span>
                    </a>
                </li>
                <li class="main-menu__li js-main-menu--opac-authorities">
                    <a href="/cgi-bin/koha/opac-authorities-home.pl">
                        <span class="js-text-lang-pt_PT">Índices</span>
                        <span class="js-text-lang-en">Indexes search</span>
                    </a>
                </li>
                <!--<li class="main-menu__li js-main-menu--opac-search-tags">
                    <a href="#">
                        <span class="js-text-lang-pt_PT">Bibliografias recomendadas</span>
                        <span class="js-text-lang-en">Recommended Bibliographies</span>
                    </a>
                </li>-->
            </ul>
        </div>
        <div class="loginbar navbar">
            <div class="navbar-inner">
                <nav class="logobar">
                    <ul class="nav pull-right loginbar">          
                        <ul class="js-main-menu__ul--cart-text">
                            <li>
                                <span class="js-text-lang-pt_PT">Carrinho</span>
                                <span class="js-text-lang-en">Cart</span>
                            </li>
                        </ul>
                        <!-- <li class="nav--separator">|</li> -->
                        <li class="opac-user main-menu__li--user-account ">
                            <a href="/cgi-bin/koha/opac-user.pl">
                                <span class="js-text-lang-pt_PT">Área pessoal</span>
                                <span class="js-text-lang-en">Personal area</span>
                            </a>
                        </li>
                        <li class="logged main-menu__li--logout" style="display:none;">
                            <a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
                                <span class="js-text-lang-pt_PT">Sair</span>
                                <span class="js-text-lang-en">Logout</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <div class="main-menu__div-contacts">
            <a target="_blank" href="http://search.ebscohost.com/login.aspx?authtype=ip,guest&profid=eds&custid=ns000558&groupid=main&profile=eds">
                <span>NOVA Discovery</span>
            </a>
            
            <a class="main-menu__a-contacts" href="https://forms.office.com/Pages/ResponsePage.aspx?id=roHVx2kEyUi7CDEsYxsCRveWDXK5jAVAkli-XMwdmDVURU5RTEVQOFM2UkdKR0pLTTROVkQ4VFNTUyQlQCN0PWcu">
                <span class="js-text-lang-pt_PT">Pergunte-nos</span>
                <span class="js-text-lang-en">Ask us</span>
            </a>

            <a class="main-menu__a-contacts main-menu__a-contacts-icon-instagram" href="https://www.instagram.com/bibliotecasnovafcsh/?hl=pt">
                <!-- <i class="fa fa-instagram"></i> -->
                <!-- <img src="/opac-tmpl/bootstrap/images/keeps/header/instagram.png" alt="Instagram"> -->
                <span></span>
            </a>

        </div>
        <!-- change language -->
        <div class="main-menu__div--change-language">
            <ul>
                <li class="js-change-language--pt">
                    <a class="active" href="/cgi-bin/koha/opac-changelanguage.pl?language=pt-PT">PT</a>
                </li>
                <li>|</li>
                <li class="js-change-language--en">
                    <a href="/cgi-bin/koha/opac-changelanguage.pl?language=en">EN</a>
                </li>
            </ul>
        </div>
        <!-- END change language -->
    </div>
    <!-- Mobile button -->
    <div class="mobile-button js-mobile-button">
        <div class="mobile-button__line"></div>
    </div>
    <!-- END Mobile button -->
    <!-- END Menu -->
</div>
                    </div>
                </div>
            </div>
        
    </div> <!-- / header-region -->

    <div class="container-fluid">
        <div class="row-fluid">
            <div id="opac-main-search">
    <!--             <div class="span2">
        
            <h1 id="libraryname">
        
            <a href="/cgi-bin/koha/opac-main.pl">Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa</a></h1>
    </div> /.span2 -->
            <div class="span12">
                
                    
                        
                            <div class="mastheadsearch librarypulldown">
                        
                        
                            <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
                                <label for="masthead_search"> Search
                                    
                                </label>

                                <select name="idx" id="masthead_search">
                                
                                    <option value="">General</option>
                                
                                
                                    <option value="ti">Title</option>
                                
                                
                                    <option value="au">Author</option>
                                
                                
                                    <option value="su">Subject</option>
                                
                                
                                    <option value="nb">ISBN</option>
                                
                                
                                    <option value="se">Series</option>
                                
                                
                                    
                                        <option value="callnum">Call number</option>
                                    
                                
                                </select>

                                
                                
                                    <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
                                

                                

                                
                                    <div class="input-append">
                                        <label for="select_library" class="hidden">Branches limit</label>
                                        <select name="branch_group_limit" id="select_library">
                                            <option value="">All libraries</option>
                                            
                                                
                                                    
                                                        <option value="branch:BMSC">Biblioteca Mário Sottomayor Cardia</option>
                                                    
                                                
                                                    
                                                        <option value="branch:BVMG">Biblioteca Vitorino Magalhães Godinho</option>
                                                    
                                                
                                            
                                        </select>
                                        <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
                                    </div>
                                

                            </form>
                        
                        </div> <!-- / .mastheadsearch -->
                    

                    <div class="row-fluid">
                            <div id="moresearches">
                                <ul>
                                    <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
                                    
                                    
                                    <li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>
                                    
                                    <li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>
                                    
                                    <li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>
                                    
                                        
                                    
                                </ul>
                            </div> <!-- /#moresearches -->
                    </div> <!-- /.row-fluid -->

                
            </div> <!-- /.span10 -->
            </div> <!-- /.opac-main-search -->
        </div> <!-- / .row-fluid -->
    </div> <!-- /.container-fluid -->

    <!-- Login form hidden by default, used for modal window -->
    <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
            <h2 id="modalLoginLabel">Log in to your account</h2>
        </div>
        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
            <div class="modal-body">
                    
                    <input type="hidden" name="koha_login_context" value="opac" />
                    <fieldset class="brief">
                        <legend style="display: none">Login</legend>
                        <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
                        <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
                    
                    
                        <div id="nologininstructions-modal">
                            



                        </div>
                    
                        
                    </fieldset>
            </div>
            <div class="modal-footer">
                <input type="submit" class="btn btn-primary" value="Log in" />
                <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
            </div>
        </form> <!-- /#auth -->
    </div>  <!-- /#modalAuth  -->


    <div class="main">
        <ul class="breadcrumb">
            <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
            <li><a href="#">Error 404</a></li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                
                    <div class="span12">
                
                    <div id="errormsg404">
                        <h3>Sorry, the requested page is not available</h3>
                        <h4>Error 404</h4>
                        <h3>This message can have the following reason(s):</h3>
                        <ul>
                            

                            

                            

                            

                            
                                <li>You made use of an external link to a catalog item that is no longer available.</li>
                                <li>You followed an outdated link e.g. from a search engine or a bookmark.</li>
                                <li>You tried to access a page that needs authentication.</li>
                                <li>An internal link in our catalog home page is broken and the page does not exist.</li>
                            
                            
                        </ul>
                        <h3>What's next?</h3>
                        <ul>
                            
                            <li>You can use the menu and links at the top of the page</li>
                            <li>You can search our catalog using the search form at the top of this page.</li>
                            <li><a href="/cgi-bin/koha/opac-main.pl">Return to the catalog home page.</a></li>
                        </ul>
                        <h3>Report issues and broken links</h3>
                        <ul>
                            <li>To report this error, please contact the Koha Administrator.
                                    <a href="mailto:bibliotecas@fcsh.unl.pt">Send email</a>.</li>
                        </ul>
                    </div> <!-- / #errormsg404 -->
                </div> <!-- / .span10/12 -->
            </div> <!-- / .row-fluid -->
        </div> <!-- / .container-fluid -->
    </div> <!-- / .main -->


    
    
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div id="opaccredits" class="noprint">
                        <!-- Footer -->
<div id="footer_pt-PT">
    <div class="firstfooter">
        <div class="span12 row-fluid firstfooter__div--container">
            <!-- Services -->
            <div class="span4">
                <h3 class="firstfooter__title">
                    <span class="js-text-lang-pt_PT"> Serviços</span>
                    <span class="js-text-lang-en">Services</span>
                </h3>
                <div class="firstfooter__description">
                    <!-- pt -->
                    <ul class="firstfooter__ul js-text-lang-pt_PT">
                        <li>
                            <a href="http://search.ebscohost.com/login.aspx?authtype=ip,guest&profid=eds&custid=ns000558&groupid=main&profile=eds" target="_blank">NOVA Discovery</a>
                        </li>
                        <li>
                            <a href="https://run.unl.pt/" target="_blank">RUN – Repositório NOVA</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/formacao-biblioteca/" target="_blank">Formações da Biblioteca</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/bmsc/espolios-e-doacoes/" target="_blank">Espólios e Doações</a>
                        </li>
                    </ul>
                    <!-- en -->
                    <ul class="firstfooter__ul js-text-lang-en">
                        <li>
                            <a href="http://search.ebscohost.com/login.aspx?authtype=ip,guest&profid=eds&custid=ns000558&groupid=main&profile=eds" target="_blank">NOVA Discovery</a>
                        </li>
                        <li>
                            <a href="https://run.unl.pt/" target="_blank">RUN – Repositório NOVA</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/formacao-biblioteca/" target="_blank">Formações da Biblioteca</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/bmsc/espolios-e-doacoes/" target="_blank">Espólios e Doações</a>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- END Services -->
            <!-- Biblioteca Mário Sottomayor -->
            <div class="span4">
                <h3 class="firstfooter__title">
                    <span class="js-text-lang-pt_PT">Biblioteca Mário Sottomayor Cardia</span>
                    <span class="js-text-lang-en">Mário Sottomayor Cardia Library</span>
                </h3>
                <div class="firstfooter__description">
                    <!-- pt -->
                    <ul class="firstfooter__ul js-text-lang-pt_PT">
                        <li>Avenida de Berna, 26-C, Torre B, 1.º Piso</li>
                        <li>
                            <a href="mailto:bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>
                    <!-- en -->
                    <ul class="firstfooter__ul js-text-lang-en">
                        <li>Avenida de Berna, 26-C, Torre B, 1.º Piso</li>
                        <li>
                            <a href="mailto:bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>

                </div>
            </div>
            <!-- END Biblioteca Mário Sottomayor -->
            <!-- Biblioteca Vitorino Magalhães Godinho -->
            <div class="span4">
                <h3 class="firstfooter__title">
                    <span class="js-text-lang-pt_PT">Biblioteca Vitorino Magalhães Godinho</span>
                    <span class="js-text-lang-en">Vitorino Magalhães Godinho Library</span>
                </h3>
                <div class="firstfooter__description">
                    <!-- pt -->
                    <ul class="firstfooter__ul js-text-lang-pt_PT">
                        <li>Campus de Campolide, Colégio Almada Negreiros, 1.º Piso</li>
                        <li>
                            <a href="bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>
                    <!-- en -->
                    <ul class="firstfooter__ul js-text-lang-en">
                        <li>Campus de Campolide, Colégio Almada Negreiros, 1.º Piso</li>
                        <li>
                            <a href="mailto:bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>
                    <a href="https://bibliotecacomum.pt/catalogo/" target="_blank">
                        <img class="firstfooter__bc" src="/opac-tmpl/bootstrap/images/keeps/footer/SeloBC_B_P2.png" alt="Biblioteca Comum">
                    </a>
                </div>
            </div>
            <!-- END Biblioteca Vitorino Magalhães Godinho -->
        </div>
    </div>
</div>
<!-- END Footer -->

                    </div>
                </div>
            </div>
        </div>
    

    

</div> <!-- / #wrap in masthead.inc -->




<!-- JavaScript includes -->
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/jquery/jquery-ui.js"></script>
<script type="text/javascript">
// Resolve name collision between jQuery UI and Twitter Bootstrap
$.widget.bridge('uitooltip', $.ui.tooltip);
</script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/js/global.js"></script>
<script type="text/javascript">
    Modernizr.load([
        // Test need for polyfill
        {
            test: window.matchMedia,
            nope: "/opac-tmpl/bootstrap/lib/media.match.min.js"
        },
        // and then load enquire
        "/opac-tmpl/bootstrap/lib/enquire.min.js",
        "/opac-tmpl/bootstrap/js/script.js"
    ]);

    // Fix for datepicker in a modal
    $.fn.modal.Constructor.prototype.enforceFocus = function () {};
</script>


<script type="text/javascript">
    //<![CDATA[
    var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again")
    var MSG_DELETE_SEARCH_HISTORY = _("Are you sure you want to delete your search history?");
    var MSG_NO_SUGGESTION_SELECTED = _("No suggestion was selected");
    
    
    

    $(".print-large").on("click",function(){
        window.print();
        return false;
    });
    $("#ulactioncontainer > ul > li > a.addtoshelf").on("click",function(){
        Dopop('opac-addbybiblionumber.pl?biblionumber=');
        return false;
    });
    $(".addrecord").on("click",function(){
        addRecord('');
        return false;
    });
    $(".cartRemove").on("click",function(){
        delSingleRecord('');
        return false;
    });
    //]]>
</script>


    <script type="text/javascript">var readCookie;</script>




    <script type="text/javascript" src="/opac-tmpl/bootstrap/js/google-jackets.js"></script>
    <script type="text/javascript">
        //<![CDATA[
        var NO_GOOGLE_JACKET = _("No cover image available");
        //]]>
    </script>






    <script type="text/javascript" src="/opac-tmpl/bootstrap/js/localcovers.js"></script>
    <script type="text/javascript">
    //<![CDATA[
    var NO_LOCAL_JACKET = _("No cover image available");
    //]]>
    </script>






<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.cookie.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    if($('#searchsubmit').length) {
        $(document).on("click", '#searchsubmit', function(e) {
            jQuery.removeCookie("form_serialized", { path: '/'});
            jQuery.removeCookie("form_serialized_itype", { path: '/'});
            jQuery.removeCookie("form_serialized_limits", { path: '/'});
            jQuery.removeCookie("num_paragraph", { path: '/'});
            jQuery.removeCookie("search_path_code", { path: '/'});
        });
    }
});
</script>



    <script type="text/javascript">
        //<![CDATA[
        $.getScript("/opac-tmpl/bootstrap/js/keeps/keeps.js").done(function (script, textStatus) {
    RedesignOpacAuth();
});

// analytics
$(document).ready(function () {
    (function () {
        var s = document.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://www.googletagmanager.com/gtag/js?id=' + 'G-CZ6Z6BTSLK';
        var x = document.getElementsByTagName('script')[0];
        x.parentNode.insertBefore(s, x);
    })();

    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-CZ6Z6BTSLK');
})



// Global variables
// language
var lang = $('html').attr('lang');
if (lang == null) {
    lang = $('html').attr('xml:lang');
}
var pathname = window.location.pathname;
// var hostname = window.location.hostname;

//END Global variables


$(document).ready(function () {

    RedesignInAllPages("ready");
    RedesignOpacMain("ready");
    RedesignISBDDetails("ready");
    redesignTopMenu("ready");

    // patch GDPR 
    if (pathname == "/cgi-bin/koha/opac-memberentry.pl" || pathname == "/cgi-bin/koha/opac-passwd.pl" || pathname == "/cgi-bin/koha/opac-password-recovery.pl") {
        //$.getScript("/opac-tmpl/bootstrap/js/keeps/opac-passwordgdpr.js");
    }

});


$(window).load(function () {
    RedesignInAllPages("load");
    RedesignDetails("load");
    redesignTopMenu("load");
    // OPAC Search
    if (pathname.match("/opac-search.pl") && $('#booleansearch').length > 0) {
        RemoveAdvancedSearchOpts();
        
        if (lang == "en") {
           $('select[name="idx"] option[value="se,wrdl"]').text('Collection');        
        } else {
           $('select[name="idx"] option[value="se,wrdl"]').text('Coleção');
        }
    }
    
});



//----------------------------------------PAGES

//All pages
function RedesignInAllPages(LoadOrReady) {

    switch (LoadOrReady) {
        case "ready":            
            redesignSearchBar();
            break;
        case "load":
            setLanguageOnHtml();
            accessibilityFix();
            break;
        default:
            break;
    }
}

// main page / and opac-main.pl
function RedesignOpacMain(LoadOrReady) {
    if (pathname.match("/opac-main.pl") || pathname == "/") {
        switch (LoadOrReady) {
            case "ready":
                redesignNews();
                break;
            case "load":

                break;
            default:
                break;
        }
    }
}

//details page
function RedesignDetails(LoadOrReady) {
    if (pathname.match("/opac-detail.pl") && $("body#opac-detail").size()) {
        switch (LoadOrReady) {
            case "ready":    
                break;
                case "load":
                    //reorder items
                    $("#item_callnumber").click();
                    $("#item_enumchron").click();
                    //opacTranslations();
                    $('#opac-detail #action').prepend('<li><a target="_blank" href="https://forms.office.com/Pages/ResponsePage.aspx?id=roHVx2kEyUi7CDEsYxsCRveWDXK5jAVAkli-XMwdmDVUN1hCUFVNQThPTFhHNU1TWU9PNEE4TlNOWCQlQCN0PWcu"><span class="js-text-lang-pt_PT">Pedido de Transferência entre Bibliotecas NOVA FCSH</span><span class="js-text-lang-en">Request for Transfer between Libraries NOVA FCSH</span></a></li>');

                break;
            default:
                break;
        }
    }
}

//opac-ISBDdetail.pl page
function RedesignISBDDetails(LoadOrReady) {
    if (pathname.match("/opac-ISBDdetail.pl")) {
        switch (LoadOrReady) {
            case "ready":

                //reorder 210
                span210a = $("span.210a").text().split("xxa");
                span210a.pop();
                span210a.shift();
                span210c = $("span.210c").text().split("yyc");
                span210c.pop();
                span210c.shift();
                span210c = span210c.map(function (x) {
                    return ":" + x
                });
                spanSmaller = span210c.length > span210a.length ? span210a : span210c;
                spanBigger = span210c.length > span210a.length ? span210c : span210a;
                spanfinal = [];
                for (let index = 0; index < spanSmaller.length; index++) {
                    spanfinal.push(span210a[index] + span210c[index])
                }
                spanfinal.push(spanBigger.slice(spanSmaller.length));
                $("span.210a, span.210c ").remove();
                $("span.final210a_210c").text(spanfinal.join(""));

                break;
            case "load":
                break;
            default:
                break;
        }
    }
}

function RedesignOpacAuth() {
    if (pathname.match("/opac-user.pl") && $("#opac-auth").length) {
        // HIDE LABELS
        $("label[for='userid']").hide();
        $("label[for='password']").text("");

        if (lang == "en") {
            // CHANGE H2
            $("#opac-auth h2").html($("#opac-auth h2").html() + " <a href='https://www.fcsh.unl.pt/faculdade/informatica/autenticacao-fcsh-id/'>(FCSH ID Credentials)</a>")
            // CHANGE ERROR MESSAGE
            $(".alert-info p").html("Unable to connect to using your FCSH ID credentials.<br/> Please contact <a href=\"mailto:bibliotecas@fcsh.unl.pt\">bibliotecas@fcsh.unl.pt</a> and provide your FCSH ID username.");

        } else if (lang == "pt-PT") {
            // CHANGE H2
            $("#opac-auth h2").html($("#opac-auth h2").html() + " <a href='https://www.fcsh.unl.pt/faculdade/informatica/autenticacao-fcsh-id/'>(Credenciais FCSH ID)</a>")

            // CHANGE PLACEHOLDER
            $('#password').attr('placeholder', 'Palavra-passe');

            // CHANGE ERROR MESSAGE
            $(".alert-info p").html("Não foi possível estabelecer ligação às suas credenciais FCSH ID.<br/> Por favor contacte <a href=\"mailto:bibliotecas@fcsh.unl.pt\">bibliotecas@fcsh.unl.pt</a> e indique o seu nome de utilizador do FCSH ID.");
        }
    }
}

// ----------------------------------------------FUNCTIONS


function redesignTopMenu(LoadOrReady) {

    switch (LoadOrReady) {
        case "ready":
            //--- NAVBAR ---//

            if (pathname == "/" || pathname == "/cgi-bin/koha/opac-main.pl" || $("body#results").size()) {
                $("li.js-main-menu--opac-main").addClass("active");
            } else if ($("body#advsearch").size()) {
                $("li.js-main-menu--opac-advsearch").addClass("active");
            } else if (pathname == "/cgi-bin/koha/opac-authorities-home.pl") {
                $("li.js-main-menu--opac-authorities").addClass("active");
            } else if (pathname == "/cgi-bin/koha/opac-tags.pl") {
                $("li.js-main-menu--opac-search-tags").addClass("active");
            } else if (pathname == "/cgi-bin/koha/opac-user.pl") {
                //$("#header .loginbar .opac-user").addClass("active");
            }

            // mobile menu
            $(".js-mobile-button").click(function () {

                $(".main-menu").toggleClass("js-main-menu--mobile_active ");
                $(".main-menu__ul").toggleClass("js-main-menu__ul--mobile_active");
                $(".js-mobile-button").toggleClass("js-mobile-button--active");

            });
            $('#cartmenulink').parent().prependTo('.loginbar.pull-right');
            $('#cartDetails').insertBefore('.loginbar.pull-right');
            $('#cartmenulink .caret').remove();
            $('.js-main-menu__ul--cart-text').appendTo('#cartmenulink');

            break;
        case "load":

            $('.logged[style="display:none;"]').addClass('k-not-logged');
            
            break;
        default:
            break;
    }


   

}

function redesignSearchBar() {

    var userAgent = window.navigator.userAgent;

    //--- SEARCH ---//
    // $("#opac-main-search .mastheadsearch").before('<div class="opac-main-search__title"> <span class="js-text-lang-pt_PT">Catálogo geral</span> <span class="js-text-lang-en">General Catalog</span> </div> <div class="opac-main-search__description"> <span class="js-text-lang-pt_PT"> A Biblioteca da Sociedade Martins Sarmento dispõe de perto de cem mil volumes, destacando-se o fundo de livro antigo, de dimensão e qualidade excepcionais, e o Fundo Local, que integra praticamente tudo o que se tem publicado em Guimarães, sobre Guimarães ou de autores vimaranenses, para além de importantes fundos especializados em áreas como a história, a arqueologia, a etnografia, a medicina, o direito, a religião. Dispõe ainda de uma vastíssima coleção de revistas científicas, nacionais e estrangeiras. </span> <span class="js-text-lang-en"> A Biblioteca da Sociedade Martins Sarmento dispõe de perto de cem mil volumes, destacando-se o fundo de livro antigo, de dimensão e qualidade excepcionais, e o Fundo Local, que integra praticamente tudo o que se tem publicado em Guimarães, sobre Guimarães ou de autores vimaranenses, para além de importantes fundos especializados em áreas como a história, a arqueologia, a etnografia, a medicina, o direito, a religião. Dispõe ainda de uma vastíssima coleção de revistas científicas, nacionais e estrangeiras.</span> </div>');

    $('#searchsubmit').remove();

    if (lang == "en") {
        //If IE11
        if (userAgent.match(/Trident.*rv\:11\./)) {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Search<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.png"/></button>');

        } else {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Search<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.svg"/></button>');
        }

    } else {
        //If IE11
        if (userAgent.match(/Trident.*rv\:11\./)) {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Pesquisar<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.png"/></button>');
        } else {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Pesquisar<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.svg"/></button>');
        }
    }


    $("#select_library").append($('#select_library optgroup[label="Bibliotecas"], #select_library optgroup[label="Libraries"]').html());
    $('#select_library optgroup[label="Bibliotecas"], #select_library optgroup[label="Libraries"]').remove();
    $('#select_library optgroup[label="Grupos"], #select_library optgroup[label="Groups"]').remove();


    //add extra class to the container-fluid of the main search
    $($('#opac-main-search').closest(".container-fluid")).addClass("container-fluid_div--fcsh-opac-main-search");

    // opac-main search input size
    setInputSearchSize();
    $(window).resize(function () {
        setInputSearchSize()
    });
    //END opac-main search input size




}

function setInputSearchSize() {
    var inputSize;
    if ($("#opac-main-search").width() > 931) {

        inputSize = $("#opac-main-search").width() - 551;
    } else {
        inputSize = $("#opac-main-search").width() - 418;
    }
    $("#translControl1").css({
        'width': inputSize
    });
}


function redesignNews() {
    //move news
    if (pathname == "/" || pathname == "/cgi-bin/koha/opac-main.pl") {

        $('#news').detach().appendTo('#library-news');
        var newsitems = $('.newsitem');
        for (var i = 0; i < newsitems.length; i++) {
            var newsItem = $(".newsitem")[i];
            $(newsItem).find("h4").after($(newsItem).find("div.newsfooter"))
        }
    }

    // hide news block title if no news
    if ($("#news").length) {
        $("#library-news .main__blocks-title").show();
    } else {
        $("#library-news .main__blocks-title").hide();
    }
}

function setLanguageOnHtml() {
    if (lang == "en") {

        $("#menubar_en").show();
        $("#menubar_pt-PT").hide();

        $('#modalLoginLabel').replaceWith('<h2 id="modalLoginLabel">Log in to your account</h2>');

        // header-contacts change language
        $("li.js-change-language--pt>a").removeClass("active");
        $("li.js-change-language--en>a").addClass("active");

        $('#opac-main-search #translControl1').attr('placeholder', 'Search the library catalog');

    } else {
        $('#opac-main-search #translControl1').attr('placeholder', 'Pesquise no catálogo das bibliotecas');
    }


    $("#opac-main-search input#translControl1").addClass('showPlaceholder');


}

function accessibilityFix() {}

function RemoveAdvancedSearchOpts() {
     $('select[name="idx"] option[value="su,phr"]').remove();
     $('select[name="idx"] option[value="ti,phr"]').remove();
     $('select[name="idx"] option[value="location"]').remove();
     $('select[name="idx"] option[value="au,phr"]').remove();
     $('select[name="idx"] option[value="cpn,wrdl"]').remove();
     $('select[name="idx"] option[value="cfn,phr"]').remove();
     $('select[name="idx"] option[value="pn,wrdl"]').remove();
     $('select[name="idx"] option[value="pn,phr"]').remove();
     $('select[name="idx"] option[value="nt"]').remove();
     $('select[name="idx"] option[value="pl,wrdl"]').remove();
     $('select[name="idx"] option[value="cdu"]').remove();
     $('select[name="idx"] option[value="cfn,wrdl"]').remove();
}


function opacTranslations() {
    // #75883 opac items
    if (lang == "en") {
        $("td.collection:contains('Descrição')").text("Description");
        $("td.collection:contains('Depósitos')").text("Deposits");
        $("td.collection:contains('Gabinete CEG')").text("CEG Office");
        $("td.collection:contains('Gabinete CEH')").text("CEH Office");
        $("td.collection:contains('Gabinete CESEM')").text("CESEM Office");
        $("td.collection:contains('Gabinete CETAPS')").text("CETAPS Office");
        $("td.collection:contains('Gabinete CHAM')").text("CHAM Office");
        $("td.collection:contains('Gabinete CICSNOVA')").text("CICSNOVA Office");
        $("td.collection:contains('Gabinete CLUNL')").text("CLUNL Office");
        $("td.collection:contains('Gabinete CRIA')").text("CRIA Office");
        $("td.collection:contains('Gabinete ICNOVA')").text("ICNOVA Office");
        $("td.collection:contains('Gabinete IELT')").text("IELT Office");
        $("td.collection:contains('Gabinete IEM')").text("IEM Office");
        $("td.collection:contains('Gabinete IFILNOVA')").text("IFILNOVA Office");
        $("td.collection:contains('Gabinete IHA')").text("IHA Office");
        $("td.collection:contains('Gabinete IHC')").text("IHC Office");
        $("td.collection:contains('Gabinete INET-MD')").text("INET-MD Office");
        $("td.collection:contains('Obras de Referência')").text("Reference Works");
        $("td.collection:contains('Reservados')").text("Reserved");
        $("td.collection:contains('Sala de Leitura')").text("Reading Room");

        $("td.status:has(span.item-status.notforloan:contains('Consulta local'))")
            .find("span.item-status.notforloan")
            .text("Local Consultation");

        $("td.status:has(span.item-status.notforloan:contains('Descrição'))")
            .find("span.item-status.notforloan")
            .text("Description");

        $("td.status:has(span.item-status.notforloan:contains('Consulta local ou empréstimo interbiblioteca'))")
            .find("span.item-status.notforloan")
            .text("Local Consultation or Interlibrary Loan");

        $("td.status:has(span.item-status.notforloan:contains('Empréstimo interbiblioteca'))")
            .find("span.item-status.notforloan")
            .text("Interlibrary Loan");

        $("td.status:has(span.item-status.notforloan:contains('Indisponível para empréstimo'))")
            .find("span.item-status.notforloan")
            .text("Unavailable for Loan");
    }
}
        //]]>
    </script>


</body>
</html>


HTTP/1.1 200 OK
Date: Tue, 02 Jul 2024 21:48:20 GMT
Content-Length: 53384
Content-Type: text/html; charset=utf-8
Set-Cookie: CGISESSID=63fd1dae2adf337d1032bb51da87c125; path=/; HttpOnly
X-Frame-Options: SAMEORIGIN
Connection: keep-alive


<!DOCTYPE html>
<!-- TEMPLATE FILE: opac-auth.tt -->




<html lang="en" class="no-js">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Koha " /> <!-- leave this for stats -->
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="shortcut icon" href="/opac-tmpl/bootstrap/images/favicon.ico" type="image/x-icon" />

    <link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/lib/bootstrap/css/bootstrap.min.css" />



    <link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/lib/jquery/jquery-ui.css" />




    <link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/css/keeps/frontoffice.css" />



<link rel="stylesheet" type="text/css" media="print" href="/opac-tmpl/bootstrap/css/print.css" />




<link rel="shortlink" type="application/xml" title="unAPI" href="/cgi-bin/koha/unapi" />

<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
<!--[if lt IE 9]>
    <script src="/opac-tmpl/bootstrap/lib/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    function _(s) { return s } // dummy function for gettext
</script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/modernizr.min.js"></script>
<link rel="stylesheet" type="text/css" href="/opac-tmpl/bootstrap/lib/font-awesome/css/font-awesome.min.css" />



<title>Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa catalog &rsaquo;

    Log in to your account
</title>

</head>


    


    




    

<body ID="opac-login-page" class="branch-default scrollto" >




<a class="link_main" style="display:none;" href="#wrap" title="Saltar para o conteúdo principal">Saltar conteúdo</a>
<div id="wrap">
    <div id="header-region" class="noprint">
        <div class="navbar navbar-inverse navbar-static-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <h1 id="logo">
                        <a class="brand" href="/cgi-bin/koha/opac-main.pl">
                            
                                Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa
                            
                        </a>
                    </h1>
                    
                        <div id="cartDetails" class="cart-message">Your cart is empty.</div>
                    
                    <ul class="nav">
                        
                            <li class="dropdown">
                                <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
                                    <span id="carticon" class="icon-shopping-cart icon-white"></span> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <span class="caret"></span>
                                </a>
                                <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
                                    <li role="presentation">
                                        <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
                                    </li>
                                </ul>
                            </li>
                        
                        
                            <li class="divider-vertical"></li>
                        
                        
                            <li class="dropdown">
                                <a href="#" title="Show lists" class="dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button"><span class="icon-list icon-white"></span> <span class="listslabel">Lists</span> <span class="caret"></span></a>
                                <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
                                
                                    <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li>
                                    
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=249&amp;sortfield=title" tabindex="-1" role="menuitem">Cochin</a></li>
                                        
                                        
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=416&amp;sortfield=itemcallnumber" tabindex="-1" role="menuitem">HM1</a></li>
                                        
                                        
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=403&amp;sortfield=title" tabindex="-1" role="menuitem">Ética aplicada, educação, EDU 1759 A , B </a></li>
                                        
                                        
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=350&amp;sortfield=title" tabindex="-1" role="menuitem">Técnica de escrita</a></li>
                                        
                                        
                                    
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=2" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
                                    
                                
                                <li class="divider" role="presentation"></li>
                                
                                    <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li>
                                    
                                        <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li>
                                    
                                
                                </ul> <!-- / .dropdown-menu -->
                            </li> <!-- / .dropdown -->
                        
                    </ul> <!-- / .nav -->
                    <div id="listsDetails"></div>
                    
                        <a id="user-menu-trigger" class="pull-right" href="#"><span class="icon-user"></span> <span class="caret"></span></a>
                        <div id="members">
                            <ul class="nav pull-right">

                                

<li class="dropdown">
  <a href="#" title="Switch languages" class="dropdown-toggle" id="langmenu" data-toggle="dropdown" role="button"><span class="icon-flag icon-white"></span> <span class="langlabel">Languages</span> <span class="caret"></span></a>
    <ul aria-labelledby="langmenu" role="menu" class="dropdown-menu">
    
        
            
                
                    
                    <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">English&nbsp;<i class="icon-ok"></i></a></li>
                    
                
            
        
    
        
    
        
            
                
                    
                    <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=pt-PT"  tabindex="-1" role="menuitem" class="listmenulink">Português</a></li>
                    
                
            
        
    
    </ul> <!-- /# .dropdown-menu -->
</li> <!-- / .dropdown -->



                                
                                    
                                        
                                            <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
                                        
                                    
                                    
                                
                                
                                
                                    
                                
                            </ul>
                        </div> <!-- /members -->
                    
                </div> <!-- /container-fluid -->
            </div> <!-- /navbar-inner -->
        </div> <!-- /navbar -->

        
            <div class="container-fluid">
                <div class="row-fluid">
                    <div id="opacheader">
                        <div id="header">
    <div class="logos">
        <div class="logo1">
            <a href="/">
                <img src="/opac-tmpl/bootstrap/images/keeps/header/logo_fcsh_unl.png"
                    alt="Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa">
            </a>
        </div>
    </div>

    <div class="header-search">
        <div class="header-search__container">

            <div class="header-search__title span12">
                <span class="js-text-lang-pt_PT">Pesquisa</span>
                <span class="js-text-lang-en">Search</span>
            </div>
            <div class="row-fluid">
                <div class="header-search__description span6">
                    <span class="js-text-lang-pt_PT"> Encontre no catálogo os livros de todas as bibliotecas da NOVA
                        FCSH,
                        incluindo espólios e acervos especializados das Unidades de investigação
                    </span>
                    <span class="js-text-lang-en"> Find in the catalog books from all NOVA FCSH libraries, including
                        specialized collections and collections from the Research Units
                    </span>
                </div>

                <div class="header-search_image span6">
                    <img src="/opac-tmpl/bootstrap/images/keeps/header/header-search_img.png" alt="Pesquisa - Search">
                </div>
            </div>

        </div>


    </div>
    <!-- Menu -->
    <div class="main-menu">
        <div class="main-menu__div--container">
            <ul class="main-menu__ul">
                <li class="main-menu__li js-main-menu--opac-main">
                    <a href="/">
                        <span class="js-text-lang-pt_PT">Pesquisa simples</span>
                        <span class="js-text-lang-en">Simple search</span>
                    </a>
                </li>
                <li class="main-menu__li js-main-menu--opac-advsearch">
                    <a href="/cgi-bin/koha/opac-search.pl">
                        <span class="js-text-lang-pt_PT">Pesquisa avançada</span>
                        <span class="js-text-lang-en">Advanced search</span>
                    </a>
                </li>
                <li class="main-menu__li js-main-menu--opac-authorities">
                    <a href="/cgi-bin/koha/opac-authorities-home.pl">
                        <span class="js-text-lang-pt_PT">Índices</span>
                        <span class="js-text-lang-en">Indexes search</span>
                    </a>
                </li>
                <!--<li class="main-menu__li js-main-menu--opac-search-tags">
                    <a href="#">
                        <span class="js-text-lang-pt_PT">Bibliografias recomendadas</span>
                        <span class="js-text-lang-en">Recommended Bibliographies</span>
                    </a>
                </li>-->
            </ul>
        </div>
        <div class="loginbar navbar">
            <div class="navbar-inner">
                <nav class="logobar">
                    <ul class="nav pull-right loginbar">          
                        <ul class="js-main-menu__ul--cart-text">
                            <li>
                                <span class="js-text-lang-pt_PT">Carrinho</span>
                                <span class="js-text-lang-en">Cart</span>
                            </li>
                        </ul>
                        <!-- <li class="nav--separator">|</li> -->
                        <li class="opac-user main-menu__li--user-account ">
                            <a href="/cgi-bin/koha/opac-user.pl">
                                <span class="js-text-lang-pt_PT">Área pessoal</span>
                                <span class="js-text-lang-en">Personal area</span>
                            </a>
                        </li>
                        <li class="logged main-menu__li--logout" style="display:none;">
                            <a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
                                <span class="js-text-lang-pt_PT">Sair</span>
                                <span class="js-text-lang-en">Logout</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <div class="main-menu__div-contacts">
            <a target="_blank" href="http://search.ebscohost.com/login.aspx?authtype=ip,guest&profid=eds&custid=ns000558&groupid=main&profile=eds">
                <span>NOVA Discovery</span>
            </a>
            
            <a class="main-menu__a-contacts" href="https://forms.office.com/Pages/ResponsePage.aspx?id=roHVx2kEyUi7CDEsYxsCRveWDXK5jAVAkli-XMwdmDVURU5RTEVQOFM2UkdKR0pLTTROVkQ4VFNTUyQlQCN0PWcu">
                <span class="js-text-lang-pt_PT">Pergunte-nos</span>
                <span class="js-text-lang-en">Ask us</span>
            </a>

            <a class="main-menu__a-contacts main-menu__a-contacts-icon-instagram" href="https://www.instagram.com/bibliotecasnovafcsh/?hl=pt">
                <!-- <i class="fa fa-instagram"></i> -->
                <!-- <img src="/opac-tmpl/bootstrap/images/keeps/header/instagram.png" alt="Instagram"> -->
                <span></span>
            </a>

        </div>
        <!-- change language -->
        <div class="main-menu__div--change-language">
            <ul>
                <li class="js-change-language--pt">
                    <a class="active" href="/cgi-bin/koha/opac-changelanguage.pl?language=pt-PT">PT</a>
                </li>
                <li>|</li>
                <li class="js-change-language--en">
                    <a href="/cgi-bin/koha/opac-changelanguage.pl?language=en">EN</a>
                </li>
            </ul>
        </div>
        <!-- END change language -->
    </div>
    <!-- Mobile button -->
    <div class="mobile-button js-mobile-button">
        <div class="mobile-button__line"></div>
    </div>
    <!-- END Mobile button -->
    <!-- END Menu -->
</div>
                    </div>
                </div>
            </div>
        
    </div> <!-- / header-region -->

    <div class="container-fluid">
        <div class="row-fluid">
            <div id="opac-main-search">
    <!--             <div class="span2">
        
            <h1 id="libraryname">
        
            <a href="/cgi-bin/koha/opac-main.pl">Biblioteca da Faculdade de Ciências Sociais e Humanas da Universidade NOVA de Lisboa</a></h1>
    </div> /.span2 -->
            <div class="span12">
                
                    
                        
                            <div class="mastheadsearch librarypulldown">
                        
                        
                            <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
                                <label for="masthead_search"> Search
                                    
                                </label>

                                <select name="idx" id="masthead_search">
                                
                                    <option value="">General</option>
                                
                                
                                    <option value="ti">Title</option>
                                
                                
                                    <option value="au">Author</option>
                                
                                
                                    <option value="su">Subject</option>
                                
                                
                                    <option value="nb">ISBN</option>
                                
                                
                                    <option value="se">Series</option>
                                
                                
                                    
                                        <option value="callnum">Call number</option>
                                    
                                
                                </select>

                                
                                
                                    <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
                                

                                

                                
                                    <div class="input-append">
                                        <label for="select_library" class="hidden">Branches limit</label>
                                        <select name="branch_group_limit" id="select_library">
                                            <option value="">All libraries</option>
                                            
                                                
                                                    
                                                        <option value="branch:BMSC">Biblioteca Mário Sottomayor Cardia</option>
                                                    
                                                
                                                    
                                                        <option value="branch:BVMG">Biblioteca Vitorino Magalhães Godinho</option>
                                                    
                                                
                                            
                                        </select>
                                        <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
                                    </div>
                                

                            </form>
                        
                        </div> <!-- / .mastheadsearch -->
                    

                    <div class="row-fluid">
                            <div id="moresearches">
                                <ul>
                                    <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
                                    
                                    
                                    <li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>
                                    
                                    <li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>
                                    
                                    <li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>
                                    
                                        
                                    
                                </ul>
                            </div> <!-- /#moresearches -->
                    </div> <!-- /.row-fluid -->

                
            </div> <!-- /.span10 -->
            </div> <!-- /.opac-main-search -->
        </div> <!-- / .row-fluid -->
    </div> <!-- /.container-fluid -->

    <!-- Login form hidden by default, used for modal window -->
    <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
            <h2 id="modalLoginLabel">Log in to your account</h2>
        </div>
        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
            <div class="modal-body">
                    
                    <input type="hidden" name="koha_login_context" value="opac" />
                    <fieldset class="brief">
                        <legend style="display: none">Login</legend>
                        <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
                        <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
                    
                    
                        <div id="nologininstructions-modal">
                            



                        </div>
                    
                        
                    </fieldset>
            </div>
            <div class="modal-footer">
                <input type="submit" class="btn btn-primary" value="Log in" />
                <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
            </div>
        </form> <!-- /#auth -->
    </div>  <!-- /#modalAuth  -->


<div class="main">
    <ul class="breadcrumb">
        <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
        <li><a href="#">Log in</a></li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span7 offset2">
                <div id="opac-auth" class="maincontent">
                    <!--CONTENT-->
                    
                        

                        
                            <!-- login prompt time-->
                            <h3>Log in to your account</h3>

                            

                            

                            

                            

                        

                        

                        
                            <form action="/cgi-bin/koha/opac-reserve.pl" name="auth" id="auth" method="post">
                        
                            <input type="hidden" name="koha_login_context" value="opac" />
                            <fieldset class="brief">
                            
                                <input type="hidden" name="biblionumber" value="222755" />
                            
                            <legend style="display: none">Login</legend>
                            <label for="userid">Login</label>
                            <input type="text"  size="25" id="userid"  name="userid" />
                            <label for="password">Password</label><input type="password"  size="25" id="password"  name="password" />
                            </fieldset>

                            <input type="submit" value="Log in" class="btn" />
                            
                            <div id="nologininstructions">
                            
                                



                            

                            
                            </div>
                            </form>
                        

                    

                    

                </div> <!-- /.opac-auth -->
            </div> <!-- /.span12 -->
        </div> <!-- /.row-fluid -->
    </div> <!-- /.container-fluid -->
</div> <!-- /.main -->


    
    
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div id="opaccredits" class="noprint">
                        <!-- Footer -->
<div id="footer_pt-PT">
    <div class="firstfooter">
        <div class="span12 row-fluid firstfooter__div--container">
            <!-- Services -->
            <div class="span4">
                <h3 class="firstfooter__title">
                    <span class="js-text-lang-pt_PT"> Serviços</span>
                    <span class="js-text-lang-en">Services</span>
                </h3>
                <div class="firstfooter__description">
                    <!-- pt -->
                    <ul class="firstfooter__ul js-text-lang-pt_PT">
                        <li>
                            <a href="http://search.ebscohost.com/login.aspx?authtype=ip,guest&profid=eds&custid=ns000558&groupid=main&profile=eds" target="_blank">NOVA Discovery</a>
                        </li>
                        <li>
                            <a href="https://run.unl.pt/" target="_blank">RUN – Repositório NOVA</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/formacao-biblioteca/" target="_blank">Formações da Biblioteca</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/bmsc/espolios-e-doacoes/" target="_blank">Espólios e Doações</a>
                        </li>
                    </ul>
                    <!-- en -->
                    <ul class="firstfooter__ul js-text-lang-en">
                        <li>
                            <a href="http://search.ebscohost.com/login.aspx?authtype=ip,guest&profid=eds&custid=ns000558&groupid=main&profile=eds" target="_blank">NOVA Discovery</a>
                        </li>
                        <li>
                            <a href="https://run.unl.pt/" target="_blank">RUN – Repositório NOVA</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/formacao-biblioteca/" target="_blank">Formações da Biblioteca</a>
                        </li>
                        <li>
                            <a href="https://www.fcsh.unl.pt/faculdade/bibliotecas/bmsc/espolios-e-doacoes/" target="_blank">Espólios e Doações</a>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- END Services -->
            <!-- Biblioteca Mário Sottomayor -->
            <div class="span4">
                <h3 class="firstfooter__title">
                    <span class="js-text-lang-pt_PT">Biblioteca Mário Sottomayor Cardia</span>
                    <span class="js-text-lang-en">Mário Sottomayor Cardia Library</span>
                </h3>
                <div class="firstfooter__description">
                    <!-- pt -->
                    <ul class="firstfooter__ul js-text-lang-pt_PT">
                        <li>Avenida de Berna, 26-C, Torre B, 1.º Piso</li>
                        <li>
                            <a href="mailto:bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>
                    <!-- en -->
                    <ul class="firstfooter__ul js-text-lang-en">
                        <li>Avenida de Berna, 26-C, Torre B, 1.º Piso</li>
                        <li>
                            <a href="mailto:bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>

                </div>
            </div>
            <!-- END Biblioteca Mário Sottomayor -->
            <!-- Biblioteca Vitorino Magalhães Godinho -->
            <div class="span4">
                <h3 class="firstfooter__title">
                    <span class="js-text-lang-pt_PT">Biblioteca Vitorino Magalhães Godinho</span>
                    <span class="js-text-lang-en">Vitorino Magalhães Godinho Library</span>
                </h3>
                <div class="firstfooter__description">
                    <!-- pt -->
                    <ul class="firstfooter__ul js-text-lang-pt_PT">
                        <li>Campus de Campolide, Colégio Almada Negreiros, 1.º Piso</li>
                        <li>
                            <a href="bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>
                    <!-- en -->
                    <ul class="firstfooter__ul js-text-lang-en">
                        <li>Campus de Campolide, Colégio Almada Negreiros, 1.º Piso</li>
                        <li>
                            <a href="mailto:bibliotecas@fcsh.unl.pt">
                                <span class="fa fa-envelope-o"></span>
                                bibliotecas@fcsh.unl.pt
                            </a>
                        </li>
                    </ul>
                    <a href="https://bibliotecacomum.pt/catalogo/" target="_blank">
                        <img class="firstfooter__bc" src="/opac-tmpl/bootstrap/images/keeps/footer/SeloBC_B_P2.png" alt="Biblioteca Comum">
                    </a>
                </div>
            </div>
            <!-- END Biblioteca Vitorino Magalhães Godinho -->
        </div>
    </div>
</div>
<!-- END Footer -->

                    </div>
                </div>
            </div>
        </div>
    

    

</div> <!-- / #wrap in masthead.inc -->

    
        
            
                <div id="changelanguage" class="navbar navbar-fixed-bottom navbar-static-bottom noprint">
                    <div class="navbar-inner">
                        <ul id="i18nMenu" class="nav">
                            <li><p class="lang navbar-text"><strong>Languages:&nbsp;</strong></p></li>
                            
                                
                                    
                                        
                                            
                                                <li class="active"><p class="navbar-text">English</p></li>
                                            
                                        
                                    
                                
                            
                                
                            
                                
                                    
                                        
                                            
                                                <li><a href="/cgi-bin/koha/opac-changelanguage.pl?language=pt-PT">Português</a></li>
                                            
                                        
                                    
                                
                            
                        </ul> <!-- / #i18menu -->
                    </div> <!-- / .navbar-inner -->
                </div> <!-- / #changelanguage -->
            
        
    




<!-- JavaScript includes -->
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/jquery/jquery-ui.js"></script>
<script type="text/javascript">
// Resolve name collision between jQuery UI and Twitter Bootstrap
$.widget.bridge('uitooltip', $.ui.tooltip);
</script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/opac-tmpl/bootstrap/js/global.js"></script>
<script type="text/javascript">
    Modernizr.load([
        // Test need for polyfill
        {
            test: window.matchMedia,
            nope: "/opac-tmpl/bootstrap/lib/media.match.min.js"
        },
        // and then load enquire
        "/opac-tmpl/bootstrap/lib/enquire.min.js",
        "/opac-tmpl/bootstrap/js/script.js"
    ]);

    // Fix for datepicker in a modal
    $.fn.modal.Constructor.prototype.enforceFocus = function () {};
</script>


<script type="text/javascript">
    //<![CDATA[
    var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again")
    var MSG_DELETE_SEARCH_HISTORY = _("Are you sure you want to delete your search history?");
    var MSG_NO_SUGGESTION_SELECTED = _("No suggestion was selected");
    
        var MSG_BASKET_EMPTY = _("Your cart is currently empty");
        var MSG_RECORD_IN_BASKET = _("The item is already in your cart");
        var MSG_RECORD_ADDED = _("The item has been added to your cart");
        var MSG_RECORD_REMOVED = _("The item has been removed from your cart");
        var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
        var MSG_NRECORDS_IN_BASKET = _("already in your cart");
        var MSG_NO_RECORD_SELECTED = _("No item was selected");
        var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
        var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
        var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
        var MSG_ITEM_IN_CART = _("In your cart");
        var MSG_IN_YOUR_CART = _("Items in your cart: ");
        var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
    
    
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
        var MSG_TAG_ALL_BAD = _("Error! Your tag was entirely markup code.  It was NOT added.  Please try again with plain text.");
        var MSG_ILLEGAL_PARAMETER = _("Error! Illegal parameter");
        var MSG_TAG_SCRUBBED = _("Note: your tag contained markup code that was removed. The tag was added as ");
        var MSG_ADD_TAG_FAILED = _("Error! Adding tags failed at");
        var MSG_ADD_TAG_FAILED_NOTE = _("Note: you can only tag an item with a given term once.  Check 'My Tags' to see your current tags.");
        var MSG_DELETE_TAG_FAILED = _("Error! You cannot delete the tag");
        var MSG_DELETE_TAG_FAILED_NOTE = _("Note: you can only delete your own tags.")
        var MSG_LOGIN_REQUIRED = _("You must be logged in to add tags.");
        var MSG_TAGS_ADDED = _("Tags added: ");
        var MSG_TAGS_DELETED = _("Tags added: ");
        var MSG_TAGS_ERRORS = _("Errors: ");
        var MSG_MULTI_ADD_TAG_FAILED = _("Unable to add one or more tags.");
        var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
    
    

    $(".print-large").on("click",function(){
        window.print();
        return false;
    });
    $("#ulactioncontainer > ul > li > a.addtoshelf").on("click",function(){
        Dopop('opac-addbybiblionumber.pl?biblionumber=');
        return false;
    });
    $(".addrecord").on("click",function(){
        addRecord('');
        return false;
    });
    $(".cartRemove").on("click",function(){
        delSingleRecord('');
        return false;
    });
    //]]>
</script>


    <script type="text/javascript" src="/opac-tmpl/bootstrap/js/basket.js"></script>


<script type="text/javascript" src="/opac-tmpl/bootstrap/js/tags.js"></script>











<script type="text/javascript" src="/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.cookie.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    if($('#searchsubmit').length) {
        $(document).on("click", '#searchsubmit', function(e) {
            jQuery.removeCookie("form_serialized", { path: '/'});
            jQuery.removeCookie("form_serialized_itype", { path: '/'});
            jQuery.removeCookie("form_serialized_limits", { path: '/'});
            jQuery.removeCookie("num_paragraph", { path: '/'});
            jQuery.removeCookie("search_path_code", { path: '/'});
        });
    }
});
</script>

<script type="text/javascript">
//<![CDATA[
    // Hide circular 'Log in to Your Account' link in opac-auth.pl
    $(document).ready(function() {
        if ( $("#auth" ) ) { $("#members ul li a").hide(); }
    });
//]]>
</script>


    <script type="text/javascript">
        //<![CDATA[
        $.getScript("/opac-tmpl/bootstrap/js/keeps/keeps.js").done(function (script, textStatus) {
    RedesignOpacAuth();
});

// analytics
$(document).ready(function () {
    (function () {
        var s = document.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://www.googletagmanager.com/gtag/js?id=' + 'G-CZ6Z6BTSLK';
        var x = document.getElementsByTagName('script')[0];
        x.parentNode.insertBefore(s, x);
    })();

    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-CZ6Z6BTSLK');
})



// Global variables
// language
var lang = $('html').attr('lang');
if (lang == null) {
    lang = $('html').attr('xml:lang');
}
var pathname = window.location.pathname;
// var hostname = window.location.hostname;

//END Global variables


$(document).ready(function () {

    RedesignInAllPages("ready");
    RedesignOpacMain("ready");
    RedesignISBDDetails("ready");
    redesignTopMenu("ready");

    // patch GDPR 
    if (pathname == "/cgi-bin/koha/opac-memberentry.pl" || pathname == "/cgi-bin/koha/opac-passwd.pl" || pathname == "/cgi-bin/koha/opac-password-recovery.pl") {
        //$.getScript("/opac-tmpl/bootstrap/js/keeps/opac-passwordgdpr.js");
    }

});


$(window).load(function () {
    RedesignInAllPages("load");
    RedesignDetails("load");
    redesignTopMenu("load");
    // OPAC Search
    if (pathname.match("/opac-search.pl") && $('#booleansearch').length > 0) {
        RemoveAdvancedSearchOpts();
        
        if (lang == "en") {
           $('select[name="idx"] option[value="se,wrdl"]').text('Collection');        
        } else {
           $('select[name="idx"] option[value="se,wrdl"]').text('Coleção');
        }
    }
    
});



//----------------------------------------PAGES

//All pages
function RedesignInAllPages(LoadOrReady) {

    switch (LoadOrReady) {
        case "ready":            
            redesignSearchBar();
            break;
        case "load":
            setLanguageOnHtml();
            accessibilityFix();
            break;
        default:
            break;
    }
}

// main page / and opac-main.pl
function RedesignOpacMain(LoadOrReady) {
    if (pathname.match("/opac-main.pl") || pathname == "/") {
        switch (LoadOrReady) {
            case "ready":
                redesignNews();
                break;
            case "load":

                break;
            default:
                break;
        }
    }
}

//details page
function RedesignDetails(LoadOrReady) {
    if (pathname.match("/opac-detail.pl") && $("body#opac-detail").size()) {
        switch (LoadOrReady) {
            case "ready":    
                break;
                case "load":
                    //reorder items
                    $("#item_callnumber").click();
                    $("#item_enumchron").click();
                    //opacTranslations();
                    $('#opac-detail #action').prepend('<li><a target="_blank" href="https://forms.office.com/Pages/ResponsePage.aspx?id=roHVx2kEyUi7CDEsYxsCRveWDXK5jAVAkli-XMwdmDVUN1hCUFVNQThPTFhHNU1TWU9PNEE4TlNOWCQlQCN0PWcu"><span class="js-text-lang-pt_PT">Pedido de Transferência entre Bibliotecas NOVA FCSH</span><span class="js-text-lang-en">Request for Transfer between Libraries NOVA FCSH</span></a></li>');

                break;
            default:
                break;
        }
    }
}

//opac-ISBDdetail.pl page
function RedesignISBDDetails(LoadOrReady) {
    if (pathname.match("/opac-ISBDdetail.pl")) {
        switch (LoadOrReady) {
            case "ready":

                //reorder 210
                span210a = $("span.210a").text().split("xxa");
                span210a.pop();
                span210a.shift();
                span210c = $("span.210c").text().split("yyc");
                span210c.pop();
                span210c.shift();
                span210c = span210c.map(function (x) {
                    return ":" + x
                });
                spanSmaller = span210c.length > span210a.length ? span210a : span210c;
                spanBigger = span210c.length > span210a.length ? span210c : span210a;
                spanfinal = [];
                for (let index = 0; index < spanSmaller.length; index++) {
                    spanfinal.push(span210a[index] + span210c[index])
                }
                spanfinal.push(spanBigger.slice(spanSmaller.length));
                $("span.210a, span.210c ").remove();
                $("span.final210a_210c").text(spanfinal.join(""));

                break;
            case "load":
                break;
            default:
                break;
        }
    }
}

function RedesignOpacAuth() {
    if (pathname.match("/opac-user.pl") && $("#opac-auth").length) {
        // HIDE LABELS
        $("label[for='userid']").hide();
        $("label[for='password']").text("");

        if (lang == "en") {
            // CHANGE H2
            $("#opac-auth h2").html($("#opac-auth h2").html() + " <a href='https://www.fcsh.unl.pt/faculdade/informatica/autenticacao-fcsh-id/'>(FCSH ID Credentials)</a>")
            // CHANGE ERROR MESSAGE
            $(".alert-info p").html("Unable to connect to using your FCSH ID credentials.<br/> Please contact <a href=\"mailto:bibliotecas@fcsh.unl.pt\">bibliotecas@fcsh.unl.pt</a> and provide your FCSH ID username.");

        } else if (lang == "pt-PT") {
            // CHANGE H2
            $("#opac-auth h2").html($("#opac-auth h2").html() + " <a href='https://www.fcsh.unl.pt/faculdade/informatica/autenticacao-fcsh-id/'>(Credenciais FCSH ID)</a>")

            // CHANGE PLACEHOLDER
            $('#password').attr('placeholder', 'Palavra-passe');

            // CHANGE ERROR MESSAGE
            $(".alert-info p").html("Não foi possível estabelecer ligação às suas credenciais FCSH ID.<br/> Por favor contacte <a href=\"mailto:bibliotecas@fcsh.unl.pt\">bibliotecas@fcsh.unl.pt</a> e indique o seu nome de utilizador do FCSH ID.");
        }
    }
}

// ----------------------------------------------FUNCTIONS


function redesignTopMenu(LoadOrReady) {

    switch (LoadOrReady) {
        case "ready":
            //--- NAVBAR ---//

            if (pathname == "/" || pathname == "/cgi-bin/koha/opac-main.pl" || $("body#results").size()) {
                $("li.js-main-menu--opac-main").addClass("active");
            } else if ($("body#advsearch").size()) {
                $("li.js-main-menu--opac-advsearch").addClass("active");
            } else if (pathname == "/cgi-bin/koha/opac-authorities-home.pl") {
                $("li.js-main-menu--opac-authorities").addClass("active");
            } else if (pathname == "/cgi-bin/koha/opac-tags.pl") {
                $("li.js-main-menu--opac-search-tags").addClass("active");
            } else if (pathname == "/cgi-bin/koha/opac-user.pl") {
                //$("#header .loginbar .opac-user").addClass("active");
            }

            // mobile menu
            $(".js-mobile-button").click(function () {

                $(".main-menu").toggleClass("js-main-menu--mobile_active ");
                $(".main-menu__ul").toggleClass("js-main-menu__ul--mobile_active");
                $(".js-mobile-button").toggleClass("js-mobile-button--active");

            });
            $('#cartmenulink').parent().prependTo('.loginbar.pull-right');
            $('#cartDetails').insertBefore('.loginbar.pull-right');
            $('#cartmenulink .caret').remove();
            $('.js-main-menu__ul--cart-text').appendTo('#cartmenulink');

            break;
        case "load":

            $('.logged[style="display:none;"]').addClass('k-not-logged');
            
            break;
        default:
            break;
    }


   

}

function redesignSearchBar() {

    var userAgent = window.navigator.userAgent;

    //--- SEARCH ---//
    // $("#opac-main-search .mastheadsearch").before('<div class="opac-main-search__title"> <span class="js-text-lang-pt_PT">Catálogo geral</span> <span class="js-text-lang-en">General Catalog</span> </div> <div class="opac-main-search__description"> <span class="js-text-lang-pt_PT"> A Biblioteca da Sociedade Martins Sarmento dispõe de perto de cem mil volumes, destacando-se o fundo de livro antigo, de dimensão e qualidade excepcionais, e o Fundo Local, que integra praticamente tudo o que se tem publicado em Guimarães, sobre Guimarães ou de autores vimaranenses, para além de importantes fundos especializados em áreas como a história, a arqueologia, a etnografia, a medicina, o direito, a religião. Dispõe ainda de uma vastíssima coleção de revistas científicas, nacionais e estrangeiras. </span> <span class="js-text-lang-en"> A Biblioteca da Sociedade Martins Sarmento dispõe de perto de cem mil volumes, destacando-se o fundo de livro antigo, de dimensão e qualidade excepcionais, e o Fundo Local, que integra praticamente tudo o que se tem publicado em Guimarães, sobre Guimarães ou de autores vimaranenses, para além de importantes fundos especializados em áreas como a história, a arqueologia, a etnografia, a medicina, o direito, a religião. Dispõe ainda de uma vastíssima coleção de revistas científicas, nacionais e estrangeiras.</span> </div>');

    $('#searchsubmit').remove();

    if (lang == "en") {
        //If IE11
        if (userAgent.match(/Trident.*rv\:11\./)) {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Search<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.png"/></button>');

        } else {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Search<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.svg"/></button>');
        }

    } else {
        //If IE11
        if (userAgent.match(/Trident.*rv\:11\./)) {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Pesquisar<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.png"/></button>');
        } else {
            $('#opac-main-search .input-append').append('<button type="submit" class="searchsubmit" class="btn btn-primary">Pesquisar<img alt="search_icon" src="/opac-tmpl/bootstrap/images/keeps/main/icon_search.svg"/></button>');
        }
    }


    $("#select_library").append($('#select_library optgroup[label="Bibliotecas"], #select_library optgroup[label="Libraries"]').html());
    $('#select_library optgroup[label="Bibliotecas"], #select_library optgroup[label="Libraries"]').remove();
    $('#select_library optgroup[label="Grupos"], #select_library optgroup[label="Groups"]').remove();


    //add extra class to the container-fluid of the main search
    $($('#opac-main-search').closest(".container-fluid")).addClass("container-fluid_div--fcsh-opac-main-search");

    // opac-main search input size
    setInputSearchSize();
    $(window).resize(function () {
        setInputSearchSize()
    });
    //END opac-main search input size




}

function setInputSearchSize() {
    var inputSize;
    if ($("#opac-main-search").width() > 931) {

        inputSize = $("#opac-main-search").width() - 551;
    } else {
        inputSize = $("#opac-main-search").width() - 418;
    }
    $("#translControl1").css({
        'width': inputSize
    });
}


function redesignNews() {
    //move news
    if (pathname == "/" || pathname == "/cgi-bin/koha/opac-main.pl") {

        $('#news').detach().appendTo('#library-news');
        var newsitems = $('.newsitem');
        for (var i = 0; i < newsitems.length; i++) {
            var newsItem = $(".newsitem")[i];
            $(newsItem).find("h4").after($(newsItem).find("div.newsfooter"))
        }
    }

    // hide news block title if no news
    if ($("#news").length) {
        $("#library-news .main__blocks-title").show();
    } else {
        $("#library-news .main__blocks-title").hide();
    }
}

function setLanguageOnHtml() {
    if (lang == "en") {

        $("#menubar_en").show();
        $("#menubar_pt-PT").hide();

        $('#modalLoginLabel').replaceWith('<h2 id="modalLoginLabel">Log in to your account</h2>');

        // header-contacts change language
        $("li.js-change-language--pt>a").removeClass("active");
        $("li.js-change-language--en>a").addClass("active");

        $('#opac-main-search #translControl1').attr('placeholder', 'Search the library catalog');

    } else {
        $('#opac-main-search #translControl1').attr('placeholder', 'Pesquise no catálogo das bibliotecas');
    }


    $("#opac-main-search input#translControl1").addClass('showPlaceholder');


}

function accessibilityFix() {}

function RemoveAdvancedSearchOpts() {
     $('select[name="idx"] option[value="su,phr"]').remove();
     $('select[name="idx"] option[value="ti,phr"]').remove();
     $('select[name="idx"] option[value="location"]').remove();
     $('select[name="idx"] option[value="au,phr"]').remove();
     $('select[name="idx"] option[value="cpn,wrdl"]').remove();
     $('select[name="idx"] option[value="cfn,phr"]').remove();
     $('select[name="idx"] option[value="pn,wrdl"]').remove();
     $('select[name="idx"] option[value="pn,phr"]').remove();
     $('select[name="idx"] option[value="nt"]').remove();
     $('select[name="idx"] option[value="pl,wrdl"]').remove();
     $('select[name="idx"] option[value="cdu"]').remove();
     $('select[name="idx"] option[value="cfn,wrdl"]').remove();
}


function opacTranslations() {
    // #75883 opac items
    if (lang == "en") {
        $("td.collection:contains('Descrição')").text("Description");
        $("td.collection:contains('Depósitos')").text("Deposits");
        $("td.collection:contains('Gabinete CEG')").text("CEG Office");
        $("td.collection:contains('Gabinete CEH')").text("CEH Office");
        $("td.collection:contains('Gabinete CESEM')").text("CESEM Office");
        $("td.collection:contains('Gabinete CETAPS')").text("CETAPS Office");
        $("td.collection:contains('Gabinete CHAM')").text("CHAM Office");
        $("td.collection:contains('Gabinete CICSNOVA')").text("CICSNOVA Office");
        $("td.collection:contains('Gabinete CLUNL')").text("CLUNL Office");
        $("td.collection:contains('Gabinete CRIA')").text("CRIA Office");
        $("td.collection:contains('Gabinete ICNOVA')").text("ICNOVA Office");
        $("td.collection:contains('Gabinete IELT')").text("IELT Office");
        $("td.collection:contains('Gabinete IEM')").text("IEM Office");
        $("td.collection:contains('Gabinete IFILNOVA')").text("IFILNOVA Office");
        $("td.collection:contains('Gabinete IHA')").text("IHA Office");
        $("td.collection:contains('Gabinete IHC')").text("IHC Office");
        $("td.collection:contains('Gabinete INET-MD')").text("INET-MD Office");
        $("td.collection:contains('Obras de Referência')").text("Reference Works");
        $("td.collection:contains('Reservados')").text("Reserved");
        $("td.collection:contains('Sala de Leitura')").text("Reading Room");

        $("td.status:has(span.item-status.notforloan:contains('Consulta local'))")
            .find("span.item-status.notforloan")
            .text("Local Consultation");

        $("td.status:has(span.item-status.notforloan:contains('Descrição'))")
            .find("span.item-status.notforloan")
            .text("Description");

        $("td.status:has(span.item-status.notforloan:contains('Consulta local ou empréstimo interbiblioteca'))")
            .find("span.item-status.notforloan")
            .text("Local Consultation or Interlibrary Loan");

        $("td.status:has(span.item-status.notforloan:contains('Empréstimo interbiblioteca'))")
            .find("span.item-status.notforloan")
            .text("Interlibrary Loan");

        $("td.status:has(span.item-status.notforloan:contains('Indisponível para empréstimo'))")
            .find("span.item-status.notforloan")
            .text("Unavailable for Loan");
    }
}
        //]]>
    </script>


</body>
</html>


