Porttitor posuere
+Eget feugiat est leo tempor quam. Ut quis neque convallis magna consequat molestie.
+ {% endblock %} +diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96dc857 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# Below are common suffixes and things to be ignored by git. +# Feel free to add stuff here, e.g. temporary files that your editor +# creates. +# +*~ +*.pyc +*.db +*.db-journal +dummy* +/.pydevproject +/.project +/.settings +\#* +.#* +*_c.xml +*.swp +*.swo +.DS_Store +doc*/build/* +*.json +*.dat +*.log diff --git a/static/admin-media b/static/admin-media new file mode 120000 index 0000000..0f8f5b2 --- /dev/null +++ b/static/admin-media @@ -0,0 +1 @@ +/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/ \ No newline at end of file diff --git a/static/css/indigo.css b/static/css/indigo.css new file mode 100644 index 0000000..e347283 --- /dev/null +++ b/static/css/indigo.css @@ -0,0 +1,204 @@ +/*############################################################# +Name: Indigo +Description: A lightweight (7kb images), simple and professional design. +Date: 2006-07-27 +Author: Viktor Persson +URL: http://arcsin.se + +Feel free to use and modify but please provide credits. +#############################################################*/ + +/* standard elements */ +* { + margin: 0; + padding: 0; +} +a { + color: #F70; +} +a:hover { + color: #C60; +} +body { + background: #0094D6 url(/img/bg.gif) repeat-x; + color: #466; + font: normal 62.5% "Lucida Sans Unicode",sans-serif; + margin: 0; +} +input { + color: #555; + font: normal 1.1em "Lucida Sans Unicode",sans-serif; +} +p,cite,code,ul { + font-size: 1.2em; + padding-bottom: 1.2em; +} +h1 { + font-size: 1.4em; + margin-bottom: 4px; +} +code { + background: url(/img/bgcode.gif); + border: 1px solid #F0F0F0; + border-left: 6px solid #39F; + color: #555; + display: block; + font: normal 1.1em "Lucida Sans Unicode",serif; + margin-bottom: 12px; + padding: 8px 10px; + white-space: pre; +} +cite { + background: url(/img/quote.gif) no-repeat; + color: #666; + display: block; + font: normal 1.3em "Lucida Sans Unicode",serif; + padding-left: 28px; +} +h1,h2,h3 { + color: #06C; + padding-top: 6px; +} +/* misc */ +.clearer { + clear: both; +} + +/* structure */ +.container { + background: url(/img/topleft.gif) no-repeat; +} + +.header { + height: 92px; +} + +/* title */ +.title { + float: left; + padding: 28px 0 0 200px; +} +.title h1 { + color: #FFF; + font: normal 2em Verdana,sans-serif; +} + +/* navigation */ +.navigation { + float: left; + height: 92px; + margin-left: 24px; + padding: 0 16px; + width: 200px; +} +.navigation a { + color: #FFF; + float: left; + font: bold 1.2em "Trebuchet MS",sans-serif; + margin-top: 56px; + padding: 8px 18px; + text-align: center; + text-decoration: none; +} +.navigation a:hover { + background-color: #4A91C3; + color: #FFF; +} + +/* main */ +.main { + background: #FFF url(/img/bgmain.gif) no-repeat; + clear: both; + padding: 12px 12px 0 52px; +} + +/* main left */ +.sidenav { + float: left; + width: 14%; +} +.sidenav h1 { + border-bottom: 1px dashed #DDD; + color: #E73; + font-size: 1.2em; + height: 20px; + margin-top: 1.2em; +} +.sidenav ul { + margin: 0; + padding: 0; +} +.sidenav li { + border-bottom: 1px dashed #EEE; + list-style: none; + margin: 0; +} +.sidenav li a { + color: #777; + display: block; + font-size: 0.9em; + padding: 3px 6px 3px 18px; + text-decoration: none; +} +.sidenav li a:hover { + color: #111; + background: url(/img/nav_li.gif) no-repeat; +} + +/* content */ +.content { + float: left; + margin-right: 4%; + width: 79%; +} +.content .descr { + color: #C60; + margin-bottom: 6px; +} +.content li { + list-style: url(/img/li.gif); + margin-left: 18px; +} + +/* search form */ +.styled { + border: 3px double #E5E5E5; + padding: 2px 3px; +} +.button { + border: 1px solid #AAA; + margin-left: 5px; + padding: 2px 3px; +} + +/* footer */ +.footer { + background: #0094D6 url(/img/bgfooter.gif) repeat-x; + color: #C1DEF0; + font-size: 1.1em; + line-height: 40px; + text-align: center; +} +.footer a { + color: #FFF; + text-decoration: none; +} +.footer a:hover { + color: #FFF; + text-decoration: underline; +} + +table { +border-collapse:collapse; +} + +table, th, td { +border: 1px solid #CCC; +padding: 3px; +} + +th { background-color: #DDE; +} + +.row2 td { background-color: #EEE; +} diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..1d78c33 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/img/bg.gif b/static/img/bg.gif new file mode 100644 index 0000000..227f991 Binary files /dev/null and b/static/img/bg.gif differ diff --git a/static/img/bgcode.gif b/static/img/bgcode.gif new file mode 100644 index 0000000..6f99682 Binary files /dev/null and b/static/img/bgcode.gif differ diff --git a/static/img/bgfooter.gif b/static/img/bgfooter.gif new file mode 100644 index 0000000..4e383dc Binary files /dev/null and b/static/img/bgfooter.gif differ diff --git a/static/img/bgmain.gif b/static/img/bgmain.gif new file mode 100644 index 0000000..b7fe91f Binary files /dev/null and b/static/img/bgmain.gif differ diff --git a/static/img/li.gif b/static/img/li.gif new file mode 100644 index 0000000..4493196 Binary files /dev/null and b/static/img/li.gif differ diff --git a/static/img/nav_li.gif b/static/img/nav_li.gif new file mode 100644 index 0000000..a189dcc Binary files /dev/null and b/static/img/nav_li.gif differ diff --git a/static/img/quote.gif b/static/img/quote.gif new file mode 100644 index 0000000..fa145bb Binary files /dev/null and b/static/img/quote.gif differ diff --git a/static/img/topleft.gif b/static/img/topleft.gif new file mode 100644 index 0000000..510ee32 Binary files /dev/null and b/static/img/topleft.gif differ diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..e69de29 diff --git a/static/templates/404.html b/static/templates/404.html new file mode 100644 index 0000000..e69de29 diff --git a/static/templates/500.html b/static/templates/500.html new file mode 100644 index 0000000..e69de29 diff --git a/static/templates/dictionary/bytype.html b/static/templates/dictionary/bytype.html new file mode 100644 index 0000000..7d60f10 --- /dev/null +++ b/static/templates/dictionary/bytype.html @@ -0,0 +1,84 @@ +{% extends "indigo.html" %} +{% load i18n %} +{% block title %}VAMDC{% endblock %} +{% block addheader %} + +{% endblock %} +{% block headline %}VAMDC Dictionary by type{% endblock %} + +{% block content %} +
The columns' meaning is described below.
+ +{% for bloc in blocs %} ++Description of the columns in the table above: +
+ +Paste your dictionary into the field +below, including the variable assignment. Examples and more information below.
+ + + +
+
+RETURNABLES = {'AtomSymbol':'AtomState.species.name',
+'AtomIonCharge':'AtomState.species.ion',
+'RadTransWavelength':'RadTran.vacwave',
+'RadTransWavelengthUnit':'cm',
+}
+
+
+
+RESTRICTABLES = {'AtomSymbol':'species__name',
+'AtomNuclearCharge':'species__atomic',
+'RadTransWavelength':'vacwave'
+}
+
+
This tool warns you of +
This tool does not check whether the values you put into the right-hand-side match your data model or not. +
+{% endblock %} + diff --git a/static/templates/dictionary/index.html b/static/templates/dictionary/index.html new file mode 100644 index 0000000..0a45e78 --- /dev/null +++ b/static/templates/dictionary/index.html @@ -0,0 +1,44 @@ +{% extends "indigo.html" %} +{% load i18n %} +{% block title %}VAMDC{% endblock %} + +{% block headline %}VAMDC Dictionary{% endblock %} + +{% block content %} +The columns' meaning is described below.
+ +Keyword | Short Description | Long Description | Type | Constraint | Unit | * | Usage | XSAMS Block |
---|---|---|---|---|---|---|---|---|
{{ keyword.name }} | +{{ keyword.sdescr }} | +{{ keyword.ldescr }} | +{% if keyword.type %}{{ keyword.get_type_display }}{% endif %} | +{% if keyword.constr %}{{ keyword.constr }}{% endif %} | +{% if keyword.unit %}{{ keyword.unit }}{% endif %} | +{% if keyword.datatype %}*{% endif %} | +{% for use in keyword.usage.iterator %}{{ use.name }}, {% endfor %} | +{% if keyword.block %}{{ keyword.get_block_display }}{% endif %} |
+Description of the columns in the table above: +
+ +Note that the list below only contains the changes made through the admin interface, not direct changes in the database.
+ +When? | Who? | What was changed? | How? |
---|---|---|---|
{{ logentr.action_time }} | +{{ logentr.user.get_full_name }} | +{{ logentr.content_type.name }}: {{ logentr.object_repr }} | ++{% if logentr.is_addition %}Addition {% endif %} +{% if logentr.is_deletion %}Deletion {% endif %} +{{ logentr.change_message }} | + +{% endfor %} +
Below you can mark all the keywords that correspond to your data. When you press "submit", a file will be generated and downloaded to you that contains a first guess (you will have to edit it!) for dictionaries.py in your node.
+ + + + +{% endblock %} + diff --git a/static/templates/indigo.html b/static/templates/indigo.html new file mode 100644 index 0000000..21ab193 --- /dev/null +++ b/static/templates/indigo.html @@ -0,0 +1,119 @@ + + + + + + + + + +Eget feugiat est leo tempor quam. Ut quis neque convallis magna consequat molestie.
+ {% endblock %} +{% trans 'Welcome!' %}
+{% endblock %} + diff --git a/static/templates/webtools/index.html b/static/templates/webtools/index.html new file mode 100644 index 0000000..a052dcb --- /dev/null +++ b/static/templates/webtools/index.html @@ -0,0 +1,15 @@ +{% extends "indigo.html" %} +{% load i18n %} +{% block title %}VAMDC{% endblock %} + +{% block headline %}VAMDC Testsite{% endblock %} + +{% block content %} +This is a test site for various web applications for the VAMDC
+ +Please choose one of the links to the right.
+ + +Questions and feedback about any of this are welcome to thomas.marquart@fysast.uu.se.
+ +{% endblock %} diff --git a/static/templates/webtools/query.html b/static/templates/webtools/query.html new file mode 100644 index 0000000..dfa37ea --- /dev/null +++ b/static/templates/webtools/query.html @@ -0,0 +1,33 @@ +{% extends "indigo.html" %} +{% load i18n %} + +{% block content %} +The form below is in a non-working state at the moment and only intended for internal development.
+ +Please start by reading the how-to below!
+ +Then define your selection criteria:
+ + + +Below you find links for downloading the data from each node in either XSAMS for VO-Table XML-format (temporarily disabled). Note that these files are not pre-made, but generated on the fly via the TAP/sync interface.
+ + +{% for result in results %} + +Not yet operational!
+ + + +{% endblock %} + diff --git a/static/templates/webtools/xsams2sme.html b/static/templates/webtools/xsams2sme.html new file mode 100644 index 0000000..b16c2be --- /dev/null +++ b/static/templates/webtools/xsams2sme.html @@ -0,0 +1,26 @@ +{% extends "indigo.html" %} + +{% block title %} +Convert VAMDC-XSAMS format into CSV for SME +{% endblock %} +{% block headline %} +Convert VAMDC-XSAMS format into CSV for SME +{% endblock %} + + +{% block content %} +This tool (source code) takes data in XSAMS format and returns
+comma-separated values (CSV) in the format expected
+by spectroscopy made easy (SME).
You can give the input data either by uploading a file or pasting a URL here:
+ + +
+
+
+
+ Returnable
+
+ Restrictable
+
|
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
|
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
Data in Table:
+
+ |
+
+ |
+
---|---|
+ |
+ |
+ |
+
Fields in Table:
+
+ ID + | ++ name + | ++ datatype + | ++ unit + | ++ precision + | ++ width + | ++ ref + | ++ ucd + | ++ utype + | ++ arraysize + | ++ type + | ++ Description + | ++ Link + | +
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
Groups Defined in Table:
+
+ Group Name + | +
+ |
+ + Group Name + | +
+ |
+ |||
+ FIELDref + | +
+ |
+ |||||
+ PARAMref + | +
+ |
+ |||||
+ Attributes + | ++ ID + | ++ name + | ++ ref + | ++ ucd + | ++ utype + | ++ Description + | +
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ PARAMETERS + | +||||||
Parameters for Table:
Other Metadata for Table:
+ Attributes + | ++ ID + | ++ name + | ++ ref + | ++ ucd + | ++ utype + | ++ nrows + | +
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ Description + | +
+ |
+ |||||
+ Link + + | +||||||
+ |
+ |
+
Parameters for Resource:
Information for Resource:
Other Metadata for Resource:
+ Attributes + | ++ ID + | ++ name + | ++ utype + | ++ type + | +
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ Description + | +
+ |
+ |||
+ Coordinates System + | ++ ID + | ++ equinox + | ++ epoch + | ++ system + | +
+ + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ Link + + | +||||
+ |
+ |
+
Parameters for VOTable:
Information for VOTable:
Other Metadata for VOTable:
+ Document ID + | +
+ |
+ |||
+ Version + | +
+ |
+ |||
+ Description + | +
+ |
+ |||
+ Coordinates System + | ++ ID + | ++ equinox + | ++ epoch + | ++ system + | +
+ + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ Definition: Coordinates System + | ++ ID + | ++ equinox + | ++ epoch + | ++ system + | +
+ + | +
+ |
+
+ |
+
+ |
+
+ |
+
Data in Table:
+
+ |
+
+ |
+
---|---|
+ |
+ |
+ |
+
Fields in Table:
+
+ ID + | ++ name + | ++ datatype + | ++ unit + | ++ precision + | ++ width + | ++ ref + | ++ ucd + | ++ utype + | ++ arraysize + | ++ type + | ++ Description + | ++ Link + | +
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
Groups Defined in Table:
+
+ Group Name + | +
+ |
+ + Group Name + | +
+ |
+ |||
+ FIELDref + | +
+ |
+ |||||
+ PARAMref + | +
+ |
+ |||||
+ Attributes + | ++ ID + | ++ name + | ++ ref + | ++ ucd + | ++ utype + | ++ Description + | +
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ PARAMETERS + | +||||||
Parameters for Table:
Other Metadata for Table:
+ Attributes + | ++ ID + | ++ name + | ++ ref + | ++ ucd + | ++ utype + | ++ nrows + | +
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ Description + | +
+ |
+ |||||
+ Link + + | +||||||
+ |
+ |
+
Parameters for Resource:
Information for Resource:
Other Metadata for Resource:
+ Attributes + | ++ ID + | ++ name + | ++ utype + | ++ type + | +
+ |
+ |
+
+ |
+
+ |
+
+ |
+
+ Description + | +
+ |
+ |||
+ Coordinates System + | ++ ID + | ++ equinox + | ++ epoch + | ++ system + | +
+ + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ Link + + | +||||
+ |
+ |
+
Parameters for VOTable:
Information for VOTable:
Other Metadata for VOTable:
+ Document ID + | +
+ |
+ |||
+ Version + | +
+ |
+ |||
+ Description + | +
+ |
+ |||
+ Coordinates System + | ++ ID + | ++ equinox + | ++ epoch + | ++ system + | +
+ + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ Definition: Coordinates System + | ++ ID + | ++ equinox + | ++ epoch + | ++ system + | +
+ + | +
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
---|---|
+ |
+ |
+ |
+
Table Data: +
+
+ |
+
+ |
+
---|---|
+ |
+ |
+ |
+
Table Fields: +
++ ID + | ++ name + | ++ datatype + | ++ unit + | ++ precision + | ++ width + | ++ ref + | ++ ucd + | ++ utype + | ++ arraysize + | ++ type + | ++ Description + | ++ Link + | +
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
Table Data: +
+
+ |
+
+ |
+
---|---|
+ |
+ |
+ |
+
Table Fields: +
++ ID + | ++ name + | ++ datatype + | ++ unit + | ++ precision + | ++ width + | ++ ref + | ++ ucd + | ++ utype + | ++ arraysize + | ++ type + | ++ Description + | ++ Link + | +
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+