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:
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:
Currently only times and no weekday or dates are considered for the timeline creation.
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.
<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.
ManifoldCF Jobs Timeline Plugin is released under the MIT license. See LICENSE for details.