+ else
+ {
+ addshowLink(linkMenu, target, urlLink.getUrl_prefix()); // link.substring(link.lastIndexOf("|")+1));
+ }
+ /*
+ * final String url;
+ *
+ * if (link.indexOf("$SEQUENCE_ID$") > -1) { // Substitute SEQUENCE_ID
+ * string and any matching database reference accessions String url_pref =
+ * link.substring(link.indexOf("|") + 1, link.indexOf("$SEQUENCE_ID$"));
+ *
+ * String url_suff = link.substring(link.indexOf("$SEQUENCE_ID$") + 13);
+ * // collect matching db-refs DBRefEntry[] dbr =
+ * jalview.util.DBRefUtils.selectRefs(seq.getDBRef(), new
+ * String[]{target}); // collect id string too String id =
+ * seq.getName(); if (id.indexOf("|") > -1) { id =
+ * id.substring(id.lastIndexOf("|") + 1); } if (dbr!=null) { for (int
+ * r=0;r<dbr.length; r++) { if (dbr[r].getAccessionId().equals(id)) { //
+ * suppress duplicate link creation for the bare sequence ID string with
+ * this link id = null; } addshowLink(linkMenu,
+ * dbr[r].getSource()+"|"+dbr[r].getAccessionId(), target,
+ * url_pref+dbr[r].getAccessionId()+url_suff); } } if (id!=null) { //
+ * create Bare ID link for this RUL addshowLink(linkMenu, target,
+ * url_pref + id + url_suff); } } else { addshowLink(linkMenu, target,
+ * link.substring(link.lastIndexOf("|")+1)); }
+ */