Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Install

Peter edited this page Aug 9, 2016 · 2 revisions

Terminal psql -h localhost -U postgres,

DROP DATABASE IF EXISTS issnl;
CREATE DATABASE issnl
WITH OWNER = postgres
        ENCODING = 'UTF8'
        TABLESPACE = pg_default
        LC_COLLATE = 'pt_BR.UTF-8'
        LC_CTYPE = 'pt_BR.UTF-8'
    CONNECTION LIMIT = -1
   TEMPLATE template0;
\q
git clone https://github.com/okfn-brasil/ISSN-L-Resolver.git
cd ISSN-L-Resolver
mkdir issnltables
...
  1. Login and download zip
  2. Check files unzip --vl ISSN-L-tables.zip
  3. cd issnltables; unzip ISSN-L-tables.zip 20160804.ISSN-to-ISSN-L.txt
  4. php issnltables2sql.php # only check/debug
  5. php issnltables2sql.php all | psql -h localhost -U postgres issnl
  6. psql -h localhost -U postgres issnl < lib.sql .. conferir erros...
Clone this wiki locally