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( isNumericHaupiaID(uidTagQueryParam) == true) { uidTagQueryParam = uidTagQueryParam.trim(); final String haupiaRestBaseUrl = GlobalUtil.getHaupiaPathFromProperties(getServletContext(), "https://sch-prod-haupia2-vip.schaeffler.cloud.net.de:8181"); final String searchQuery = "*"; final String preparedSearchName = "PsMediaLibrary"; Map parameterMap = new HashMap(); parameterMap.put("fq", new String[] { "document_id:" + HaupiaUtil.checkFqParam(uidTagQueryParam) }); Logger logHtmlMetaData = Logger.getLogger("haupia_search"); final SchaefflerHaupia2Manager haupia2Manager = SchaefflerHaupia2Util.init(haupiaRestBaseUrl, "cms@schaeffler.cloud.net.de", "LvdhW4kNMf"); doHaupiaPreparedSearchLog(request,logHtmlMetaData, "ft_rwd_html_header_meta_data@RWD: " + haupiaPreparedSearchLog(haupiaRestBaseUrl,preparedSearchName,searchQuery,parameterMap)); SchaefflerHaupia2RequestBuilder requestBuilder = haupia2Manager.startNewRequest(preparedSearchName) .setParameterMap(parameterMap); SchaefflerHaupia2Response haupia2Response = requestBuilder.execute(searchQuery); String tempDataTitle = ""; String tempDataDescription = ""; String tempDataImage = ""; for(Haupia2SingleResult singleResult : haupia2Response){ String dataType = singleResult.getValue("data_type_keyword"); if("PressMedia".equals(dataType)){ tempDataTitle = singleResult.getValue("title"); tempDataDescription = singleResult.getValue("data_press_media_description"); tempDataImage = singleResult.getValue("image_normal_link"); 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 = singleResult.getValue("title"); tempDataDescription = singleResult.getValue("data_video_description"); tempDataImage = singleResult.getValue("data_preview_image"); if( tempDataImage.isEmpty() == false && tempDataImage.startsWith("//") == false && tempDataImage.startsWith("http") == false) { tempDataImage = absImageUrlPrefix + tempDataImage; } if(tempDataImage.startsWith("//") == true) { tempDataImage = "https:" + tempDataImage; } if(!"".equals(tempDataTitle)){ openGraphTagTitle = tempDataTitle; } if(!"".equals(tempDataDescription)){ openGraphTagDescription = tempDataDescription; } if(!"".equals(tempDataImage)){ openGraphTagImage = tempDataImage; } } else if("Publication".equals(dataType)){ tempDataTitle = singleResult.getValue("title"); tempDataDescription = singleResult.getValue("data_publication_introduction_text"); tempDataImage = singleResult.getValue("data_preview_image"); tempDataImage = !"".equals(tempDataImage) ? absImageUrlPrefix + tempDataImage : ""; if(!"".equals(tempDataTitle)){ openGraphTagTitle = tempDataTitle; } if(!"".equals(tempDataDescription)){ openGraphTagDescription = tempDataDescription; } if(!"".equals(tempDataImage)){ openGraphTagImage = tempDataImage; } } } } %> Schaeffler Engineering GmbH

Search term

Media Library

Focus topics

Product category

Sector

Category of company

Schaeffler applies cookies to secure an optimal use. With the further use of this website you accept the application of cookies. More Information

Accept