El sitio web encontró un error inesperado. Vuelva a intentarlo más tarde.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and origen='orcid'' at line 1: select * from publicaciones where idUsuario= and origen='orcid'; Array ( ) in eval() (line 154 of modules/contrib/php/php.module(81) : eval()'d code).
Drupal\Core\Database\Statement->execute(Array, Array) (Line: 625)
Drupal\Core\Database\Connection->query('select * from publicaciones where idUsuario= and origen='orcid'', Array, Array) (Line: 87)
Drupal\Core\Database\Driver\mysql\Connection->query('select * from publicaciones where idUsuario= and origen='orcid'') (Line: 154)
eval() (Line: 81)
php_eval('<?php
\Drupal::service('page_cache_kill_switch')->trigger();

$userCurrent = \Drupal::currentUser();
$user = Drupal\user\Entity\User::load($userCurrent->id());
$roles = $user->getRoles();

$database = \Drupal::database();
$request = \Drupal::requestStack()->getCurrentRequest()->query->all();
$dato=$request['id'];

?>




<?php  
$query = $database->query("select * from investigadores where id=".$dato);
$inv = $query->fetchAll();
$inv=$inv[0];

if ($user = Drupal\user\Entity\User::load($inv->idUsuario)) {
  if (!$user->user_picture->isEmpty()) {
	$picture = $user->get('user_picture')->entity->url();
	echo "";
  }
  else {
    $picture = "";
  }
}
?>






Datos personales
<?php if($roles[1]=='administrator') {?>
Identificación: 
<?php echo $inv->tipoidentificacion?>: <?php echo $inv->identificacion?>
<?php } ?>
Nombres y Apellidos: 
<?php echo $inv->nombres." ".$inv->apellidos?>

<?php if($roles[1]=='administrator') {?>
Fecha de nacimiento y edad: 
<?php echo $inv->fechanacimiento?>   <?php  list($Y,$m,$d) = explode("-",$inv->fechanacimiento); echo ( date("md") < $m.$d ? date("Y")-$Y-1 : date("Y")-$Y );?> años
<?php } ?>
Género: 
<?php echo $inv->genero; ?>


Información académica

Grado Académico: 
<?php echo $inv->grado?>
Titulo Académico: 
<?php echo $inv->titulo?>
Tipo de institución a la que pertenece: 
<?php echo $inv->tipoInstitucion?>
Institución a la que pertenece: 
<?php echo $inv->institucion?>

Mis enlaces
&lt;?php if($inv-&gt;orcid!=""){?&gt;<a>orcid; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;scopus!=""){?&gt;<a>scopus; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;schollar!=""){?&gt;<a>schollar; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;research!=""){?&gt;<a>research; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;publons!=""){?&gt;<a>publons; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;web!=""){?&gt;<a>web; ?&gt;" target="_blank"&gt;&lt;?php echo $inv-&gt;web; ?&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;otrasRedes!=""){?&gt;

&lt;?php echo $inv-&gt;otrasRedes; ?&gt;&lt;?php } ?&gt;

Documentos SCOPUS: 
&lt;?php echo $inv-&gt;documentosScopus; ?&gt;
Citas: 
&lt;?php echo $inv-&gt;citas; ?&gt;
Indice h: 
&lt;?php echo $inv-&gt;indiceh; ?&gt;


 

Contacto
Pais: 
&lt;?php echo $inv-&gt;pais?&gt;
Provincia: 
&lt;?php echo $inv-&gt;provincia?&gt;
Ciudad: 
&lt;?php echo $inv-&gt;ciudad?&gt;
&lt;?php if($roles[1]=='administrator') {?&gt;
Dirección: 
&lt;?php echo $inv-&gt;direccion?&gt;
Teléfono de contacto personal: 
&lt;?php echo $inv-&gt;telefono_contacto?&gt;
Teléfono de contacto institucional: 
&lt;?php echo $inv-&gt;telefono_institucional?&gt;
&lt;?php } ?&gt;
Correo Electrónico: 
&lt;?php echo $inv-&gt;email?&gt;

 

 



    
    	Información investigación
        
        &lt;?php
			if($inv-&gt;lineas!="") echo "Lineas de investigación 1:  $inv-&gt;lineas ";
			if($inv-&gt;lineas2!="") echo "Lineas de investigación 2:  $inv-&gt;lineas2 ";
			if($inv-&gt;lineas3!="") echo "Lineas de investigación 3:  $inv-&gt;lineas3 ";
		?&gt;
        
        &lt;?php
			if($inv-&gt;proyectos!="") echo "Proyectos 1:  $inv-&gt;proyectos ";
			if($inv-&gt;proyectos2!="") echo "Proyectos 2:  $inv-&gt;proyectos2 ";
			if($inv-&gt;proyectos3!="") echo "Proyectos 3:  $inv-&gt;proyectos3 ";
		?&gt;
        
        &lt;?php
			if($inv-&gt;gruposTematicos!="") echo "Grupos Tematicos 1:  $inv-&gt;gruposTematicos ";
			if($inv-&gt;gruposTematicos2!="") echo "Grupos Tematicos 2:  $inv-&gt;gruposTematicos2 ";
			if($inv-&gt;gruposTematicos3!="") echo "Grupos Tematicos 3:  $inv-&gt;gruposTematicos3 ";
		?&gt;
    





    
    	Publicaciones
        
		
        
        	<strong>TIPO</strong>
            <strong>TITULO</strong>
            <strong>AÑO</strong>
            <strong>AUTORES</strong>
        
&lt;?php 						
		$database = \Drupal::database();
		$query = $database-&gt;query("select * from publicaciones where idUsuario=".$inv-&gt;idUsuario." and origen='orcid'");
		$ins = $query-&gt;fetchAll();
		foreach ($ins as $record){
			if($record-&gt;tipo!=""){
?&gt;
        
        	&lt;?php echo $record-&gt;tipo?&gt;
            &lt;?php echo $record-&gt;titulo?&gt;
            &lt;?php echo $record-&gt;anio?&gt;
            &lt;?php echo str_replace("|","",$record-&gt;autores);?&gt;
        
&lt;?php 
			}
		}
?&gt;
        
        
        
        
   		Otras Publicaciones del usuario
        
		
        
        	<strong>TIPO</strong>
            <strong>TITULO</strong>
            <strong>AÑO</strong>
            <strong>URL</strong>
            <strong>ARCHIVO</strong>
        
&lt;?php 						
		$database = \Drupal::database();
		$query = $database-&gt;query("select * from publicaciones where idUsuario=".$inv-&gt;idUsuario." and origen='investigador'");
		$ins = $query-&gt;fetchAll();
		foreach ($ins as $record){
?&gt;
        
        	&lt;?php echo $record-&gt;tipo?&gt;
            &lt;?php echo $record-&gt;titulo?&gt;
            &lt;?php echo $record-&gt;anio?&gt;
            <a>url?&gt;"&gt;&lt;?php echo $record-&gt;url?&gt;</a>
            &lt;?php echo $record-&gt;archivo?&gt;
        
&lt;?php 
		}
?&gt;
        
        
        
        

    




') (Line: 31)
Drupal\php\Plugin\Filter\Php->process('&lt;?php
\Drupal::service('page_cache_kill_switch')-&gt;trigger();

$userCurrent = \Drupal::currentUser();
$user = Drupal\user\Entity\User::load($userCurrent-&gt;id());
$roles = $user-&gt;getRoles();

$database = \Drupal::database();
$request = \Drupal::requestStack()-&gt;getCurrentRequest()-&gt;query-&gt;all();
$dato=$request['id'];

?&gt;




&lt;?php  
$query = $database-&gt;query("select * from investigadores where id=".$dato);
$inv = $query-&gt;fetchAll();
$inv=$inv[0];

if ($user = Drupal\user\Entity\User::load($inv-&gt;idUsuario)) {
  if (!$user-&gt;user_picture-&gt;isEmpty()) {
	$picture = $user-&gt;get('user_picture')-&gt;entity-&gt;url();
	echo "";
  }
  else {
    $picture = "";
  }
}
?&gt;






Datos personales
&lt;?php if($roles[1]=='administrator') {?&gt;
Identificación: 
&lt;?php echo $inv-&gt;tipoidentificacion?&gt;: &lt;?php echo $inv-&gt;identificacion?&gt;
&lt;?php } ?&gt;
Nombres y Apellidos: 
&lt;?php echo $inv-&gt;nombres." ".$inv-&gt;apellidos?&gt;

&lt;?php if($roles[1]=='administrator') {?&gt;
Fecha de nacimiento y edad: 
&lt;?php echo $inv-&gt;fechanacimiento?&gt;&nbsp;&nbsp;&nbsp;&lt;?php  list($Y,$m,$d) = explode("-",$inv-&gt;fechanacimiento); echo ( date("md") &lt; $m.$d ? date("Y")-$Y-1 : date("Y")-$Y );?&gt; años
&lt;?php } ?&gt;
Género: 
&lt;?php echo $inv-&gt;genero; ?&gt;


Información académica

Grado Académico: 
&lt;?php echo $inv-&gt;grado?&gt;
Titulo Académico: 
&lt;?php echo $inv-&gt;titulo?&gt;
Tipo de institución a la que pertenece: 
&lt;?php echo $inv-&gt;tipoInstitucion?&gt;
Institución a la que pertenece: 
&lt;?php echo $inv-&gt;institucion?&gt;

Mis enlaces
&lt;?php if($inv-&gt;orcid!=""){?&gt;<a>orcid; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;scopus!=""){?&gt;<a>scopus; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;schollar!=""){?&gt;<a>schollar; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;research!=""){?&gt;<a>research; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;publons!=""){?&gt;<a>publons; ?&gt;" target="_blank"&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;web!=""){?&gt;<a>web; ?&gt;" target="_blank"&gt;&lt;?php echo $inv-&gt;web; ?&gt;</a>&lt;?php } ?&gt;

&lt;?php if($inv-&gt;otrasRedes!=""){?&gt;

&lt;?php echo $inv-&gt;otrasRedes; ?&gt;&lt;?php } ?&gt;

Documentos SCOPUS: 
&lt;?php echo $inv-&gt;documentosScopus; ?&gt;
Citas: 
&lt;?php echo $inv-&gt;citas; ?&gt;
Indice h: 
&lt;?php echo $inv-&gt;indiceh; ?&gt;


 

Contacto
Pais: 
&lt;?php echo $inv-&gt;pais?&gt;
Provincia: 
&lt;?php echo $inv-&gt;provincia?&gt;
Ciudad: 
&lt;?php echo $inv-&gt;ciudad?&gt;
&lt;?php if($roles[1]=='administrator') {?&gt;
Dirección: 
&lt;?php echo $inv-&gt;direccion?&gt;
Teléfono de contacto personal: 
&lt;?php echo $inv-&gt;telefono_contacto?&gt;
Teléfono de contacto institucional: 
&lt;?php echo $inv-&gt;telefono_institucional?&gt;
&lt;?php } ?&gt;
Correo Electrónico: 
&lt;?php echo $inv-&gt;email?&gt;

 

 



    
    	Información investigación
        
        &lt;?php
			if($inv-&gt;lineas!="") echo "Lineas de investigación 1:  $inv-&gt;lineas ";
			if($inv-&gt;lineas2!="") echo "Lineas de investigación 2:  $inv-&gt;lineas2 ";
			if($inv-&gt;lineas3!="") echo "Lineas de investigación 3:  $inv-&gt;lineas3 ";
		?&gt;
        
        &lt;?php
			if($inv-&gt;proyectos!="") echo "Proyectos 1:  $inv-&gt;proyectos ";
			if($inv-&gt;proyectos2!="") echo "Proyectos 2:  $inv-&gt;proyectos2 ";
			if($inv-&gt;proyectos3!="") echo "Proyectos 3:  $inv-&gt;proyectos3 ";
		?&gt;
        
        &lt;?php
			if($inv-&gt;gruposTematicos!="") echo "Grupos Tematicos 1:  $inv-&gt;gruposTematicos ";
			if($inv-&gt;gruposTematicos2!="") echo "Grupos Tematicos 2:  $inv-&gt;gruposTematicos2 ";
			if($inv-&gt;gruposTematicos3!="") echo "Grupos Tematicos 3:  $inv-&gt;gruposTematicos3 ";
		?&gt;
    





    
    	Publicaciones
        
		
        
        	<strong>TIPO</strong>
            <strong>TITULO</strong>
            <strong>AÑO</strong>
            <strong>AUTORES</strong>
        
&lt;?php 						
		$database = \Drupal::database();
		$query = $database-&gt;query("select * from publicaciones where idUsuario=".$inv-&gt;idUsuario." and origen='orcid'");
		$ins = $query-&gt;fetchAll();
		foreach ($ins as $record){
			if($record-&gt;tipo!=""){
?&gt;
        
        	&lt;?php echo $record-&gt;tipo?&gt;
            &lt;?php echo $record-&gt;titulo?&gt;
            &lt;?php echo $record-&gt;anio?&gt;
            &lt;?php echo str_replace("|","",$record-&gt;autores);?&gt;
        
&lt;?php 
			}
		}
?&gt;
        
        
        
        
   		Otras Publicaciones del usuario
        
		
        
        	<strong>TIPO</strong>
            <strong>TITULO</strong>
            <strong>AÑO</strong>
            <strong>URL</strong>
            <strong>ARCHIVO</strong>
        
&lt;?php 						
		$database = \Drupal::database();
		$query = $database-&gt;query("select * from publicaciones where idUsuario=".$inv-&gt;idUsuario." and origen='investigador'");
		$ins = $query-&gt;fetchAll();
		foreach ($ins as $record){
?&gt;
        
        	&lt;?php echo $record-&gt;tipo?&gt;
            &lt;?php echo $record-&gt;titulo?&gt;
            &lt;?php echo $record-&gt;anio?&gt;
            <a>url?&gt;"&gt;&lt;?php echo $record-&gt;url?&gt;</a>
            &lt;?php echo $record-&gt;archivo?&gt;
        
&lt;?php 
		}
?&gt;
        
        
        
        

    




', 'es') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func(Array, Array) (Line: 378)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array) (Line: 490)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 91)
__TwigTemplate_5b03bca200df2d5ba1ca47d2e222b86347639abbdcd0d8d587ebad065efba4c8->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array, Array) (Line: 50)
__TwigTemplate_e31b6bd3d1b2c96162eebdb14334b21ab61f4d491b59303bdc56cb8e3a6b4a4a->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array, Array) (Line: 47)
__TwigTemplate_d27e7dff4c233dd750e0d55a24ef9defe7e7849370d70ec8406fd8d208d45386->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array) (Line: 411)
Twig_Template->render(Array) (Line: 64)
twig_render_template('core/themes/classy/templates/field/field--text-with-summary.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 437)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 450)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array) (Line: 490)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 114)
__TwigTemplate_a492b661285604c258d975c4e0db4256a8980f70adf6fed8147ab1a8e8a49bc0->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array) (Line: 411)
Twig_Template->render(Array) (Line: 64)
twig_render_template('core/themes/classy/templates/content/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 437)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 184)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 121)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 75)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 666)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)