<%@ taglib uri="edicos.tld" prefix="edicos" %> <%@ page language="java" contentType="text/html; charset=UTF-8" import="de.gauss.base.exception.ExpandableException, de.gauss.lang.StringValue, de.gauss.lang.DateValue, de.gauss.lang.IntegerValue, de.gauss.lang.Sort, de.gauss.lang.KeySort, de.gauss.vip.api.lang.ObjectId, de.gauss.vip.api.admin.User, de.gauss.vip.api.lang.ObjectType, de.gauss.vip.api.lang.ObjectState, de.gauss.vip.api.object.FieldNames, de.gauss.vip.api.object.SimpleLink, de.gauss.vip.htmlclient.Util, de.gauss.vip.htmlclient.VIPHTMLClientRuntimeException, de.gauss.vip.htmlclient.VIPHTMLClientSupport, de.gauss.vip.i18n.Internationalization, de.gauss.vip.portalmanager.SessionBean, de.gauss.vip.portalmanager.VipObjectHandlerBean, de.gauss.vip.portalmanager.VipObjectBean, de.gauss.vip.portalmanager.VipUserBean, de.gauss.vip.portalmanager.VipProfile, de.gauss.vip.portalmanager.error.ExceptionDisplayBean, de.gauss.vip.repository.RepositoryMap, de.gauss.vip.repository.RepositoryIterator, de.gauss.vip.repository.RepositoryEntry, de.gauss.vip.repository.RepositoryEntryIterator, de.gauss.vip.portalmanager.ContentHandlerBean, de.gauss.vip.api.object.ObjectData, de.gauss.vip.util.AttributeName, de.gauss.lang.Value, java.net.URLEncoder, java.text.*, java.util.*, java.io.*, java.text.SimpleDateFormat, de.gauss.vip.portalmanager.application.UnknownApplicationException, de.gauss.lang.TupelMap, de.edicos.bi.util.*, de.edicos.bi.util.tags.navigation.*, de.edicos.util.*, de.gauss.vip.portalmanager.converter.XmlContentConverter, javax.mail.*, javax.mail.internet.*" %><%! public static String stringReplace(String src, String search, String replace) { StringBuffer result = new StringBuffer(src.length()); int pos1 = 0, pos2, searchLen = search.length(); while ( (pos2=src.indexOf(search, pos1)) != -1) { result.append(src.substring(pos1, pos2)); result.append(replace); pos1 = pos2 + searchLen; } result.append(src.substring(pos1)); return result.toString(); } %> <%! // public function for converting UTF->ISO public String convertutf8(String str_UTF8) { try { byte[] b_utf8 = str_UTF8.getBytes("UTF-8"); str_UTF8 = new String(b_utf8, "ISO-8859-1"); } catch (UnsupportedEncodingException e) { } return str_UTF8 ; } %> <% // // Initialisieren des Beans objBean.setRepositoryName("antistax_prod_33"); objBean.addDefaultAttribute("*"); RepositoryEntry thisObject = objBean.getEntry("2095"); TupelMap inheritedAttributes = EdicosUtil.getInheritedAttributes(objBean, thisObject, "homepage_oid, logo_homepage, link_corporate_website, corporate_website_label, nav_root_level, " + "logo, logo_right, page_nav_root_level, sitemap_label, " + "contacts_label, services_label, rightcolumn_content, rightcolumn_image01, rightcolumn_picture01, rightcolumn_picture02, rightcolumn_picture03, " + "copyright_label, termsofuse_label, termsofuse_oid, imprint_label, imprint_oid"); String currentOID = "2095", level1OID = "", level2OID = "", level3OID = "", mainOID = "", metaOID = "", footerlinkOID = "", rightTopicOID = ""; boolean level2active = false, nav1 = false, nav2 = false, level1active = false, level3active = false, level4active = false, level2 = false, level3 = false; String currentLanguageString=""; int currentLanguage = -1; boolean isMeta = false, isFooter = false; // used for converting RepositoryEntry.getValue("XX") String testString = ""; Object obj1 = null; /* 0: UPGRADE 1: DE 2: BE_FR 3: BE_NL 4: COM 5: AT 6: UK 7: NL 8: IT 9: CZ 10:CH_DE 11:CH_FR 12:CH_IT 13: NL2 */ String [] productTitleMapping = {"ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®", "ANTISTAX®"}; String [] globalWebsiteMapping = {"Global Website", "Globale Website", "Global Website", "Globale Website", "Global Website", "Globale Website", "Global Website", "Internationale Website", "Sito Internazionale", "Celosvĕtové internetové stránky", "Globale Website", "Global Website", "Sito Internazionale", "Internationale Website"}; String [] copyRightMapping = { "Copyright © 2005 Boehringer Ingelheim GmbH, Germany  ", "© 2005 Boehringer Ingelheim Pharma GmbH & Co. KG  ", "Copyright © 2005 Pharmaton S.A, Belgium", "Copyright © 2005 Pharmaton S.A, Belgium", "Copyright © 2005 Boehringer Ingelheim GmbH, Germany  ", "Copyright © 2005 Boehringer Ingelheim Austria GmbH, Österreich", "Copyright © 2005 Boehringer Ingelheim Ltd, United Kingdom  ", "Copyright © 2005 Boehringer Ingelheim bv, Alkmaar     
KOAG/KAG toelatingsnummer 17-0205-0188             ", "Copyright © 2005 Boehringer Ingelheim Italia S.p.A.     ", "Copyright © 2005 Boehringer Ingelheim bv, Alkmaar     "}; String [] meta2Mapping = {"Imprint | Terms of use | Sitemap", "Impressum | Nutzungshinweise | Pflichttext | Sitemap", "Imprint | Terms of use", "Imprint | Terms of use", "Imprint | Terms of use | Sitemap", "Impressum | Nutzungshinweise | Warnhinweis | Sitemap", "Imprint | Terms of use | Sitemap", "Gebruiksvoorwaarden | Sitemap", "Imprint | Sitemap", "Gebruiksvoorwaarden | Sitemap",}; String [] companyURLMapping = {"", "http://www.boehringer-ingelheim.de", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.at", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.nl", "http://www.boehringer-ingelheim.it", "http://www.boehringer-ingelheim.cz", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.com", "http://www.boehringer-ingelheim.nl"}; String [] homepageURLMapping = {"1425","1382","1392","1395","1425","1853","2640","2288","1639","3050","3702","3705","3708","4448"}; String [] printPageURLMapping = {"1420","462","1393","1396","1420","1848","2645","2292","1634","3054","3704","3706","3711","4441"}; String [] sendPageURLMapping = {"2097","852","1394","1397","2097","1854","2644","2291","1640","274","3703","3707","3710","4443"}; String [] logoGifMapping = {"787","787","787","787","787","787","787","787","787","787","3718","3718","3718","787"}; String [] claimGifMapping = {"2070","274","1398","1404","2070","2331","2326","2337","2726","3053","3717","3716","3715","2337"}; String [] homelogoGifMapping = {"803","803","803","803","803","803","803","803","803","3046","3722","3722","3722","803"}; String [] packshotGifMapping = {"2071","224","1402","1403","2071","2335","2330","2338","2727","3055","3723","3723","3723","2338"}; String [] contentLeftGifMapping = {"764","764","1400","1400","4745","2333","2328","2664","2730","4745","3720","3720","3720","2664"}; String [] contentRightGifMapping = {"1385","1385","1401","1401","4744","2334","2329","2665","2729","3048","3721","3721","3721","2665"}; String [] contentBottomGifMapping = {"219","219","1399","1399","4743","2332","2327","2663","2728","3049","3719" ,"3719","3719","2663"}; String [] contactlogoGifMapping = {"246","246","246","246","246","246","246","246","246","3047","3724","3724","3724","246"}; String [] glossaryTitleMapping = {"Glossary:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:","Glossar:"}; String [] headlineGifMapping = {"2687","2684","2684","2684","2684","2684","2684","2684","2684","2684","2684","2684","2684",""}; String [] precontactclaimGifMapping = {"244","244","244","244","244","244","244","244","244","244","244","244","244","244"}; String [] printlogoGifMapping = {"258","258","258","258","258","258","258","258","258","3056","3725","3725","3725","258"}; String [] loginURLMapping = {"274","529","274","274","274","1858","274","2677","1644","4442","","","",""}; /************* */ // get entry of current vip-content in Repository RepositoryEntry actualTopic = objBean.getEntry(currentOID), home=null, printp =null, sendp =null, logogif=null, homelogogif=null, claimgif =null, packshotgif = null, contentleftgif= null, contentrightgif =null, contentbottomgif =null, contactlogogif=null, headline=null, precontactclaimgif=null, printlogogif=null, login=null; // get a RepositoryMap with all subtopics from current entry RepositoryMap actualMap = objBean.getTopicsToRoot(actualTopic); // create a iterator and sort the map-entries by level RepositoryIterator oidLevel = actualMap.sort(new KeySort("inverse-level",KeySort.DESCENDING)); // the first oid isnt needed - it represents the Root Level if(oidLevel.hasNext()) { oidLevel.nextEntry(); if(oidLevel.hasNext()) { // check for language RepositoryEntry language = oidLevel.nextEntry(); currentLanguageString = language.getValue("title").toString(); // search for current laguage id String [] languageMapping = {"upgrade","de","be_fr","be_nl","com","at","uk","nl","it","cz","ch_de","ch_fr","ch_it","nl2"}; for (int i=0; i <%= productTitleMapping[currentLanguage] %> - Local Sites <% } else { %><%= errMsg %><% } %>