Giter VIP home page Giter VIP logo

inventory-template's Introduction

inventory-template

This script uses PHPExcel to generate a spreadsheet that can then be completed by publishers before uploading into the ckanext-dgu inventory tool.

By providing the name of a publisher, a secondary sheet will be added with a flat list of all sub departments, and this used as validation on the 'Owner' column.

Installation

You may require the PHP postgres driver, you can install this on ubuntu with:

sudo apt-get install php5-pgsql

Your apache config should (in the appropriate site config file) contain something like:

Alias /inventory/template /var/www/inventory-template
<Directory /var/www/inventory-template>
    FileETag MTime Size
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    SetEnv CKAN_CONFIG_FILE /path_to_ckan.ini
</Directory>

Installation requires that the apache configuration use SetEnv to specify the CKAN_CONFIG_FILE environment variable to point to a CKAN .ini file which contains the database settings.

The XLS File

The file generated by this tool has 4 columns, 'Title', 'Description', 'Owner' and 'Date to be published'. The first three columns are required and the publish date is entirely optional (as it may not apply to some items).

inventory-template's People

Contributors

rossjones avatar

Stargazers

 avatar

Watchers

Tom Mortimer-Jones avatar  avatar David Otton avatar Adrià Mercader avatar  avatar James Cloos avatar Leena Gupte avatar  avatar  avatar Jess Jones avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.