2011-03-09 19:56:55 +01:00
< html xmlns:py = "http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
< py:def function = "page_title" > Harvest Source Details< / py:def >
2013-05-17 16:58:11 +02:00
< py:def function = "page_heading" > Harvest Source Details< / py:def >
2011-03-09 19:56:55 +01:00
< py:def function = "optional_head" >
< link type = "text/css" rel = "stylesheet" media = "all" href = "/ckanext/harvest/style.css" / >
< / py:def >
2012-01-24 17:55:47 +01:00
2011-03-09 19:56:55 +01:00
< div py:match = "content" >
< div class = "harvest-content" >
2011-03-23 18:02:02 +01:00
< py:if test = "c.source" >
2012-01-10 18:24:05 +01:00
< div id = "harvest-source-actions" >
< img src = "/ckanext/harvest/images/icons/source_edit.png" alt = "Edit" / > < a href = "/harvest/edit/${c.source.id}" > Edit source< / a > |
2012-03-07 12:49:12 +01:00
< img src = "/ckanext/harvest/images/icons/source_refresh.png" alt = "Refresh" / > < a href = "/harvest/refresh/${c.source.id}" > Refresh source< / a > |
< a href = "/harvest" > Sources list< / a >
< / div >
2012-06-15 19:38:22 +02:00
< div py:if = "not c.source.active" class = "alert alert-block" > NB: This Harvest Source is Withdrawn. Therefore the Gemini XML will not be harvested again. However, any metadata that was previously harvested, remains in the catalogue.< / div >
2012-05-09 17:03:03 +02:00
< table id = "harvest-source-details" class = "table table-bordered table-condensed" >
2011-03-09 19:56:55 +01:00
< tr >
< th > ID< / th >
< td > ${c.source.id}< / td >
< / tr >
< tr >
< th > URL< / th >
< td > ${c.source.url}< / td >
< / tr >
2011-04-05 14:39:23 +02:00
< tr >
< th > Type< / th >
< td > ${c.source.type}< / td >
< / tr >
< tr >
2012-05-28 19:41:03 +02:00
< th > Withdrawn< / th >
< td > ${not c.source.active}< / td >
2011-04-05 14:39:23 +02:00
< / tr >
2012-02-15 12:49:59 +01:00
< tr py:if = "c.source.title" >
< th > Title< / th >
< td > ${c.source.title}< / td >
< / tr >
2011-03-09 19:56:55 +01:00
< tr >
< th > Description< / th >
< td > ${c.source.description}< / td >
< / tr >
2011-11-18 15:35:46 +01:00
< tr >
< th > Configuration< / th >
< py:if test = "c.source.config" >
< td > ${c.source.config}< / td >
< / py:if >
< py:if test = "not c.source.config" >
< td > -< / td >
< / py:if >
< / tr >
2012-03-06 17:01:43 +01:00
< tr py:if = "c.publisher_auth" >
2011-03-09 19:56:55 +01:00
< th > User< / th >
2011-04-05 14:39:23 +02:00
< td > ${c.source.user_id}< / td >
2011-03-09 19:56:55 +01:00
< / tr >
2012-03-06 17:01:43 +01:00
< tr py:if = "c.publisher_auth" >
2011-03-09 19:56:55 +01:00
< th > Publisher< / th >
2012-03-07 12:49:12 +01:00
< py:if test = "c.source.publisher_title" >
< td > ${c.source.publisher_title}< / td >
< / py:if >
< py:if test = "not c.source.publisher_title" >
2011-04-05 14:39:23 +02:00
< td > ${c.source.publisher_id}< / td >
2012-03-07 12:49:12 +01:00
< / py:if >
2011-03-09 19:56:55 +01:00
< / tr >
< tr >
< th > Created< / th >
< td > ${c.source.created}< / td >
< / tr >
2011-04-05 14:39:23 +02:00
< tr >
< th > Total jobs< / th >
2012-03-07 13:10:32 +01:00
< td > ${c.source.status.job_count}< / td >
2011-04-05 14:39:23 +02:00
< / tr >
2011-03-09 19:56:55 +01:00
< tr >
< th > Status< / th >
< td >
2012-01-24 17:55:47 +01:00
< a name = "errors" / > Last Harvest Errors: ${c.source.status.last_harvest_statistics.errors}< br / >
2011-03-10 14:53:52 +01:00
< py:choose >
2011-09-08 10:58:21 +02:00
< py:when test = "len(c.source.status.last_harvest_errors.gather)>0" >
< i > Gathering errors< / i >
2011-04-11 17:30:56 +02:00
< ul >
2011-09-08 10:58:21 +02:00
< li py:for = "error in c.source.status.last_harvest_errors.gather" >
< ?python
lines = error.split('\n')
?>
< div py:for = "line in lines" > ${line}< / div >
< / li >
2011-04-11 17:30:56 +02:00
< / ul >
2011-03-10 14:53:52 +01:00
< / py:when >
< / py:choose >
2011-09-08 10:58:21 +02:00
< py:choose >
< py:when test = "len(c.source.status.last_harvest_errors.object)>0" >
< i > Object errors< / i >
< ul >
< li py:for = "error in c.source.status.last_harvest_errors.object" >
2011-09-08 11:27:36 +02:00
< div > GUID < a href = "${g.site_url}/harvest/object/${error.object_id}" > ${error.object_guid}< / a > < / div >
2011-09-08 10:58:21 +02:00
< ?python
lines = error['message'].split('\n')
?>
< div py:for = "line in lines" > ${line}< / div >
< / li >
< / ul >
< / py:when >
< / py:choose >
2011-04-11 17:30:56 +02:00
Last Harvest Added: ${c.source.status.last_harvest_statistics.added}< br / >
Last Harvest Updated: ${c.source.status.last_harvest_statistics.updated}< br / >
Last Harvest: ${c.source.status.last_harvest_request} < br / >
2011-03-09 19:56:55 +01:00
Next Harvest: ${c.source.status.next_harvest}
< / td >
< / tr >
< tr >
< th > Total Errors< / th >
< td > ${c.source.status.overall_statistics.errors}< / td >
< / tr >
< tr >
2012-01-24 17:55:47 +01:00
< th > Total Datasets< / th >
2011-03-09 19:56:55 +01:00
< td > ${c.source.status.overall_statistics.added}< / td >
< / tr >
< tr >
2012-01-24 17:55:47 +01:00
< th > Datasets< / th >
2011-03-09 19:56:55 +01:00
< td >
2012-01-24 17:55:47 +01:00
< a name = "datasets" / >
< div > There could be a 10 minutes delay before these datasets (or changes to them) appear on
2011-03-09 19:56:55 +01:00
the site or on search results.< / div >
2011-06-14 11:27:48 +02:00
2012-01-24 17:55:47 +01:00
< p i18n:msg = "item_count" > There are < strong > ${c.page.item_count}< / strong > datasets.< / p >
2011-06-14 11:27:48 +02:00
${c.page.pager()}
< py:for each = "item in c.page.items" >
< div >
2012-01-24 17:55:47 +01:00
< a href = "/dataset/${item}" > ${item}< / a >
2011-03-09 19:56:55 +01:00
< / div >
2011-06-14 11:27:48 +02:00
< / py:for >
${c.page.pager()}
2011-03-09 19:56:55 +01:00
< / td >
< / tr >
< / table >
2011-03-23 18:02:02 +01:00
< / py:if >
2011-03-09 19:56:55 +01:00
< / div >
< / div >
2011-05-13 15:17:58 +02:00
< xi:include href = "../layout.html" / >
2011-03-09 19:56:55 +01:00
< / html >