Bugfix for RelatedLink. An NPE was thrown in RelatedLinkEditForm for related links without an target URI.
git-svn-id: https://svn.libreccm.org/ccm/trunk@4329 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
6e6bed3468
commit
98ce77015b
|
|
@ -88,7 +88,7 @@ public class RelatedLinkEditForm extends RelatedLinkPropertyForm {
|
|||
if (getLinkSelectionModel().isSelected(ps)) {
|
||||
|
||||
rl = (RelatedLink) getLinkSelectionModel().getSelectedLink(ps);
|
||||
if (!rl.getTargetURI().equals("caption")) {
|
||||
if (!("caption").equals(rl.getTargetURI())) {
|
||||
//make this form visible because we are editing and its not a caption
|
||||
setVisible(ps, true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -663,7 +663,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//collected-volume">
|
||||
<xsl:param name="$contentitem-tree" tunnel="yes" />
|
||||
<xsl:param name="contentitem-tree" tunnel="yes" />
|
||||
|
||||
<xsl:if test="$contentitem-tree/collectedVolume">
|
||||
<xsl:apply-templates>
|
||||
|
|
@ -755,7 +755,7 @@
|
|||
<xsl:template match="content-item-layout//scipublications//proceedings">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$contentitem-tree/proceedings">
|
||||
<xsl:if test="contentitem-tree/proceedings">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
tunnel="yes"
|
||||
|
|
|
|||
Loading…
Reference in New Issue