Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.36 KB

adding-conditional-grant-frameworks.md

File metadata and controls

48 lines (33 loc) · 2.36 KB
description
Uploading PDF-per-grant documents for the conditional grant frameworks

Uploading Conditional Grant Framework documents

These documents are listed on the Frameworks for Conditional Grants to Provinces, and ... to Municipalities dataset category pages.

Example documents in list

Upload per-Conditional Grant Framework documents

Conditional Grant frameworks are added to vulekamali once they are gazetted with the Division of Revenue Act.

Each framework must be added as an individual Dataset in the CKAN, with one resource, which is the framework as a PDF file. That means the framework pages must be split out from the gazette PDF. See below for an example of how to do that.

CKAN metadata:

  • Dataset title: {financial year} {grant name} Framework
    • e.g. 2018-19 Ilima-Letsema Grant Framework
  • Dataset name (URL "slug"): {financial-year}-{grant-name}-framework
    • e.g. 2018-19-ilima-letsema-grant-framework
    • This must be unique in the system, so it is important to include the financial year.
  • Resource title: {grant name}
    • e.g. Ilima-Letsema Grant Framework
  • Financial year: {financial year}
    • e.g. 2018-19
  • Group: Frameworks for Conditional Grants to Municipalities/Provinces

Adding a framework to a group after creating it and uploading the PDF resource

Example of splitting out framework pages

On Windows:

Various tools are available - it is possible with just the Google Chrome browser

On Linux:

  1. Make a list of framework name, first page, last page
    1. page number must be the PDF page number, not that of the gazette
    2. Change any slashes in the name to hyphens or something that makes sense but can safely be a filename
  2. Make a directory for grants towards municipalities, and another for provinces
  3. Use a tool like pdftk to split out the pages for each framework
    1. pdftk gazette.pdf cat 90-92 output "Ilima-Letsema Grant.pdf"