<div dir="ltr">Issues reported in this thread fixed. Now the display view works perfectly!<div><br><div>Fixes loop of images in row in array from display view: allows only images from the same media. closes <a href="https://github.com/numeroteca/pageonex/issues/103" target="_blank">#103</a><br>

<a href="https://github.com/numeroteca/pageonex/commit/8afd5629ba5ad39f03bfa9449282837bafad13c7" target="_blank">https://github.com/numeroteca/pageonex/commit/8afd5629ba5ad39f03bfa9449282837bafad13c7</a><div><br></div><div>
Fixes bar chart in display view: values are loaded in the array + layout modifications<br>
<div><a href="https://github.com/numeroteca/pageonex/commit/ed487dbebacba5c7e2ee3bc46c1c33fb07f43411" target="_blank">https://github.com/numeroteca/pageonex/commit/ed487dbebacba5c7e2ee3bc46c1c33fb07f43411</a><br></div></div>
</div></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 13, 2013 at 6:32 PM, pablo rey <span dir="ltr">&lt;<a href="mailto:pablo@basurama.org" target="_blank">pablo@basurama.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Amazing, Ed, now it&#39;s possible drawing and storing areas. That&#39;s a super-useful feature!<div><br>
<div>However, there is a problem with the display view:</div><div><ul><li>Each row dedicated to one newspaper contains front pages from all the newspaper in the thread. It does display the number of days that the thread has, but wrong images.</li>

<li>All the rows contain the same &#39;wrong&#39; images, but they link to the appropriate &#39;coding&#39; page.</li><li>The bar chart is not working, it says &quot;Not enough columns given to draw the requested chart&quot;</li>

</ul><div>See attached image.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>p</div></font></span></div></div></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 13, 2013 at 10:33 AM, Edward Platt <span dir="ltr">&lt;<a href="mailto:elplatt@media.mit.edu" target="_blank">elplatt@media.mit.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>This should be fixed now.  This is what was happening:  $(&#39;#codes&#39;).attr(&#39;value&#39;) gives the default value of an element and $(&#39;#codes&#39;).val() gives the current value.  The default value was empty, so none of the codes were getting assigned when the user selected a value.</div>


<div><br></div><div>-Ed</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Mar 13, 2013 at 9:18 AM, pablo rey <span dir="ltr">&lt;<a href="mailto:pablo@basurama.org" target="_blank">pablo@basurama.org</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi everyone,<div>Great to see that we are moving forward with the multiple area selection! I share with you some bugs, to see if you can reproduce them.</div>


<div><br><div>After I updated Ed&#39;s yesterday commits, I get the following errors. [I dumped the old data base and started from scratch].<div>
<br></div><div>I could create a thread. I coded, and although the areas were created, they were transparent. After saving and display I got: </div></div><div><br></div><div><br></div><div><b>ActiveRecord::RecordNotFound in CodingController#process_highlighted_areas</b><pre style="background-color:rgb(238,238,238);padding:10px;font-size:11px;white-space:pre-wrap;color:rgb(51,51,51);line-height:18px">
Couldn&#39;t find Code with id=</pre><p style="font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px;color:rgb(51,51,51)"><code>Rails.root: /home/pablo/sites/pageonex</code></p><div><a href="http://localhost:3000/pablo/qwer_qwer_qwer/process_highlighted_areas#" style="color:rgb(102,102,102);font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px" target="_blank">Application Trace</a><font color="#333333" face="helvetica, verdana, arial, sans-serif"><span style="line-height:18px"> | </span></font><a href="http://localhost:3000/pablo/qwer_qwer_qwer/process_highlighted_areas#" style="color:rgb(102,102,102);font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px" target="_blank">Framework Trace</a><font color="#333333" face="helvetica, verdana, arial, sans-serif"><span style="line-height:18px"> | </span></font><a href="http://localhost:3000/pablo/qwer_qwer_qwer/process_highlighted_areas#" style="color:rgb(102,102,102);font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px" target="_blank">Full Trace</a><div>



<pre style="color:rgb(51,51,51);font-family:helvetica,verdana,arial,sans-serif;font-size:11px;line-height:18px;background-color:rgb(238,238,238);padding:10px;white-space:pre-wrap"><code>app/controllers/coding_controller.rb:50:in `block in process_highlighted_areas&#39;
app/controllers/coding_controller.rb:46:in `each&#39;
app/controllers/coding_controller.rb:46:in `process_highlighted_areas&#39;</code></pre><div><br></div><div>In the parameters (I highlight in yellow):</div><div>
<pre style="padding:10px;font-size:11px;white-space:pre-wrap;color:rgb(51,51,51);line-height:18px"><span style="background-color:rgb(238,238,238)">... &quot;ha_name&quot;=&gt;[&quot;manila_standard_today-01-03-2013_1&quot;],
 &quot;img_id_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;manila_standard_today-01-03-2013&quot;,
 &quot;id_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;0&quot;,
</span><span style="background-color:rgb(255,255,0)"> &quot;code_id_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;&quot;,</span><span style="background-color:rgb(238,238,238)">
 &quot;x1_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;164&quot;,
 &quot;y1_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;152&quot;,
 &quot;x2_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;494&quot;,
 &quot;y2_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;481&quot;,
 &quot;width_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;330&quot;,
 &quot;height_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;329&quot;,
</span><span style="background-color:rgb(255,255,0)"> &quot;deleted_manila_standard_today-01-03-2013_1&quot;=&gt;&quot;&quot;,</span><span style="background-color:rgb(238,238,238)">
 &quot;commit&quot;=&gt;&quot;Save and Display&quot;,
 &quot;username&quot;=&gt;&quot;pablo&quot;,
 &quot;thread_name&quot;=&gt;&quot;zxvc&quot;}</span></pre></div><div><br></div><br>-----------------</div><div><br></div><div>From the thread index, when I open a thread I get:</div>
<div><br></div><div><b>NoMethodError in CodingController#display</b><pre style="background-color:rgb(238,238,238);padding:10px;font-size:11px;white-space:pre-wrap;color:rgb(51,51,51);line-height:18px">undefined method `&lt;&lt;&#39; for nil:NilClass</pre>


<p style="font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px;color:rgb(51,51,51)"><code>Rails.root: /home/pablo/sites/pageonex</code></p><div style="color:rgb(51,51,51);font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px">



<a href="http://localhost:3000/pablo/qwer_qwer_qwer/#" style="color:rgb(102,102,102)" target="_blank">Application Trace</a> | <a href="http://localhost:3000/pablo/qwer_qwer_qwer/#" style="color:rgb(102,102,102)" target="_blank">Framework Trace</a> | <a href="http://localhost:3000/pablo/qwer_qwer_qwer/#" style="color:rgb(102,102,102)" target="_blank">Full Trace</a><div>



<pre style="background-color:rgb(238,238,238);padding:10px;font-size:11px;white-space:pre-wrap"><code>app/controllers/coding_controller.rb:154:in `block in display&#39;
app/controllers/coding_controller.rb:148:in `each&#39;
app/controllers/coding_controller.rb:148:in `display&#39;</code></pre></div></div><h2 style="color:rgb(51,51,51);font-family:helvetica,verdana,arial,sans-serif;line-height:18px;margin-top:30px">Request</h2><p style="font-family:helvetica,verdana,arial,sans-serif;font-size:13px;line-height:18px;color:rgb(51,51,51)">



<b>Parameters</b>:</p><pre style="background-color:rgb(238,238,238);padding:10px;font-size:11px;white-space:pre-wrap;color:rgb(51,51,51);line-height:18px">{&quot;username&quot;=&gt;&quot;pablo&quot;,
 &quot;thread_name&quot;=&gt;&quot;qwer_qwer_qwer&quot;}</pre><br></div></div></div></div></div>
<br></div></div>_______________________________________________<br>
Pageonexdev mailing list<br>
<a href="mailto:Pageonexdev@mit.edu" target="_blank">Pageonexdev@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/pageonexdev" target="_blank">http://mailman.mit.edu/mailman/listinfo/pageonexdev</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Edward L. Platt<br></div><div>Civic Technology Programmer</div><div>MIT Center for Civic Media</div><div>E15-348</div>
<div><a href="http://civic.mit.edu" target="_blank">http://civic.mit.edu</a></div>
<div><a href="http://elplatt.com" target="_blank">http://elplatt.com</a></div><div><a href="http://twitter.com/edwardlplatt" target="_blank">@EdwardLPlatt</a></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>