Skip to content

Commit

Permalink
Fix #3543: PDF button now handled by process
Browse files Browse the repository at this point in the history
  • Loading branch information
avernet committed Apr 4, 2018
1 parent 76db8ab commit aa2bc9e
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
xmlns:p="http://www.orbeon.com/oxf/pipeline"
xmlns:f="http://orbeon.org/oxf/xml/formatting">

<!-- 2015-08-07: This is probably here for backward compatibility only. -->
<!-- For backward compatibility only with buttons users manually place inside a `<fr:buttons>` inside the `<fr:view>` -->

<!-- Buttons that translate to fr:process-button -->
<!-- NOTE: Lower priority so that rules below match. -->
Expand All @@ -51,31 +51,4 @@
</fr:process-button>
</xsl:template>

<!-- NOTE: This is the detail page's PDF button (not the summary page's) -->
<xsl:template match="fr:pdf-button">
<!-- NOTE: Only the XForms document id is strictly needed. Keep app/form/document for filtering purposes. -->
<fr:href-button
xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
model="fr-persistence-model"
ref="instance('fr-triggers-instance')/pdf"
href=
"/fr/service/{
$app
}/{
$form
}/pdf/{{
string-join(
(
fr:document-id(),
xxf:document-id(),
frf:filenameOrNull('pdf')[. != '']
),
'/'
)
}}.pdf">
<xsl:copy-of select="@appearance | @ref | @class" />
<xf:label mediatype="text/html" model="fr-form-model" value="$fr-resources/buttons/pdf"/>
</fr:href-button>
</xsl:template>

</xsl:stylesheet>

0 comments on commit aa2bc9e

Please sign in to comment.