anchor.diff:                     contactLinks = "";
                    }
                    %>
  -                 var langNoContacts = "No Contact provided";
  +                 var langNoContacts = "${nocontacts}";
                    if ('<%%= contactLinks %>' == '') document.write(langNoContacts);
                    else document.write('<%%= contactLinks %>');
                 </script></li>
  -              <li><span class="item-marker">&rsaquo;</span> <b><idpui:servicePrivacyURL cssId="spPrivacyURL" linkText="Privacy Policy">No Privacy Policy specified</idpui:servicePrivacyURL></b></li>
  -              <li><span class="item-marker">&rsaquo;</span> <b><idpui:serviceInformationURL cssId="spInfoURL" linkText="Information website">No Information website provided</idpui:serviceInformationURL></b></li>
  -              <li><span class="item-marker">&rsaquo;</span> <b>Requested Attributes:</b><br/>
  +              <li><span class="item-marker">&rsaquo;</span> <b><idpui:servicePrivacyURL cssId="spPrivacyURL" linkText="${privacy}">${noprivacy}</idpui:servicePrivacyURL></b></li>
  +              <li><span class="item-marker">&rsaquo;</span> <b><idpui:serviceInformationURL cssId="spInfoURL" linkText="${infopage}">${noinfopage}</idpui:serviceInformationURL></b></li>
  +              <li><span class="item-marker">&rsaquo;</span> <b>${requestedattrs}:</b><br/>
                 <script language="javascript">
  -                var langPreLink = "<%= @metadata_information['en']['idpInfoUrl'] %>#";
  -                var langNoAttrs = "No Attributes required";
  +                var langPreLinkA = {
  +                  <% @metadata_information.each do |@l, @mi| %>
  +                  "<%= @l %>": "<%= @mi['idpInfoUrl'] %>",
  +                  <% end %>
  +                };
  +		var langPreLink = ("${language}" in langPreLinkA) ? langPreLinkA["${language}"] : langPreLinkA["en"];
  +                var langNoAttrs = "${norequestedattrs}";
   
                   <%%
                     String requestedAttributes = "";
  
positive.code:                      document.write(langNoAttrs);
                       <%%
                     } else {
                        %>
                        document.write('<%%= desiredAttributes %>');
                        <%%
                     }
                   %>
                </script></li>           
                </ul>
              <%% } else { %>
              <div class="column one">
                <%% if(request.getAttribute("actionUrl") != null){ %>
                  <form id="login" action="<%%=request.getAttribute("actionUrl")%>" method="post">
                <%% }else{ %>
                  <form id="login" action="j_security_check" method="post">
                <%% } %>
  
  
negative.code:               var results = regex.exec(location.search);
                return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
             }
        </script>
      </head>
  
      <c:choose>
        <c:when test="${language == 'it'}">
          <c:set var="goback" value="Torna alla pagina di login" />
          <c:set var="description" value="Descrizione" />
          <c:set var="organization" value="Organizzazione" />
          <c:set var="contacts" value="Contatti" />
          <c:set var="nocontacts" value="Nessun contatto fornito" />
          <c:set var="privacy" value="Privacy Policy" />
          <c:set var="noprivacy" value="Nessuna politica di privacy specificata" />
          <c:set var="infopage" value="Sito di informazioni" />
          <c:set var="noinfopage" value="Nessun sito di informationi specificato" />
          <c:set var="optionalattrs" value="Attributi opzionali" />
          <c:set var="nooptionalattrs" value="Nessun attributo opzionale" />
          <c:set var="requestedattrs" value="Attributi Richiesti" />
          <c:set var="norequestedattrs" value="Nessun attributo richiesto" />
          <c:set var="unknown" value="Sconosciuto" />
          <c:set var="pwdexpired" value="Password scadura" />
          <c:set var="invalidpwd" value="Password non valida" />
          <c:set var="changepwd" value="Cambiala" />
          <c:set var="locked" value="Account temporaneamente bloccato" />
          <c:set var="wrong" value="Nome utente o password errati. Prova ancora" />
          <c:set var="loginto" value="Accedi a" />
          <c:set var="username" value="Nome utente" />
          <c:set var="password" value="Password" />
          <c:set var="clearconsent" value="Ripulisci il consenso al rilascio dati" />
          <c:set var="login" value="Login" />
          <c:set var="spdescr" value="Descrizione del SP" />
          <c:set var="moreinfo" value="Informazioni aggiuntive sul SP" />
          <c:set var="forgot" value="Dimenticata la password?" />
          <c:set var="help" value="Serve aiuto?" />
          <c:set var="info" value="Pagina di informazioni" />
          <c:set var="idem" value="Federazione IDEM" />
          <c:set var="ideminfo" value="Informazioni su IDEM" />
          <c:set var="footer" value="L'<%= @metadata_information['it']['orgDisplayName'] %>, <%= @metadata_information['it']['orgDescription'] %> partecipa ad <strong>IDEM</strong> (<strong>IDE</strong>ntity <strong>M</strong>anagement federato per l'accesso ai servizi) per la realizzazione dell'Infrastruttura di Autenticazione e Autorizzazione federata della rete GARR.<br/>L'<%= @metadata_information['it']['orgDisplayName'] %> rilascia credenziali d'accesso per questo sistema di autenticazione (Identity Provider) ai propri dipendenti e ai ricercatori affiliati." />
        </c:when>
        <c:otherwise>
          <c:set var="goback" value="Go back to login page" />
          <c:set var="description" value="Description" />
          <c:set var="organization" value="Organization" />
          <c:set var="contacts" value="Contacts" />
          <c:set var="nocontacts" value="No contacts provided" />
          <c:set var="privacy" value="Privacy Policy" />
          <c:set var="noprivacy" value="No privacy policy specified" />
          <c:set var="infopage" value="Information website" />
          <c:set var="noinfopage" value="No information website provided" />
          <c:set var="optionalattrs" value="Optional Attributes" />
          <c:set var="nooptionalattrs" value="No optional attribute" />
          <c:set var="requestedattrs" value="Requested Attributes" />
          <c:set var="norequestedattrs" value="No attributes required" />
          <c:set var="unknown" value="Unknown" />
          <c:set var="pwdexpired" value="Password Expired" />
          <c:set var="invalidpwd" value="Invalid password" />
          <c:set var="changepwd" value="Change it" />
          <c:set var="locked" value="Account temporarily locked" />
          <c:set var="wrong" value="Wrong Username or Password. Try Again" />
          <c:set var="loginto" value="Log in to" />
          <c:set var="username" value="Username" />
          <c:set var="password" value="Password" />
          <c:set var="clearconsent" value="Clear attribute release consent" />
          <c:set var="login" value="Login" />
          <c:set var="spdescr" value="SP description" />
          <c:set var="moreinfo" value="More information about the service" />
          <c:set var="forgot" value="Forgot your password?" />
          <c:set var="help" value="Need Help?" />
          <c:set var="info" value="Information page" />
          <c:set var="idem" value="IDEM Federation" />
          <c:set var="ideminfo" value="Information about IDEM" />
          <c:set var="footer" value="The <%= @metadata_information['en']['orgDisplayName'] %>, <%= @metadata_information['en']['orgDescription'] %>now is a part of <strong>IDEM</strong> (<strong>IDE</strong>ntity <strong>M</strong>anagement for the access federated) to realize the Italian Authentication and Authorization Infrastructure on the GARR network.<br/>The <%= @metadata_information['en']['orgDisplayName'] %> releases credentials to provide access into this authentication system (Identity Provider) for his employees and researchers." />
        </c:otherwise>
      </c:choose>
  
      <body><div class="wrapper">
          <div class="container">
            <header>
              <%% if ("true".equals(request.getParameter("spinfo"))) { %>
               <idpui:serviceLogo minWidth="40" minHeight="40">default</idpui:serviceLogo><br/>
               <idpui:serviceDescription>${spdescr}</idpui:serviceDescription><br />
               <a href="javascript:setParam('spinfo', 'false');">${goback}</a>
              <%% } else { %>
                <c:choose>
                <c:when test="${language == 'it'}">
                  <a id="logolink" class="logo" href="<%= metadata_information['it']['idpInfoUrl'] %>"><img id="logoimg" src="<%= metadata_information['it']['url_LogoOrg_160x120']%>" alt="<%= metadata_information['it']['orgDisplayName']%>"/></a><br/><%= metadata_information['it']['orgDisplayName']%>
                </c:when>
                <c:otherwise>
                  <a id="logolink" class="logo" href="<%= metadata_information['en']['idpInfoUrl'] %>"><img id="logoimg" src="<%= metadata_information['en']['url_LogoOrg_160x120']%>" alt="<%= metadata_information['en']['orgDisplayName']%>"/></a><br/><%= metadata_information['en']['orgDisplayName']%>
                </c:otherwise>
                </c:choose>
              <%% } %>
            </header>
        
            <div class="content">
              <%% if ("true".equals(request.getParameter("spinfo"))) { %>
                <ul>
                <li><span class="item-marker">&rsaquo;</span> <b>${description}:</b><br/>
                <idpui:serviceDescription>${unknown}</idpui:serviceDescription></li>
                <li><span class="item-marker">&rsaquo;</span> <b>${organization}:</b><br/>
                <script language="javascript">
                  if ('<idpui:organizationDisplayName />') { 
                    document.write('<idpui:organizationDisplayName />');
  