[% INCLUDE 'help-top.inc' %]

CSV profiles

CSV Profiles are created to define how you would like your cart or list to export.

Add CSV Profiles

To add a CSV Profile

When you have entered in all of the information for you profile, simply click 'Submit' and you will be presented with a confirmation that your profile has been saved.

Modify CSV Profiles

Once you have created at least one CSV Profile an 'Edit profile' tab will appear next to the 'New profile' button.

Using CSV Profiles

Your CSV Profiles will appear on the export list or cart menu under the 'Download' button in both the staff client and the OPAC

Template Toolkit tags

[% TAGS [- -] %]

You can use Template Toolkit tags in order to build complex CSV files.

To access to the field list of the current record, you have to use the 'fields' variables (which is a hashref).

All fields of the record is content into this variable in a "field tag name" key.

In order to manage multi-valuated field and subfields, the field and subfields are stored into an arrayref

For example, the following MARC record:

008 - FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION
  @ 140211b xxu||||| |||| 00| 0 eng d

100 ## - MAIN ENTRY--PERSONAL NAME
  a Personal name My author

245 ## - TITLE STATEMENT
  a Title My first title
  a Title My second title
  b Remainder of title My remainder

245 ## - TITLE STATEMENT
  a Title My third title

will be stored into the following structure:

{
    fields => {
                008 => [
                        "140211b xxu||||| |||| 00| 0 eng d"
                ],
                100 => [
                            {
                                a => [
                                    "My author"
                                ]
                            }
                ]
                245 => [
                            {
                                a => [
                                    "My first title",
                                    "My second title"
                                ],
                                b => [
                                    "My remainder"
                                ]
                            },
                            {
                                a => [
                                    "My third title"
                                ]
                            }
                ]
    }
}

The indicators can be accessible using the 'indicator' key.

Example: [% fields.245.0.indicator.1 %] is the indicator 1 for the first 245 field.

Some examples:

Note that the authorized values won't be replaced by their descriptions.

[- TAGS default -]

See the full documentation for CSV Profiles in the manual (online).

[% INCLUDE 'help-bottom.inc' %]