String uidTagQueryParam = RequestUtil.getRequestParameterString(request.getParameter("uid"),""); if(uidTagQueryParam == null || uidTagQueryParam.isEmpty() == true) { uidTagQueryParam = RequestUtil.getRequestParameterString(request.getParameter("ppubid"),""); if(uidTagQueryParam == null || uidTagQueryParam.isEmpty() == true) { uidTagQueryParam = RequestUtil.getRequestParameterString(request.getParameter("pvideoid"),""); } } if( uidTagQueryParam.isEmpty() == false ){ final String haupiaRestBaseUrl = GlobalUtil.getHaupiaPathFromProperties(getServletContext(), "http://sch-prod-haupia-webserver-vip-01.schaeffler.cloud.net.de:8080/haupia/service"); final String searchQuery = "*"; final String preparedSearchName = "PsMediaLibrary"; Map parameterMap = new HashMap(); parameterMap.put("fq", new String[] { "document_id:" + HaupiaUtil.checkFqParam(uidTagQueryParam) }); final HaupiaResult mediaResult = PreparedSearch.execute(haupiaRestBaseUrl, preparedSearchName, searchQuery, parameterMap); List > mediaResultList = mediaResult.getPlainSearchResults(); String tempDataTitle = ""; String tempDataDescription = ""; String tempDataImage = ""; for(Map resultEntry : mediaResultList){ String dataType = HaupiaUtil.getResultValue("data_type_keyword", resultEntry); if("PressMedia".equals(dataType)){ tempDataTitle = HaupiaUtil.getResultValue("title", resultEntry); tempDataDescription = HaupiaUtil.getResultValue("data_press_media_description", resultEntry); tempDataImage = HaupiaUtil.getResultValue("image_normal_link", resultEntry); tempDataImage = !"".equals(tempDataImage) ? absImageUrlPrefix + tempDataImage : ""; if(!"".equals(tempDataTitle)){ openGraphTagTitle = tempDataTitle; } if(!"".equals(tempDataDescription)){ openGraphTagDescription = tempDataDescription; } if(!"".equals(tempDataImage)){ openGraphTagImage = tempDataImage; } }else if("Video".equals(dataType)){ tempDataTitle = HaupiaUtil.getResultValue("title", resultEntry); tempDataDescription = HaupiaUtil.getResultValue("data_video_description", resultEntry); tempDataImage = HaupiaUtil.getResultValue("data_preview_image", resultEntry); tempDataImage = (!"".equals(tempDataImage) && tempDataImage.indexOf("http") < 0) ? absImageUrlPrefix + tempDataImage : tempDataImage; if(!"".equals(tempDataTitle)){ openGraphTagTitle = tempDataTitle; } if(!"".equals(tempDataDescription)){ openGraphTagDescription = tempDataDescription; } if(!"".equals(tempDataImage)){ openGraphTagImage = tempDataImage; } }else if("Publication".equals(dataType)){ tempDataTitle = HaupiaUtil.getResultValue("title", resultEntry); tempDataDescription = HaupiaUtil.getResultValue("data_publication_introduction_text", resultEntry); tempDataImage = HaupiaUtil.getResultValue("data_preview_image", resultEntry); tempDataImage = !"".equals(tempDataImage) ? absImageUrlPrefix + tempDataImage : ""; if(!"".equals(tempDataTitle)){ openGraphTagTitle = tempDataTitle; } if(!"".equals(tempDataDescription)){ openGraphTagDescription = tempDataDescription; } if(!"".equals(tempDataImage)){ openGraphTagImage = tempDataImage; } } } } %> Schaeffler Engineering GmbH

Suchbegriff

Mediathek

Fokus-Themen

Produktkategorie

Branche

Unternehmenskategorie

Schaeffler verwendet Cookies, um Ihnen eine optimale Nutzung zu gewährleisten. Durch die weitere Nutzung dieser Website stimmen Sie der Verwendung von Cookies zu. Weitere Informationen

Akzeptieren