oehmiche / manifoldcf-jobs-timeline

Simple jQuery plugin providing an overview of all scheduled manifoldcf jobs.
MIT License
4 stars 0 forks source link

ManifoldCF Jobs Timeline

This jQuery Plugin provides an easy way to create an overview of all scheduled jobs of a ManifoldCF using the already existing simpleTime jQuery Plugin from eScience-Center.

The ManifoldCF UI does not provide an aggregated view of all jobs configured. - For this you have to select each job and check the scheduling tab:

ManifoldCF UI

The ManifoldCF Jobs Timeline fills this gap using the servlet-based JSON API, which is available under /mcf-api-service/json/ on default installation, and making it possible to integrate the job overview whereever you want:

manifoldcf timeline

Currently only times and no weekday or dates are considered for the timeline creation.

Usage

Requirements

Important Note You need to adjust the CORS headers of your ManifoldCF json api (provided by the mcf-api-service webapp) when using this plugin on a different domain.

Example

<head>
    <link rel="stylesheet" href="https://github.com/oehmiche/manifoldcf-jobs-timeline/blob/master/css/simpleTimeline.css" />
    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="https://github.com/oehmiche/manifoldcf-jobs-timeline/raw/master/js/resize.js"></script>
    <script src="https://github.com/oehmiche/manifoldcf-jobs-timeline/raw/master/js/simpleTimeline.js"></script>
    <script src="https://github.com/oehmiche/manifoldcf-jobs-timeline/raw/master/js/manifoldcfJobsTimeline.js"></script>
    ...
</head>
<body>      
    <div id="timeline"></div>

    <script>
        $(document).ready(function() {
            var options = {
                baseUrl: "http://localhost:8345"
            };
            $('#timeline').manifoldCfJobsTimeline(options);
        });
    </script>
</body>

Set the baseUrl pointing to your ManifoldCF server.

See example.html for a working example using static json-data.

Features

Open Issues

License

ManifoldCF Jobs Timeline Plugin is released under the MIT license. See LICENSE for details.