Commit 95fc90c15f9841c598b17f9fe2ef2af46be86778

Authored by Tiago Guimarães
1 parent e65c68fed9
Exists in DSpace52++

item links open in new tab

dspace-jspui/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java
... ... @@ -543,7 +543,7 @@ public class ItemTag extends TagSupport
543 543  
544 544 if (isLink)
545 545 {
546   - out.print("<a href=\"" + values[j].value + "\">"
  546 + out.print("<a target=\"_blank\" href=\"" + values[j].value + "\">"
547 547 + Utils.addEntities(values[j].value) + "</a>");
548 548 }
549 549 else if (isDate)
... ... @@ -562,7 +562,7 @@ public class ItemTag extends TagSupport
562 562 || value.startsWith("ftps://"))
563 563 {
564 564 // Already a URL, print as if it was a regular link
565   - out.print("<a href=\"" + value + "\">"
  565 + out.print("<a target=\"_blank\" href=\"" + value + "\">"
566 566 + Utils.addEntities(value) + "</a>");
567 567 }
568 568 else
... ... @@ -592,7 +592,7 @@ public class ItemTag extends TagSupport
592 592 }
593 593  
594 594 String url = urn2baseurl.get(foundUrn);
595   - out.print("<a href=\"" + url
  595 + out.print("<a target=\"_blank\" href=\"" + url
596 596 + value + "\">"
597 597 + Utils.addEntities(values[j].value)
598 598 + "</a>");
... ...