From 2d412122742571b17a4d9a3bc79f20a199c223e6 Mon Sep 17 00:00:00 2001 From: anujag Date: Fri, 13 Jul 2012 13:00:54 +0530 Subject: CNL added --- gstudio/templates/gstudio/nodetype_detail.html | 216 +++++++++++++------------ 1 file changed, 111 insertions(+), 105 deletions(-) (limited to 'gstudio/templates') diff --git a/gstudio/templates/gstudio/nodetype_detail.html b/gstudio/templates/gstudio/nodetype_detail.html index ee7cfcb1..c6b86eb1 100644 --- a/gstudio/templates/gstudio/nodetype_detail.html +++ b/gstudio/templates/gstudio/nodetype_detail.html @@ -60,150 +60,156 @@ Name: {{ object.title }}
+ + CNL:
+ {% get_CNL object as cnlobj %} + {% for obj in cnlobj %} + {{obj}}
+ {% endfor %} - {% if object.get_rendered_nbh.plural %} - Plural Name: - {{object.get_rendered_nbh.plural}}
- {% endif %} - {% if object.get_rendered_nbh.altnames %} - Alternate names: - {{object.get_rendered_nbh.altnames}}
- {% endif %} - {% if object.get_rendered_nbh.type_of %} - Type of: - {% for typekey,typevalue in object.get_rendered_nbh.type_of.items %} - {{typekey}}; - {% endfor %}
- {% endif %} + + + + + + + + + + + + + + - - {% if object.get_rendered_nbh.member_of_metatypes %} + + - Member of Metatypes: - {% for mkey,mvalue in object.get_rendered_nbh.member_of_metatypes.items %} - {{mkey}}; - {% endfor %}
- {% endif %} + + + + + - - {% if object.get_rendered_nbh.contains_subtypes %} - Contains SubTypes: - {% for stkey,stvalue in object.get_rendered_nbh.contains_subtypes.items %} - {{stkey}}; - {% endfor %}
- {% endif %} + + + + + + + - - {% if object.get_rendered_nbh.contains_members %} + + - Contains Members: - {% for mkey,mvalue in object.get_rendered_nbh.contains_members.items %} - {{mkey}}; - {% endfor %}
- {% endif %} + + + + + - - {% if object.get_rendered_nbh.authors %} + + - Authors: + - {% endif %} + - {% for author in object.authors.all %} - - - {% if not forloop.last %}, {% endif %} - {% endfor %}
+ + + + + + - + - {% if object.get_rendered_nbh.priornodes %} + - Prior nodes: - {% for mkey,mvalue in object.get_rendered_nbh.priornodes.items %} - {{mkey}}; - {% endfor %}
- {% endif %} - - {% if object.get_rendered_nbh.posteriornodes %} + + + + + + + - Posterior nodes: - {% for mkey,mvalue in object.get_rendered_nbh.posteriornodes.items %} - {{mkey}}; - {% endfor %}
- {% endif %} - - {% if object.get_rendered_nbh.relations %} + + + + + + + - {% for relkey,relvalue in object.get_rendered_nbh.relations.items %} - {{relkey}}: - {% for relk, relv in relvalue.items %} - {{relk}}; - {% endfor %}
- {% endfor %} - {% endif %} - - {% if object.get_rendered_nbh.attributes %} + + + + + + + + + - {% for atkey,atvalue in object.get_rendered_nbh.attributes.items %} - {% if atvalue %} - {{atkey}}: - {% for atr in atvalue %} + + + + - {% for urlkey,urlvalue in object.get_edit_url_for_ats.items %} + - {% ifequal atr urlvalue %} - {{atr}}[edit] ; - {% endifequal %} - {% endfor %} - {% endfor %}
- {% endif %} - {% endfor %} - {% endif %} - - {% if object.get_rendered_nbh.leftroles %} + + + + + + + + + + - Left roles: + - {% for lrkey,lrvalue in object.get_rendered_nbh.leftroles.items %} - {{lrkey}}; - {% endfor %}
- {% endif %} - - {% if object.get_rendered_nbh.rightroles %} + + + + + + - Right roles: + - {% for rrkey,rrvalue in object.get_rendered_nbh.rightroles.items %} - {{rrkey}}; - {% endfor %}
- {% endif %} - + + + + + - {% if object.get_rendered_nbh.ats %} + - Subjecttype of: + - {% for atkey,atvalue in object.get_rendered_nbh.ats.items %} - {{atkey}}; - {% endfor %}
- {% endif %} + + + + - + {% if object.content %} Content: -- cgit v1.2.3-70-g09d2 From c9c5a92ff185e3e2c8b038d9420c22f007bc6ad8 Mon Sep 17 00:00:00 2001 From: nagarjun Date: Fri, 13 Jul 2012 13:18:54 +0530 Subject: minor modififications in graph, ovals removed for nbh nodes, some extra license blocks removed --- gstudio/4store_rdf_import.py | 15 ++ gstudio/fstore_rdf_import.py | 15 ++ gstudio/rdf.py | 49 ---- gstudio/templates/gstudio/skeleton.html | 407 -------------------------------- gstudio/views/graphs.py | 47 ---- gstudio/views/history.py | 17 ++ gstudio/views/nodetypes.py | 14 -- gstudio/views/quick_nodetype.py | 15 -- gstudio/views/sitemap.py | 15 -- gstudio/views/tags.py | 14 -- gstudio/views/trackback.py | 15 -- gstudio/views/userdashboard.py | 15 -- 12 files changed, 47 insertions(+), 591 deletions(-) (limited to 'gstudio/templates') diff --git a/gstudio/4store_rdf_import.py b/gstudio/4store_rdf_import.py index 5541895e..af07d94f 100644 --- a/gstudio/4store_rdf_import.py +++ b/gstudio/4store_rdf_import.py @@ -1,3 +1,18 @@ +# Copyright (c) 2011, 2012 Free Software Foundation + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import rdflib from rdflib.graph import ConjunctiveGraph as Graph diff --git a/gstudio/fstore_rdf_import.py b/gstudio/fstore_rdf_import.py index ea48548f..5e25a336 100644 --- a/gstudio/fstore_rdf_import.py +++ b/gstudio/fstore_rdf_import.py @@ -1,3 +1,18 @@ +# Copyright (c) 2011, 2012 Free Software Foundation + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + import rdflib from rdflib.graph import ConjunctiveGraph as Graph diff --git a/gstudio/rdf.py b/gstudio/rdf.py index 771490be..bb99a05b 100644 --- a/gstudio/rdf.py +++ b/gstudio/rdf.py @@ -14,55 +14,6 @@ # along with this program. If not, see . -# This project incorporates work covered by the following copyright and permission notice: - -# Copyright (c) 2009, Julien Fache -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: - -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# * Neither the name of the author nor the names of other -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED -# OF THE POSSIBILITY OF SUCH DAMAGE. - - -# Copyright (c) 2011, 2012 Free Software Foundation - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. - -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - - import rdflib from rdflib.graph import ConjunctiveGraph as Graph diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index 7c1c6986..45466cd6 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -1,411 +1,4 @@ -{% load gstudio_tags i18n %} -{% get_tags as nodetype_tags %} -{% load adminmedia grp_tags %} - - - - - - {% block blockbots %} - - {% endblock %} - {% block stylesheets %} - - {% if LANGUAGE_BIDI %} - - {% endif %} - - - {% endblock %} - {% block extrastyle %}{% endblock %} - {% block javascripts %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% block extrahead %}{% endblock %} - - {% endblock %} - - - - - - - - {% block meta %}{% endblock %} - - - - - - - - - {% block link %}{% endblock %} - {% block script %}{% endblock %} Gnowledge Studio - {% block title %}{% endblock %} - - - - - - - - - - - {% include "gstudio/_header.html" %} - -
-
- {% block content %}

The content block need to be overrided!

- {% endblock %} -
- - - - -
-
- -
- - - - - - - - -