Skip to main content

MTA example

Genebanks use different types of material transfer agreements (MTA) depending on the type of request, recipient and material distributed.

This guide will explain how to convert your existing MTA documents into templates suitable for use with GGCE.

Background

You should read the introduction to generating documents before proceeding with this guide.

Requirements

How to generate custom MTA documents with GGCE?

  1. Design the report template that matches your current MTA layout and content
  2. Upload the template to GGCE
  3. Use Generate PDF document in GGCE Distribution to create a document

Getting started

We prepared an example Jasper Reports Studio project for you to import into your Jasper workspace:

  1. Download Jasper-MTA-example.zip
  2. Open Jasper Reports Studio
  3. In Jasper's File menu click Import... and select Projects from Folder of Archive: Expand General category and select Import Projects from Folder or Archive
  4. Click Next then select the compressed project archive you dowloaded: Import preview
  5. Untick the first folder as shown above and only import the Eclipse project
  6. Click Finish

This will import the MTA project into your workspace:

Workspace with MTA project

Add GGCE data model

You must register GGCE data models with the project before you can proceed. See instructions

With MTA-example.jrxml opened, click the Preview tab to see the layout of the PDF:

First preview of PDF

Notice that the PDF has five pages and that the text on each page starts with "Page 1", "Page 2", etc. to help you with laying out your own MTA.

Return to the Design tab and update MTA title and the text of the first page. Try the Preview again to see your changes.

You are now ready to adapt the template to your needs:

  1. Update static text according to your MTA.
  2. Frequently Preview your changes and adjust the content as needed.

The template uses Static text components for long text. They are configured to use HTML Markup which allows for formatting of the text. HTML support in Jasper is limited; stick to using only basic HTML tags:

  • <p>Regular text...</p> for paragraphs
  • <b>bold</b> for bold text
  • <i>italic</i> for italic text
  • <ul><li>item1<li></ul> for bulleted lists of items
  • <ol><li>item1<li></ol> for numbered lists of items

Long text

Many MTA have many pages of narrative. Jasper does not allow static text to be higher than the size of the page.

Use detail bands

Each individual page must be declared as a separate Detail band as shown in the example.

Update and upload to GGCE

  1. Make small changes to the template.
  2. Upload the .jrxml files to GGCE often and test them with your data.
  3. Keep copies of your work or use git to manage changes.
Updating existing templates

After the initial upload of your template to GGCE you can upload individual files instead of executing the full export/import as described.