A small tool for manual entering data for the LobbyPlag project.
Needed Data: directive.json
, documents.json
, lobbyists.json
, lang.json
and the raw pdf files
##Requirements
modules for node js in path plagenter/
npm install
config = {
dataPathSource: '../data/', //path to documents.json & directive.json
dataPathDest: '../newdata/', //path where to save the result fragment json files
rawDataPathSource: '../raw/', //path to pdfs
port: 3000 //port for the server
};
Heads up: The paths MUST be declared relative.
run with node and enter data with the browser
proposal json fragments will be saved to the path set in config.dataPathDest
with an id as filename
e.g. b43f14c7005de400547b83f079130c0442432713.json
{
"doc": "some-draft-opinion_final.pdf", // filename of the proposals source
"doc_uid": "44c03f...", // uid of the proposals source
"page": "3", // the proposals page number in the source
"relations": ["h1"], // which parts of the directive the proposal relates to
"relationwhere": "direct", // position in the directive the proposal relates to ('direct' | 'after' | 'unknown')
"text": {
"old": "some old text", // the original text of the directive
"new": "some new text" // the proposed text
},
"uid": "48894d...", // uid of the proposal
"comment": false //if the text of the proposal is a comment (and not a directive change)
}
ctrl+S
Save Data
ctrl+D
Download Directive Part
ctrl+L
Clear both Textareas
alt+shift+left
Clear Left (Directive) Textarea
alt+shift+right
Clear Right (Proposal) Textarea
ctrl+right
Increase Page Nr
ctrl+left
Decrease Page Nr
ctrl+down
Select Next Directive Part
ctrl+up
Select Previous Directive Part
ctrl+alt+up
Select 10th. next Directive Part
ctrl+alt+up
Select 10th. previous Directive Part
alt+1
Focus Directive Combobox
alt+2
Focus Directive Position Combobox
alt+3
Focus Proposal Type Combobox
alt+4
Focus Document Combobox
alt+5
Focus Page Nr Input
alt+6
Focus Textarea Directive
alt+7
Focus Textarea Proposal