Skip to content

Commit

Permalink
Revert previos commit and add fix for hyperlinks
Browse files Browse the repository at this point in the history
This reverts commit c889be0.
  • Loading branch information
marionb committed Dec 9, 2019
1 parent c889be0 commit e0b5417
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions print-apps/oereb/legalprovision.jrxml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<printWhenExpression><![CDATA[$F{Title} != null || $F{OfficialTitle} != null]]></printWhenExpression>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference" hyperlinkTarget="Blank">
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference">
<reportElement positionType="Float" x="0" y="13" width="300" height="12" isPrintWhenDetailOverflows="true" forecolor="#4C8FBA" uuid="010fa648-c53e-4fa5-82ab-ce9a63ed9bd5">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="local_mesure_unity" value="pixel"/>
Expand All @@ -47,12 +47,13 @@
<textFieldExpression><![CDATA[$F{TextAtWeb}]]></textFieldExpression>
<hyperlinkReferenceExpression><![CDATA[($F{TextAtWeb}.equals("") || $F{TextAtWeb} == null) ? null : $F{TextAtWeb}]]></hyperlinkReferenceExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference" hyperlinkTarget="Blank">
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference">
<reportElement x="190" y="0" width="110" height="10" uuid="179b7611-a023-4e6c-bd26-1f128b45058d">
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textFieldExpression><![CDATA[((ArrayList)$P{TOC_Appendices}.get($P{Theme_Text})).add($F{Title}.equals("") ? $F{OfficialTitle} : $F{Title}) ? "" : ""]]></textFieldExpression>
<hyperlinkReferenceExpression><![CDATA[((ArrayList)$P{TOC_Appendices}.get($P{Theme_Text})).add($F{Title}.equals("") ? $F{OfficialTitle} : $F{Title}) ? "" : ""]]></hyperlinkReferenceExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" bookmarkLevel="2">
<reportElement x="0" y="0" width="300" height="13" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" uuid="114a9f86-a715-4eb3-a8a3-5b17bad23c1a">
Expand Down
9 changes: 5 additions & 4 deletions print-apps/oereb/topicpage.jrxml
Original file line number Diff line number Diff line change
Expand Up @@ -370,20 +370,21 @@
</textElement>
<textFieldExpression><![CDATA[$R{CompleteLegendLabel}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="ContainerHeight" mode="Transparent" x="193" y="0" width="300" height="18" forecolor="#4C8FBA" uuid="a70d3e5c-bc32-4737-ba76-60f6cc56a8e2">
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference" hyperlinkTarget="Blank">
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="193" y="0" width="300" height="18" forecolor="#4C8FBA" uuid="a70d3e5c-bc32-4737-ba76-60f6cc56a8e2">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftIndent" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<box topPadding="2" bottomPadding="3"/>
<textElement verticalAlignment="Top" markup="html">
<textElement verticalAlignment="Top">
<font fontName="Cadastra" size="6"/>
<paragraph spacingBefore="0" spacingAfter="2"/>
</textElement>
<textFieldExpression><![CDATA[String.format("<a href=\"%1$s\">%1$s</a>", $F{legend})]]></textFieldExpression>
<textFieldExpression><![CDATA[($F{legend}.equals("") || $F{legend} == null) ? null : $F{legend}]]></textFieldExpression>
<hyperlinkReferenceExpression><![CDATA[($F{legend}.equals("") || $F{legend} == null) ? null : $F{legend}]]></hyperlinkReferenceExpression>
</textField>
</band>
<band height="47">
Expand Down
2 changes: 1 addition & 1 deletion print-apps/oereb/topicresponsibleoffice.jrxml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</textElement>
<textFieldExpression><![CDATA[$F{Name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference" hyperlinkTarget="Blank">
<textField isStretchWithOverflow="true" isBlankWhenNull="true" hyperlinkType="Reference">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="13" width="300" height="7" isPrintWhenDetailOverflows="true" forecolor="#4C8FBA" uuid="43b94d8c-f86f-417d-83ec-78e70dcb55f8">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.spacingBefore" value="px"/>
Expand Down

0 comments on commit e0b5417

Please sign in to comment.