--- a
+++ b/OSSEval/IMDBMovieApp/templates/IMDBMovieApp/search_results.html
@@ -0,0 +1,112 @@
+<!-- 
+# This Source Code Form of OSSEval is subject to the terms of the GNU AFFERO
+# GENERAL PUBLIC LICENSE, v. 3.0. If a copy of the AGPL was not
+# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
+#
+# OSSeval is powered by the SOS Open Source AGPL edition.
+#  The AGPL requires that you do not remove the SOS Open Source attribution and copyright 
+#  notices from the user interface (see section 5.d below).
+
+# OSSEval Copyright 2014 Bitergium SLL
+# SOS Open Source Copyright 2012 Roberto Galoppini
+# Author: Davide Galletti 
+-->
+
+                {% load staticfiles %}
+                <thead><tr><th></th><th>Title</th><th>Description</th></tr></thead>
+                <tbody>
+                {% for m in movies %}
+                  <tr>
+                    <td class="" valign="center">
+                      <a id="movie_instance" analysis_id="{{ analysis_id }}" imdb_id="{{ m.imdb_id }}" title="{{ m.title }}">
+                        <img src="{% static "images/add.jpg" %}" />
+                      </a>
+                      &nbsp;
+                      <a id="movie_instance_info" identifier="{{ m.imdb_id }}" target="_blank" href="http://www.imdb.com/title/{{ m.imdb_id }}"><img src="{% static "images/" %}imdb.jpg" /></a><br/>&nbsp;
+                    </td>
+                    <td class="" valign="center">{{ m.title  }}</td>
+                    <td class="truncateIt">{{ m.description }}</td>
+                  </tr>
+                {% endfor %}
+
+                  <script type="text/javascript">
+                  $("a#movie_instance_info").click(function(){ 
+                                                                $.post("{% url 'OSProjectForgeFromResultList_detail' %}",
+                                                                   {
+                                                                     csrfmiddlewaretoken: '{{ csrf_token }}', 
+                                                                     id_forge: $(this).attr("id_forge"),
+                                                                     identifier_in_forge: $(this).attr("identifier_in_forge")
+                                                                   },
+                                                                   function(data) {
+                                                                     var popup=window.open('','name','height=400,width=500');
+                                                                     popup.document.write('<PRE>');
+                                                                     popup.document.write(data);
+                                                                     popup.document.write('</PRE>');
+                                                                   }
+                                                                );
+                                                          });
+                  var clicked_item = null
+                  $("a#movie_instance").click(function(){ 
+                                                            clicked_item = $(this); 
+                                                            $.post("{% url 'IMDBMovie_add' %}",
+                                                               {
+                                                                 csrfmiddlewaretoken: '{{ csrf_token }}', 
+                                                                 analysis_id: clicked_item.attr("analysis_id"),
+                                                                 imdb_id: clicked_item.attr("imdb_id"),
+                                                                 title: clicked_item.attr("title")
+                                                               },
+                                                               function(data) {
+                                                                 location.reload(true);
+                                                               }
+                                                            );
+                                                          });
+                  </script>
+
+                  <div id="popup_osp_choice" title="Where to add the project">
+                  </div>
+
+                  
+                  <script type="text/javascript">
+                  $( "#popup_osp_choice" ).dialog({
+                    autoOpen: false, height: 300, width: 300, modal: true,
+                    buttons: {
+                      "Add to selected tab": function() {
+                        $.post("{% url 'OSProjectForge_add' %}",
+                           {
+                             csrfmiddlewaretoken: '{{ csrf_token }}', 
+                             id_selected_instance: id_selected_instance,
+                             analysis_id: clicked_item.attr("analysis_id"),
+                             id_forge: clicked_item.attr("id_forge"),
+                             datasource_id: clicked_item.attr("datasource_id"),
+                             identifier_in_forge: clicked_item.attr("identifier_in_forge"),
+                             project_name: clicked_item.attr("name")
+                           },
+                           function(data) {
+                             location.reload(true);
+                           }
+                        );
+                        $( this ).dialog( "close" );
+                      },
+                      "Add to new tab": function() {
+                        $.post("{% url 'OSProjectForge_add' %}",
+                           {
+                             csrfmiddlewaretoken: '{{ csrf_token }}', 
+                             id_selected_instance: -1,
+                             analysis_id: clicked_item.attr("analysis_id"),
+                             id_forge: clicked_item.attr("id_forge"),
+                             datasource_id: clicked_item.attr("datasource_id"),
+                             identifier_in_forge: clicked_item.attr("identifier_in_forge"),
+                             project_name: clicked_item.attr("name")
+                           },
+                           function(data) {
+                             location.reload(true);
+                           }
+                        );
+                        $( this ).dialog( "close" );
+                      }
+                    },
+                    close: function() {
+                    }
+                  });
+                  </script>
+