Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Many tags and elements are used repeatedly to achieve desired formatting. This section will go over many common formatting codes in Rapido. Like many programming codes these tags need to be placed before text or element and the closing tag needs to be placed after the text or element.

Rows, Cells, and

...

Tables

The most common code in Alma Letters are the <tr>, <td>, and <th>, <br />, tags.

  • <tr> is a row. Use this when you want the nested information on its own line. Close a row with </tr>

  • <td> is a basic cell. This is a space to add standard text or images. Close a cell with </td>

  • <th> is a header cell. Text in this cell will be bold and centered. Close a header with </th>

  • <br /> is used as a line break in the text. This can stand alone without opening and closing.

  • <table> is used to create a table where the rows and cells will be contained. By default the table is invisible, but it can be coded with table formatting such as spacing, padding, and a border. Close the table with </table>

    • A table with formatting can look something like this: <table cellspacing="0" cellpadding="0" border="1">. This code would say there is no added spacing or padding, but there is a 1px border around each cell. Tables can be placed inside other tables to create a single cell with a border with inside cells with no borders.

Formatting

  • <font color="X"> is used to change the following text’s basic color. For example <font color="red"> will make the text red. Close with </font> when you want the text to return to the default color.

  • <b> is used to make the text bold. Close with </b>.

  • &#160 ; is used to add a permanent space in text. The space between 0 and ; will need to be removed to work. This web page translates the example into a literal space if added without a space breaking the code.

  • <center> is used to make the following text centered in the cell or document. Close with </center>

Pulling Information from XML

...

One of the most important codes for printed Letters are the barcode files. Technically you can use code to make anything a barcode with a barcode font, but those barcodes are often too big to scan with library scanners. Thankfully there are several codes for Alma specific barcode files generated in Alma. The following can be pasted into Letters to generate a barcode:

Item Barcode

The following code will add the barcode of the item received by the Borrowing Library. This is useful for Circulation Staff to check out the item.

Code Block
                              <tr>
                                 <td>
                                    <img src="cid:item_id_barcode.png" alt="Item Barcode" />
                                 </td>
                              </tr>

External ID (Full)

The following code will add a barcode for the full External Identifier. This version of the External ID may contain the 01// or 02// prefixes, which may prevent the barcode from scanning properly at the Borrowing Library. This is why this barcode works for articles and book chapters but not shipping items.

...