Commit 2fcf047d authored by Alain Takoudjou's avatar Alain Takoudjou

erp5_web_mynij_search: fix import/export logo image with torrent

parent 89b1c975
...@@ -9,9 +9,11 @@ ...@@ -9,9 +9,11 @@
}) })
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
var state_dict = { var field_dict = options || {},
src: options.value.url, img_dict = field_dict.value || {},
alt: options.description || options.key state_dict = {
src: img_dict.url,
alt: field_dict.description || field_dict.key
}; };
return this.changeState(state_dict); return this.changeState(state_dict);
}) })
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>995.15798.64686.52838</string> </value> <value> <string>995.15802.3226.49885</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1633351322.93</float> <float>1633354895.07</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<ul> <ul>
<li> <li>
<a href="https://publisher.mynij.com" target="_blank" class="ui-btn ui-btn-icon-left ui-icon-upload upload" data-i18n="Contribute new Source">Contribute new Source</a> <a href="https://publisher.mynij.com" target="_blank" class="ui-btn ui-btn-icon-left ui-icon-upload upload" data-i18n="Contribute new Source">Contribute new Source</a>
<a href="https://store.mynij.com" target="_blank" class="ui-btn ui-btn-icon-left ui-icon-puzzle-piece store" data-i18n="Mynij Source Store">Mynij Source Store</a> <a href="https://store.mynij.com" class="ui-btn ui-btn-icon-left ui-icon-puzzle-piece store" data-i18n="Mynij Source Store">Mynij Source Store</a>
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>994.55236.64197.24132</string> </value> <value> <string>994.59702.18641.5717</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1632139577.05</float> <float>1633359969.66</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -378,6 +378,7 @@ ...@@ -378,6 +378,7 @@
title: doc.title, title: doc.title,
links: doc.links, links: doc.links,
description: doc.description, description: doc.description,
logo: doc.logo,
magnet_uri: torrent.magnetURI, magnet_uri: torrent.magnetURI,
status: "built" status: "built"
}) })
...@@ -534,7 +535,8 @@ ...@@ -534,7 +535,8 @@
.push(function (index_blob) { .push(function (index_blob) {
var doc = {title: index_doc.title, var doc = {title: index_doc.title,
links: index_doc.links, links: index_doc.links,
description: index_doc.description}, description: index_doc.description,
logo: index_doc.logo},
index_file_list = [index_blob]; index_file_list = [index_blob];
// Add index document to blob // Add index document to blob
index_file_list.push(new File( index_file_list.push(new File(
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1632998940.56</float> <float>1633361100.48</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
doc.links = source_list[i].links; doc.links = source_list[i].links;
doc.status = "not built"; doc.status = "not built";
doc.description = source_list[i].description || ""; doc.description = source_list[i].description || "";
doc.logo = source_list[i].logo || ""; doc.logo = source_list[i].logo;
promise_list.push(gadget.state.model_gadget.createIndexDoc(doc)); promise_list.push(gadget.state.model_gadget.createIndexDoc(doc));
} }
return new RSVP.Queue() return new RSVP.Queue()
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>995.8525.39594.2952</string> </value> <value> <string>995.15583.50925.35720</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1633338226.61</float> <float>1633353592.58</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
"type": "string" "type": "string"
} }
}, },
"additionalProperties": false, "additionalProperties": true,
"required": [ "required": [
"title", "title",
"description", "description",
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>995.15678.22615.13038</string> </value> <value> <string>995.15680.19915.42376</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1633344018.22</float> <float>1633360071.9</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment