Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

profil adatokat rögtön kitöltjük térképnél

  • Loading branch information...
commit 49eb5c72d01e3c2379fdbd19b62bade44bda3e28 1 parent a69e522
@rubymood rubymood authored
View
10 app/controllers/site_search_controller.rb
@@ -310,13 +310,11 @@ def generate_network
generate_node(resource, params[:type])
# ha transaction kapcsolatait fedik fel
elsif params[:type] == 't'
- interorg_relation = InterorgRelation.find(params[:id])
- @this = interorg_relation.organization
- @target = interorg_relation.related_organization
- @explored_node = @this
+ @this = interorg_relation = InterorgRelation.find(params[:id])
+ @explored_node = interorg_relation.organization
if interorg_relation
- set_network_for_organization(@this)
- set_network_for_organization(@target)
+ set_network_for_organization(interorg_relation.organization)
+ set_network_for_organization(interorg_relation.related_organization)
end
end
# person és organization node-ok közötti kapcsolatok kigenerálása
View
40 app/views/site_search/index.dryml
@@ -55,43 +55,7 @@
<div class="clear"></div>
</div>
<div id="profil_content" style="#{params[:type] && params[:id] ? 'display: block' : 'display: none'}" class="tab_content">
- <div id="person_node" class="node_attributes">
- <ul>
- <li>Név: <span class="name"></span></li>
- <li>Ajnya neve: <span class="mothers_name"></span></li>
- <li>Születési év: <span class="born_at"></span></li>
- </ul>
- </div>
- <div id="organization_node" class="node_attributes">
- <ul>
- <li>Név: <span class="name"></span></li>
- <li>Cím: <span class="address"></span></li>
- <li>Alapítás éve: <span class="founded_at"></span></li>
- <li>Legfrissebb pénzügyi adatok</li>
- <li>Év: <span class="year"></span></li>
- <li>Forgalom: <span class="turnover"></span></li>
- <li>Mérleg: <span class="balance"></span></li>
- </ul>
- </div>
- <div id="litigation_node" class="node_attributes">
- <ul>
- <li>Név: <span class="name"></span></li>
- <li>Per kezdete: <span class="start_time"></span></li>
- <li>Per vége: <span class="end_time"></span></li>
- </ul>
- </div>
- <div id="o2o_edge" class="node_attributes">
- <ul>
- <li>Kapcsolat megnevezése: <span class="name"></span></li>
- <li>Kapcsolodó szervezet: <span class="org"></span></li>
- <li>Kapcsolodó szervezet: <span class="org"></span></li>
- <li>Időpont: <span class="issued_at"></span></li>
- <li>Információ forrás: <span class="source"></span></li>
- <li>Érték: <span class="value"></span></li>
- <li>Hirdetmény: <span class="contract"></span></li>
- <li></li>
- </ul>
- </div>
+ <node-card/>
<div id="p2p_edge" class="node_attributes">
<ul>
<li>Kapcsolat megnevezése: <span class="name"></span></li>
@@ -137,7 +101,7 @@
<input type="hidden" name="type" id="selected_elem_type" value="#{params[:type] == 't' ? 'o2o' : params[:type]}"/>
<input type="hidden" name="search_type" id="search_type"/>
<a style="#{params[:type] && params[:id] ? 'display: none' : ''}" href="#" id="load_node_relations">Kapcsolati háló felderítése</a><br />
- <a href="" id="load_node_details" style="display: none">Részletes információk</a>
+ <a href="" id="load_node_details" style="#{params[:type] && params[:id] ? 'display: block' : 'display: none'}">Részletes információk</a>
</div>
</div>
<div class="left" id="relationgraph"></div>
View
51 app/views/taglibs/front_site.dryml
@@ -919,3 +919,54 @@
</append-content-body:>
</show-page>
</def>
+
+<def tag="node-card" polymorphic/>
+<def tag="node-card" for="Person">
+ <div id="person_node" class="node_attributes" style="display: block">
+ <ul>
+ <li>Név: <span class="name"><view:name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Ajnya neve: <span class="mothers_name"><view:mothers-name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Születési év: <span class="born_at"><view:born-at if-blank="Nincs adat" no-wrapper/></span></li>
+ </ul>
+ </div>
+</def>
+
+<def tag="node-card" for="Organization">
+ <div id="organization_node" class="node_attributes" style="display: block">
+ <ul>
+ <li>Név: <span class="name"><view:name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Cím: <span class="address"><view:address if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Alapítás éve: <span class="founded_at"><view:founded-at if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Legfrissebb pénzügyi adatok</li>
+ <li>Év: <span class="year"><view:recent-financial-year.year if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Forgalom: <span class="turnover"><view:recent_financial_year.turnover if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Mérleg: <span class="balance"><view:recent_financial_year.balance_sheet_total if-blank="Nincs adat" no-wrapper/></span></li>
+ </ul>
+ </div>
+</def>
+
+<def tag="node-card" for="Litigation">
+ <div id="litigation_node" class="node_attributes" style="display: block">
+ <ul>
+ <li>Név: <span class="name"><view:name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Per kezdete: <span class="start_time"><view:start-time if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Per vége: <span class="end_time"><view:end-time if-blank="Nincs adat" no-wrapper/></span></li>
+ </ul>
+ </div>
+</def>
+
+<def tag="node-card" for="InterorgRelation">
+ <div id="o2o_edge" class="node_attributes">
+ <ul>
+ <li>Kapcsolat megnevezése: <span class="name"><view:name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Kapcsolodó szervezet: <span class="org"><view:organization.name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Kapcsolodó szervezet: <span class="org"><view:related-organization.name if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Időpont: <span class="issued_at"><view:issued-at if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Információ forrás: <span class="source"><view:source if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Érték: <span class="value"><view:value if-blank="Nincs adat" no-wrapper/></span></li>
+ <li>Hirdetmény: <span class="contract"><view with="&@this.contact || @this.tender" if-blank="Nincs adat" no-wrapper/></span></li>
+ <li></li>
+ </ul>
+ </div>
+</def>
+
Please sign in to comment.
Something went wrong with that request. Please try again.