Giter VIP home page Giter VIP logo

catmandu-fix-cmd's Introduction

Build Status Coverage Status Cypress.io tests

LibreCat - an institutional repository

LibreCat is a new institutional repository system developed by LibreCat Group which has as its key features:

  • institutional repository
  • publication list manager for reseachers
  • institutional research data archive.

The development started in 2013 in Bielefeld and was made available on GitHub from the start. Since 2015 the code is in production at Bielefeld. In 2016 Ghent University started using the cataloging backend in production.

Features

  • Cataloging of many record types: Book, Book (Editor), Book Chapter, Book Review, Conference Abstract, Conference (Editor), Conference Paper, Dissertation, Encyclopedia Article, Journal Article, Special Issue, Newspaper Article, Preprint, Report, Translation, Translation (Section), Working Paper, Thesis, Research Data, Project, Award, Research Group
  • Drag and drop upload of full-text publications
  • Copycat from DOI, PubMED, ArXiv and Web of Science
  • Google Scholar indexation support
  • Citation styles configurable from Zotero Style Repository
  • Full MathJAX Latex support to add mathematical formulas in abstracts and titles
  • Pluggable authentication modules
  • Delegate input and management to user others
  • Multilingual support
  • ElasticSearch indexing
  • Pluggable file store backend
  • Command line support using 'Catmandu'
  • OAI-PMH and SRU
  • REST / content negotiation
  • Signposting
  • The LibreCat is open source and shipped with the same license as the Perl language: http://dev.perl.org/licenses/

Install

See our Wiki at: https://github.com/LibreCat/LibreCat/wiki

catmandu-fix-cmd's People

Contributors

nichtich avatar nics avatar phochste avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

catmandu-fix-cmd's Issues

Use sockets as fixes

If any executable can be used as fixer, the fixer could also run as service to be communicated with via sockets:

  • Unix sockets (--fix filename) (use -S for test) - see IO::Socket
  • TCP Sockets (--fix tcp://server:port) - see IO::Socket::INET
  • Webservices (--fix http://server:port/path) - see HTTP::Tiny or any other HTTP client module
  • WebSockets (--fix ws://server:port/path) - see Protocol::WebSocket::Client

Sure serializing JSON, transmission, and parsing JSON takes some time but one could use transformation services as fixes independent from Catmandu. For instance a WebSocket fixer could also be used in a JavaScript web application.

Make part of Catmandu core

Using arbitrary executables as fixes is very useful because users of Catmandu can use any programming language of their choice. For this reason Catmandu::Fix::cmd should be part of Catmandu core, but without adding more possibly instable dependencies. Maybe this module can be modified to not use IO::Pty::Easy?

Whitelist commands

By environment variable or catmandu config value to ensure that only trusted executables are called.

Catmandu::Validator::cmd

validate by passing JSON (or another format) to an external program and check its return value.

Support in Catmandu::Env

If myscript is an executable, the Catmandu command line client should support this:

catmandu convert CSV --fix myscript to YAML < input.csv

to actually do this:

catmandu convert CSV --fix "cmd('myscript')" to YAML < input.csv

I already raised the issue at LibreCat/Catmandu#68

As far as I understand the code has to be modified here: https://github.com/LibreCat/Catmandu/blob/master/lib/Catmandu/Env.pm#L139

I would not add Catmandu::Fix::cmd to the core of Catmandu unless it uses a more stable module (IO::Pty::Easy is useful but has many failures on CPANTS).

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.