INFOCIUTAT | Ajuntament de València - València

Cerques en Infociutat

Localització d'equipaments pel seu nom o a partir d'alguna paraula inclosa en la seua descripció o contingut.

Opcions de la cerca

Cercar en:
    S'ha produït un error mentre es processava la plantilla.
    The following has evaluated to null or missing:
    ==> JournalArticleService.fetchArticleByUrlTitle(groupId, urlTitle)  [in template "20115#20151#200340" at line 143, column 44]
    
    ----
    Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
    ----
    
    ----
    FTL stack trace ("~" means nesting-related):
    	- Failed at: #assign article = JournalArticleServi...  [in template "20115#20151#200340" at line 143, column 25]
    ----
    1<!--El publicador no hay que configurarlo con la estructura de infociudad, porque sino intenta cargar cada vez todas las fichas de infociudad--> 
    2<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] /> 
    3<@liferay_theme["defineObjects"] /> 
    4<#assign themeRootPath = themeDisplay.getPathThemeRoot() /> 
    5<#assign themeImagesPath = themeDisplay.getPathThemeImages() /> 
    6<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
    7<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
    8<#assign infoUrl = "/infociudad"/> 
    9<#assign infoUrlVal = "/infociutat"/> 
    10<#assign friendlyURL = themeDisplay.getScopeGroup().getFriendlyURL() /> 
    11<#assign currentURL = themeDisplay.getURLCurrent() /> 
    12<#if request.getParameter("p_r_p_categoryId")?has_content> 
    13 
    14	<#assign categoryId = request.getParameter("p_r_p_categoryId") /> 
    15	<#assign categoryIdLong = categoryId?number?long /> 
    16	<#assign categoryValueClass = staticUtil["com.liferay.portal.kernel.util.ClassResolverUtil"].resolveByPortalClassLoader("com.liferay.asset.kernel.model.AssetCategory") > 
    17	<#assign dynamicQueryFactory = staticUtil["com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"] > 
    18	<#assign dynamicQuery = dynamicQueryFactory.forClass(categoryValueClass) > 
    19	<#assign propertyFactory = staticUtil["com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil"]> 
    20	<#assign VOID = dynamicQuery.add(propertyFactory.forName("parentCategoryId").eq(categoryIdLong))> 
    21	<#assign results = catLocalService.dynamicQuery(dynamicQuery) > 
    22	<#assign categoryChilds = results /> 
    23	<div class="container publicador-infociudad"> 
    24		<#assign categoriaRecorrida = categoryIdLong > 
    25		<#assign x=10> 
    26		<div class="publicador-infociudad-header"> 
    27		<#assign categorias = [] /> 
    28		<#list 1..x as i> 
    29			<#assign dynamicQueryPadres = dynamicQueryFactory.forClass(categoryValueClass) > 
    30			<#assign VOID = dynamicQueryPadres.add(propertyFactory.forName("categoryId").eq(categoriaRecorrida))> 
    31			<#assign resultsPadres = catLocalService.dynamicQuery(dynamicQueryPadres) > 
    32			<#assign categoryPadres = resultsPadres /> 
    33				<#if categoryPadres?has_content > 
    34					<#list categoryPadres as categoryPadre>						 
    35							<#if i == 1 > 
    36								<h2>${categoryPadre.getTitle(locale)}</h2>											 
    37							</#if> 
    38							<#assign categoriaRecorrida = categoryPadre.getParentCategoryId() > 
    39							<#assign categorias = categorias +[categoryPadre] />							 
    40					</#list> 
    41				</#if> 
    42 
    43		</#list> 
    44		<#assign cont = 1 /> 
    45		<#list categorias?reverse as c> 
    46			<a class="a-info-cat a-info-cat-icon" href="${c.getCategoryId()}" alt="${c.getTitle(locale)}"> 									     
    47				<h3>${c.getTitle(locale)}</h3> 
    48				<#if cont != categorias?size > 
    49					<span class='glyphicon glyphicon-chevron-right'></span> 
    50				</#if> 
    51			</a> 
    52			<#assign cont = cont + 1 /> 
    53		</#list> 
    54		</div> 
    55		<#assign resultsCount = 0 /> 
    56		<ul class="row publicador-infociudad-list-result"> 
    57			<#if categoryChilds?has_content > 
    58				<#list categoryChilds as categoryChild> 
    59					<li class="col-md-6"> 
    60						<a class="a-info-cat" href="${categoryChild.getCategoryId()}" alt="${categoryChild.getTitle(locale)}"> 
    61							${categoryChild.getTitle(locale)} 
    62						</a> 
    63					</li> 
    64				</#list> 
    65				<#assign resultsCount = resultsCount + categoryChilds?size /> 
    66			</#if> 
    67			<#assign subcategories = catLocalService.getChildCategories(categoryIdLong) /> 
    68			<#assign x = [categoryIdLong]> 
    69			<#assign assetEntryQueryService = objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")> 
    70			<#assign assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") /> 
    71			<#assign search =assetEntryQuery.setAnyCategoryIds(x) /> 
    72			<#assign results = assetEntryQueryService.getEntries(assetEntryQuery)> 
    73			<#assign entries = results> 
    74			<#if entries?has_content> 
    75			    <#assign entriesCount = 0 /> 
    76				<#list entries as curEntry> 
    77					<#assign entryId = curEntry.getClassPK() /> 
    78					<#if entryId?? && entryId != 0 > 
    79					 <#if JournalArticleService.fetchLatestArticle(getterUtil.getLong(entryId),0)??> 
    80					     
    81						<#attempt> 
    82						    
    83                            <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(entryId),0) /> 
    84					 
    85						<#if article?? && JournalArticleService.isLatestVersion(article.getGroupId(), article.getArticleId(), article.getVersion())> 
    86							<#if article.getStructureId() == "46337"> 
    87								<#assign contiene = "false" /> 
    88								<#if subcategories?has_content> 
    89									<#list subcategories as subcategory> 
    90										<#if catLocalService.hasAssetEntryAssetCategory(curEntry.getEntryId(), subcategory.getCategoryId())?c == "true"> 
    91											<#assign contiene = "true" /> 
    92											<#break> 
    93										</#if> 
    94									</#list> 
    95								</#if> 
    96								<#if contiene == "false" > 
    97									<#assign rootElement = saxReaderUtil.read(article.getContentByLocale(locale)).getRootElement() /> 
    98									<#assign selector = saxReaderUtil.createXPath("dynamic-element[@name='titulo']") /> 
    99									<#assign titulo = selector.selectSingleNode(rootElement).getStringValue()?replace("\"", "") /> 
    100									<#if article.isExpired()?c == "false"> 
    101									    <#assign entriesCount = entriesCount + 1 /> 
    102									    <li class="col-md-6"> 
    103											<a class="a-info-cat" href="/-/${article.getUrlTitle(locale)}" alt="${article.getTitle(locale)}"> 
    104											${titulo} 
    105											</a> 
    106										</li> 
    107									</#if> 
    108								</#if> 
    109							</#if> 
    110						</#if> 
    111							<#recover> 
    112							<#continue> 
    113						</#attempt> 
    114						</#if> 
    115					</#if> 
    116				</#list> 
    117				<#assign resultsCount = resultsCount + entriesCount /> 
    118			</#if> 
    119		</ul> 
    120		<#if locale == "es_ES"> 
    121			<span class="pl-2">${resultsCount} documentos encontrados.</span> 
    122		<#else> 
    123			<span class="pl-2">${resultsCount} documents trobats.</span> 
    124		</#if> 
    125	</div> 
    126<#else> 
    127	<#if currentURL?contains("/-/") > 
    128		<#assign urlTitle = currentURL[currentURL?last_index_of("/-/")+3..] /> 
    129		<#if urlTitle?starts_with("asset_publisher")> 
    130			<#if urlTitle?last_index_of("?") == -1> 
    131				<#assign urlTitle = urlTitle[urlTitle?last_index_of("/content/")+9..] /> 
    132			<#else> 
    133				<#assign urlTitle = urlTitle[urlTitle?last_index_of("/content/")+9..urlTitle?last_index_of("?")-1] /> 
    134			</#if> 
    135		<#else> 
    136			<#if urlTitle?last_index_of("?") != -1> 
    137				<#assign urlTitle = urlTitle[0..urlTitle?last_index_of("?")-1] /> 
    138			</#if> 
    139		</#if> 
    140		<#if JournalArticleService.fetchLatestArticleByUrlTitle(groupId, urlTitle,0)??> 
    141			<#assign article = JournalArticleService.fetchLatestArticleByUrlTitle(groupId, urlTitle,0) /> 
    142		<#else> 
    143			<#assign article = JournalArticleService.fetchArticleByUrlTitle(groupId, urlTitle) /> 
    144		</#if> 
    145		<#if article??> 
    146			<@liferay_journal["journal-article"]     
    147					articleId=article.getArticleId() 
    148					groupId=article.getGroupId() 
    149			/> 
    150		</#if> 
    151	</#if> 
    152</#if> 
    153 
    154<script> 
    155	$(document).ready(function() { 
    156		var pageUrl = document.location.pathname; 
    157		if (!pageUrl.includes("/asset_publisher/dFPWlHhXaSZ7/")) { 
    158			$('#portlet_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_Qgz8ni2Ffjm5').hide(); 
    159
    160		$('a[href*="guia_accesibilidad.nsf"]').parent().hide(); 
    161		//$("h4:contains('Servicios/Actividades:')").parent().hide(); 
    162	}); 
    163</script> 
    S'ha produït un error mentre es processava la plantilla.
    The following has evaluated to null or missing:
    ==> JournalArticleService.fetchArticleByUrlTitle(groupId, urlTitle)  [in template "20115#20151#200340" at line 143, column 44]
    
    ----
    Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
    ----
    
    ----
    FTL stack trace ("~" means nesting-related):
    	- Failed at: #assign article = JournalArticleServi...  [in template "20115#20151#200340" at line 143, column 25]
    ----
    1<!--El publicador no hay que configurarlo con la estructura de infociudad, porque sino intenta cargar cada vez todas las fichas de infociudad--> 
    2<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] /> 
    3<@liferay_theme["defineObjects"] /> 
    4<#assign themeRootPath = themeDisplay.getPathThemeRoot() /> 
    5<#assign themeImagesPath = themeDisplay.getPathThemeImages() /> 
    6<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
    7<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
    8<#assign infoUrl = "/infociudad"/> 
    9<#assign infoUrlVal = "/infociutat"/> 
    10<#assign friendlyURL = themeDisplay.getScopeGroup().getFriendlyURL() /> 
    11<#assign currentURL = themeDisplay.getURLCurrent() /> 
    12<#if request.getParameter("p_r_p_categoryId")?has_content> 
    13 
    14	<#assign categoryId = request.getParameter("p_r_p_categoryId") /> 
    15	<#assign categoryIdLong = categoryId?number?long /> 
    16	<#assign categoryValueClass = staticUtil["com.liferay.portal.kernel.util.ClassResolverUtil"].resolveByPortalClassLoader("com.liferay.asset.kernel.model.AssetCategory") > 
    17	<#assign dynamicQueryFactory = staticUtil["com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"] > 
    18	<#assign dynamicQuery = dynamicQueryFactory.forClass(categoryValueClass) > 
    19	<#assign propertyFactory = staticUtil["com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil"]> 
    20	<#assign VOID = dynamicQuery.add(propertyFactory.forName("parentCategoryId").eq(categoryIdLong))> 
    21	<#assign results = catLocalService.dynamicQuery(dynamicQuery) > 
    22	<#assign categoryChilds = results /> 
    23	<div class="container publicador-infociudad"> 
    24		<#assign categoriaRecorrida = categoryIdLong > 
    25		<#assign x=10> 
    26		<div class="publicador-infociudad-header"> 
    27		<#assign categorias = [] /> 
    28		<#list 1..x as i> 
    29			<#assign dynamicQueryPadres = dynamicQueryFactory.forClass(categoryValueClass) > 
    30			<#assign VOID = dynamicQueryPadres.add(propertyFactory.forName("categoryId").eq(categoriaRecorrida))> 
    31			<#assign resultsPadres = catLocalService.dynamicQuery(dynamicQueryPadres) > 
    32			<#assign categoryPadres = resultsPadres /> 
    33				<#if categoryPadres?has_content > 
    34					<#list categoryPadres as categoryPadre>						 
    35							<#if i == 1 > 
    36								<h2>${categoryPadre.getTitle(locale)}</h2>											 
    37							</#if> 
    38							<#assign categoriaRecorrida = categoryPadre.getParentCategoryId() > 
    39							<#assign categorias = categorias +[categoryPadre] />							 
    40					</#list> 
    41				</#if> 
    42 
    43		</#list> 
    44		<#assign cont = 1 /> 
    45		<#list categorias?reverse as c> 
    46			<a class="a-info-cat a-info-cat-icon" href="${c.getCategoryId()}" alt="${c.getTitle(locale)}"> 									     
    47				<h3>${c.getTitle(locale)}</h3> 
    48				<#if cont != categorias?size > 
    49					<span class='glyphicon glyphicon-chevron-right'></span> 
    50				</#if> 
    51			</a> 
    52			<#assign cont = cont + 1 /> 
    53		</#list> 
    54		</div> 
    55		<#assign resultsCount = 0 /> 
    56		<ul class="row publicador-infociudad-list-result"> 
    57			<#if categoryChilds?has_content > 
    58				<#list categoryChilds as categoryChild> 
    59					<li class="col-md-6"> 
    60						<a class="a-info-cat" href="${categoryChild.getCategoryId()}" alt="${categoryChild.getTitle(locale)}"> 
    61							${categoryChild.getTitle(locale)} 
    62						</a> 
    63					</li> 
    64				</#list> 
    65				<#assign resultsCount = resultsCount + categoryChilds?size /> 
    66			</#if> 
    67			<#assign subcategories = catLocalService.getChildCategories(categoryIdLong) /> 
    68			<#assign x = [categoryIdLong]> 
    69			<#assign assetEntryQueryService = objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")> 
    70			<#assign assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") /> 
    71			<#assign search =assetEntryQuery.setAnyCategoryIds(x) /> 
    72			<#assign results = assetEntryQueryService.getEntries(assetEntryQuery)> 
    73			<#assign entries = results> 
    74			<#if entries?has_content> 
    75			    <#assign entriesCount = 0 /> 
    76				<#list entries as curEntry> 
    77					<#assign entryId = curEntry.getClassPK() /> 
    78					<#if entryId?? && entryId != 0 > 
    79					 <#if JournalArticleService.fetchLatestArticle(getterUtil.getLong(entryId),0)??> 
    80					     
    81						<#attempt> 
    82						    
    83                            <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(entryId),0) /> 
    84					 
    85						<#if article?? && JournalArticleService.isLatestVersion(article.getGroupId(), article.getArticleId(), article.getVersion())> 
    86							<#if article.getStructureId() == "46337"> 
    87								<#assign contiene = "false" /> 
    88								<#if subcategories?has_content> 
    89									<#list subcategories as subcategory> 
    90										<#if catLocalService.hasAssetEntryAssetCategory(curEntry.getEntryId(), subcategory.getCategoryId())?c == "true"> 
    91											<#assign contiene = "true" /> 
    92											<#break> 
    93										</#if> 
    94									</#list> 
    95								</#if> 
    96								<#if contiene == "false" > 
    97									<#assign rootElement = saxReaderUtil.read(article.getContentByLocale(locale)).getRootElement() /> 
    98									<#assign selector = saxReaderUtil.createXPath("dynamic-element[@name='titulo']") /> 
    99									<#assign titulo = selector.selectSingleNode(rootElement).getStringValue()?replace("\"", "") /> 
    100									<#if article.isExpired()?c == "false"> 
    101									    <#assign entriesCount = entriesCount + 1 /> 
    102									    <li class="col-md-6"> 
    103											<a class="a-info-cat" href="/-/${article.getUrlTitle(locale)}" alt="${article.getTitle(locale)}"> 
    104											${titulo} 
    105											</a> 
    106										</li> 
    107									</#if> 
    108								</#if> 
    109							</#if> 
    110						</#if> 
    111							<#recover> 
    112							<#continue> 
    113						</#attempt> 
    114						</#if> 
    115					</#if> 
    116				</#list> 
    117				<#assign resultsCount = resultsCount + entriesCount /> 
    118			</#if> 
    119		</ul> 
    120		<#if locale == "es_ES"> 
    121			<span class="pl-2">${resultsCount} documentos encontrados.</span> 
    122		<#else> 
    123			<span class="pl-2">${resultsCount} documents trobats.</span> 
    124		</#if> 
    125	</div> 
    126<#else> 
    127	<#if currentURL?contains("/-/") > 
    128		<#assign urlTitle = currentURL[currentURL?last_index_of("/-/")+3..] /> 
    129		<#if urlTitle?starts_with("asset_publisher")> 
    130			<#if urlTitle?last_index_of("?") == -1> 
    131				<#assign urlTitle = urlTitle[urlTitle?last_index_of("/content/")+9..] /> 
    132			<#else> 
    133				<#assign urlTitle = urlTitle[urlTitle?last_index_of("/content/")+9..urlTitle?last_index_of("?")-1] /> 
    134			</#if> 
    135		<#else> 
    136			<#if urlTitle?last_index_of("?") != -1> 
    137				<#assign urlTitle = urlTitle[0..urlTitle?last_index_of("?")-1] /> 
    138			</#if> 
    139		</#if> 
    140		<#if JournalArticleService.fetchLatestArticleByUrlTitle(groupId, urlTitle,0)??> 
    141			<#assign article = JournalArticleService.fetchLatestArticleByUrlTitle(groupId, urlTitle,0) /> 
    142		<#else> 
    143			<#assign article = JournalArticleService.fetchArticleByUrlTitle(groupId, urlTitle) /> 
    144		</#if> 
    145		<#if article??> 
    146			<@liferay_journal["journal-article"]     
    147					articleId=article.getArticleId() 
    148					groupId=article.getGroupId() 
    149			/> 
    150		</#if> 
    151	</#if> 
    152</#if> 
    153 
    154<script> 
    155	$(document).ready(function() { 
    156		var pageUrl = document.location.pathname; 
    157		if (!pageUrl.includes("/asset_publisher/dFPWlHhXaSZ7/")) { 
    158			$('#portlet_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_Qgz8ni2Ffjm5').hide(); 
    159
    160		$('a[href*="guia_accesibilidad.nsf"]').parent().hide(); 
    161		//$("h4:contains('Servicios/Actividades:')").parent().hide(); 
    162	}); 
    163</script>