Lewati ke konten

Tutorial 4: Create a mammal voucher tag

Konten ini belum tersedia dalam bahasa Anda.

In this tutorial you design a two-sided voucher tag for mammal specimens and print it from your NAHPU records. The tag follows the LSUMZ mammal label: the front carries the locality, coordinates, preparation date, collector, field number, and standard measurements; the back carries the species name, the prepared parts, and a QR code that links the tag to its record.

You build two things:

  • a template, which describes one tag, 100 × 34 mm;
  • a print layout, which places 12 tags on a US Letter sheet, front and back.

You need:

  • a NAHPU project with a few complete mammal specimen records. For a useful preview, include a specimen with a long locality, one with several parts, and one with a measurement flagged as imprecise in its accuracy note;
  • a printer that prints on both sides, and the card stock you use for tags;
  • about 45 minutes.

Sketch the tag before you open the editor. Each line on the tag becomes one text element.

SideElementNAHPU sourceHow it prints
FrontLocalitygeography::country, stateProvince, county, municipality, localityIndonesia: Sumatera Selatan; Pagar Alam, Dempo Selatan, Kance Diwe, Bandar Jaya, Gunung Patah
FrontCoordinatescoordinate::decimalLatitude, decimalLongitude-4.20857, 103.31445
FrontMeasurementsmammalAttribute::totalLength, tailLength, hindFootLength, earLength, weight359-167-41-24≡216.7g
FrontPreparation datespecimen::prepDateAugust 30, 2023
FrontCataloger and field numberpersonnel::name, specimen::fieldNumberDewi Silvestris 2116
BackSpeciestaxonomy::genus, specificEpithetMaxomys inflatus
BackPartsspecimenPart::typeSkin, Skull, Skeleton, Liver, Lung, Cecum, Stomach
BackQR codespecimen::uuidA scannable link to the record

A thin vertical line on each side marks the margin where the string passes through the tag.

Layar besar

Layar kecil

  1. Open Settings > Template Editor, or Templates under the dashboard's Tools, and select the add icon or Create new in the options menu.
  2. Enter Mammal voucher tag as the Template name A. Add a short description, such as Two-sided LSUMZ-style mammal tag.
  3. Set the Record type B to Specimen.
  4. Under Sides C, choose 2 sided. NAHPU creates separate Front and Back designs. Select Create D.
  5. Set the template size to 100 mm wide and 34 mm high. This is the size of one tag, not of the sheet of paper. For other tag sizes, the Template Size Preset list includes Vertebrate Specimen Tag (Medium).
  6. Select Save template once now, so later edits have a saved starting point.

Before adding fields, select Select specimen for text preview in the toolbar and choose one of your specimens. Text elements then show that record's values as you work, instead of the raw placeholders.

Layar besar

Layar kecil

Make sure Front is selected in the switch below the canvas D. Add each element with Add text A, type or insert its content, then drag it into place. Use the grid and snapping to keep the left edges aligned.

  1. Select Add text and open the new element's text input.

  2. Select Insert Field. Set the taxon filter to mammals, then insert the geography fields and type the separators between them:

    [geography::country]: [geography::stateProvince]; [geography::county]; [geography::municipality], [geography::locality]

    Not every locality has a county. To avoid printing ; ; when it is empty, make the county and its separator conditional with Conditional output:

    [geography::country]: [geography::stateProvince]; [[if][geography::county!=""]=>"[geography::county]; "]][geography::municipality], [geography::locality]
  3. Set the font size to 8 pt.

  4. Set Max Width (mm) to about 70 so long localities wrap instead of running off the tag, and Max Height (mm) to about 12 to reserve three lines.

  5. Place the element at the top of the tag, about 25 mm from the left edge.

Use the full table::field keys that Insert Field writes. A short key such as [locality] can pick the wrong field when two tables share a name.

Add a second text element below the locality, at 8 pt:

[coordinate::decimalLatitude], [coordinate::decimalLongitude]

NAHPU uses the specimen's own coordinate. When the specimen has none and its site has exactly one coordinate, NAHPU uses the site's.

Standard mammal measurements print in a fixed order: total length, tail, hind foot, ear, and weight, with the three-line ≡ sign before the weight. A measurement noted as imprecise in the specimen's accuracy note prints in brackets, such as [9.5].

  1. Add a text element and insert the five measurement fields with their separators:

    [mammalAttribute::totalLength]-[mammalAttribute::tailLength]-[mammalAttribute::hindFootLength]-[mammalAttribute::earLength]≡[mammalAttribute::weight]g

    Insert the ≡ sign from Available Symbols in the Text Input dialog, which also lists the fields you can insert.

  2. Select a measurement, open Conditional output, and choose Conditional brackets. Set the condition field to mammalAttribute::accuracy. NAHPU fills in the matching measurement for you.

  3. Repeat for each of the five measurements. The text now reads:

    [[mammalAttribute::totalLength][mammalAttribute::accuracy~="totalLength"]]-[[mammalAttribute::tailLength][mammalAttribute::accuracy~="tailLength"]]-[[mammalAttribute::hindFootLength][mammalAttribute::accuracy~="hindFootLength"]]-[[mammalAttribute::earLength][mammalAttribute::accuracy~="earLength"]]≡[[mammalAttribute::weight][mammalAttribute::accuracy~="weight"]]g
  4. Align the element to the right with Align right and place it in the lower right of the tag.

On mammalAttribute::accuracy, ~= asks whether that measurement is flagged as imprecise. See Conditional output for the full syntax.

  1. Add a text element with [specimen::prepDate]. Under Text type, choose Dates, and under Format, choose Month DD, YYYY. Set the size to 8.5 pt and place it in the lower left.
  2. Add a text element with [personnel::name] [specimen::fieldNumber]. Align it right and place it in the lower right, below the measurements. On a specimen template, personnel fields are the specimen's cataloger.

Dates are stored as yyyy-mm-dd, so choose the format here rather than typing the date out.

Select Add line B, rotate it 90°, and place it about 20 mm from the left edge, across the height of the tag. The strip to its left stays clear for the string hole; keep the text elements to the right of the line.

Layar besar

Layar kecil

Select Back in the switch below the canvas D.

  1. Species A. Add a text element with [taxonomy::genus] [taxonomy::specificEpithet]. Turn on Italic, set the size to 10 pt, and choose a serif font, such as DejaVuSerif. Place it in the middle of the tag.
  2. Parts B. Add a text element with [specimenPart::type]. Under Text type, choose List Values, and under Format, choose Comma separated (A, B, C). Set the size to 7 pt and Max Width (mm) to about 70, and place it along the bottom.
  3. QR code C. Add a text element with [specimen::uuid] and turn on QR Code. Set QR Size (mm) to fit the top right corner, about 12 mm.
  4. String margin. Add the same vertical line about 20 mm from the left edge, so it lines up with the front.

The QR code stores the specimen's UUID, which stays the same when the field number or catalog number changes, so the tag always points to one record.

Select Select specimen for text preview and switch between your test specimens. Check that:

  • a long locality wraps within its box and does not overlap the coordinates;
  • a flagged measurement prints in brackets, and the others do not;
  • a specimen with several parts lists them all on the back;
  • a missing value leaves a clean gap. To print N/A instead, set No Content Placeholder on that element.

Select Template border to show a dashed cutting outline around each tag, then select Save template.

The template describes one tag. The print layout places tags on the sheet.

  1. Open Settings > Documents and switch to Print layouts.
  2. Create a new layout named Mammal voucher tags and add a description, such as 12 two-sided tags per Letter sheet.
  3. Under Page Setup, choose US Letter (8.5 x 11 in) and Portrait. Set the page padding to 8 mm at the top and bottom and 4 mm at the left and right.
  4. Under Template blocks, set the block's Template to Mammal voucher tag.
  5. Set Rows to 6, Cols to 2, and Copies to 1. Keep Auto-fill page off: tags need a fixed grid.
  6. Set Template padding (mm) to 1 on each side, so neighboring tags do not touch.
  7. Set Order by to the specimen's field number and Direction to Ascending, so the tags come out in the order you file them.

Two 100 mm tags with their padding need 212 mm, which fits the 216 mm width of a Letter sheet; six 34 mm rows fit its height with room to spare. A4 is 210 mm wide, so on A4 paper reduce the page padding or the tag width.

Layar besar

Layar kecil

  1. Open the project menu and select Export documents.
  2. Set Layout profile to Mammal voucher tags.
  3. Turn on Override template blocks. Under the block's Specimens Selection, select Select, then Clear all, and check the specimens to print. Without a selection, every specimen in the project prints.
  4. Select Generate preview B; on a phone, open the preview tab first. Check the first and last pages, both sides, and the tag with the longest locality.
  5. Enter a File name, such as patah-voucher-tags, and select Export documents C.
  6. Print one sheet on plain paper, on both sides. Hold it up to the light and check that each back lines up with its front.
  7. Print the full set on your tag stock, then cut along the outlines.

In Settings > Documents > Print layouts, export Mammal voucher tags. The export includes the template its block uses, so colleagues receive both in one file. A custom font is not included: install the same font on each device that prints the tag, or choose a replacement when NAHPU asks during import.

  • A template describes one tag; a print layout arranges tags on the sheet.
  • Insert Field writes full table::field keys that fill from each record.
  • Text type and Format turn stored values into printed dates and lists.
  • Conditional output brackets imprecise measurements automatically.
  • A QR code of the specimen UUID ties the physical tag to its record.
  • Previewing with long and incomplete records catches layout problems before you print.