Data only resource types

Data only resources are resources that do not have an associated file. These resources contain metadata and can be used to store records or data that does not directly relate to a digital asset.

Generating PDFs

Data only resources can be configured to provide a PDF of metadata. These are based on templates that must be set up by the system administrator and placed in the filestore under system/pdf_templates as an HTML file. HTML2PDF is required by ResourceSpace to create PDFs.

An example template is in the template folder of a clean checkout of ResourceSpace. Custom templates can be used and should be in HTML with the following wildcards supported:

[%appliationname%]
Name of the ResourceSpace system
[%baseurl%]
URL of the ResourceSpace system in full
[%baseurl_short%]
URL of the ResourceSpace system without the base domain
[%filename%]
Name of the PDF that is being generated
[%date%]
Date at time of PDF generation
[%resource_type_name%]
Resource type of the Resource
[%metadatafield-8:title%]
Title of a metadata field, replace 8 with the reference of the required field.
[%metadatafield-8:value%]
Value of a metadata field, replace 8 with the reference of the required field.
[page_cu]
Current page number
[page_nb]
Number of pages