Created
May 19, 2010 13:12
-
-
Save chriswk/406283 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File pasientBrosjyre = brochureIter.next(); | |
Element link = links.addElement(links.getQName("a")); | |
link.addText(processBrochureName(pasientBrosjyre.getName())); | |
String pasientBrosjyreFolder = bu.getString("no.ovitas.fk.pasientbrosjyre"); | |
StringBuilder href = new StringBuilder("/felleskatalogen/show.do?filename="); | |
href.append(pasientBrosjyreFolder.substring(pasientBrosjyreFolder.indexOf("/"))); | |
href.append("/"); | |
href.append(pasientBrosjyre.getName()); | |
link.addAttribute("href", href.toString()); | |
link.addAttribute("class", "pkvlink"); | |
link.addAttribute("target", "_new"); | |
if (brochureIter.hasNext()) { | |
links.addElement(links.getQName("br")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment