translations["autor"]=>$nombreAutor); $header = maquetacionUtils::escribeCabecera($matriz_title," / ","",true); if ($codError>0) { header('HTTP/1.0 404 Not Found'); } if ($codError == 12) { //header("Location: ".(UNIQUE_LANGUAGE == ""?("/".$_SESSION["LANGUAGE"]):PATH_HTML)."/busqueda/sinResultados.php?consulta=".urlencode($header)); exit; $mensaje = $header; $nofollow = "S"; } else if ($codError > 0) { $mensaje = Error::msg($codError); $mensaje = $mensaje["mensaje"]; $nofollow = "S"; } else { if ($orden != CAMPO_ORDEN_LISTADO || $pagSel > 1 || $pag->total == 1) $nofollow = "S"; $ordenes = $pag->setOrder(",".CAMPO_ORDEN_LISTADO, $page->translations["disponibilidad"].",stockfirme desc", $page->translations["titulo"].",a.descripcion", $page->translations["autor"].",autor", $page->translations["precio"].",pvp_euros", $page->translations["fecha_edicion"].",fecha_edicion desc"); } //echo $pag->total; /* if ($pag->total == 1) { header("Location: ".Libro::linkDetalle($result[0]["codigo"], $result[0]["descripcion"], $result[0]["isbn"])); exit; } */ $msgLibroNoComprable = Error::msg(20, "mensaje"); if (DESCUENTO_GENERAL) $porcDto = Config::dame("PORCENTAJE_DESCUENTO"); $coletilla = strpos($page->title, "~")!==false; $titleAutor = strtoupper($nombreAutor); $page->title = "Libros de ".$titleAutor." - ".CLIENT_NAME; //." - Página ".$pagSel; $page->description = "Libros de ".$titleAutor." - ".$pag->total; $page->keywords .= $titleAutor; // if ($coletilla) $page->title .= ". ".$page->genericTitle; // Preparar para Smarty $smarty = new SmartyTemplate(); if (SOLR_FACETADO) { $busquedaPorAutor = true; include(PATH."busqueda/filtros.php"); $filtrosFacetado = 'S'; } else $filtrosFacetado = 'N'; $camposBusqueda["pagSel"] = $pagSel; $camposBusqueda["cuantos"] = $cuantos; $camposBusqueda["orden"] = $orden; $camposBusqueda["titulo"] = $titulo; $camposBusqueda["codAutor"] = $codAutor; $camposBusqueda["autor"] = $autor; $camposBusqueda["isbn"] = $isbn; $camposBusqueda["ean"] = $ean; $camposBusqueda["codEditorial"] = $codEditorial; $camposBusqueda["codMateria"] = $codMateria; $camposBusqueda["codSubmateria"] = $codSubmateria; $camposBusqueda["anoPublicacion"] = $anoPublicacion; $camposBusqueda["soloNovedades"] = $soloNovedades; $camposBusqueda["diasNovedad"] = $diasNovedad; $camposBusqueda["soloConStock"] = $soloConStock; $smarty->assign("filtrosFacetado", $filtrosFacetado); if ($codError == 0) { $smarty->assign("camposBusqueda", $camposBusqueda); $smarty->assign("result", $result); $smarty->assign("msgLibroNoComprable", $msgLibroNoComprable); $smarty->assign("page", $pag->page); $smarty->assign("total", $pag->total); $smarty->assign("totalPag", $pag->totalPag); $smarty->assign("header", $page->translations["libros_del_autor"].": ".$nombreAutor); // Paginador $smarty->assign("orden", $orden); $smarty->assign("ordenes", $ordenes); $smarty->assign("cuantos", $cuantos); $smarty->assign("pag", $pag); $smarty->assign("pagSel", $pagSel); $smarty->assign("regDel", $pag->regDel); $smarty->assign("regHasta", $pag->regHasta); $smarty->assign("registrosPagina", $registrosPagina); $smarty->assign("paginador", $pag->paginador($pagSel, $cuantos, 10)); $urlWeb = "http://".substr(URL_WEB, 0, -1); if ($codAutor != "") $smarty->assign("canonical", $urlWeb.Autor::linkAutor($codAutor, $nombreAutor, true)); else $smarty->assign("canonical", $urlWeb.Autor::linkAutor("", $autor, true)); } $smarty->assign("codError", $codError); $smarty->assign("mensaje", strip_tags($mensaje)); $smarty->assign("nofollow", $nofollow); include(PATH."header.php"); $smarty->display('listaLibros.html'); ?>