Browse Source

viz da search

cri 8 years ago
parent
commit
cdd999114c
5 changed files with 11 additions and 9 deletions
  1. 1 1
      Doc
  2. 1 1
      app/index.html
  3. 1 1
      app/index.html~
  4. 4 4
      app/scripts/main_list_item_id.js
  5. 4 2
      app/templates/list_item_id.txt

+ 1 - 1
Doc

@@ -30,5 +30,5 @@ widget/pagine differenti
 
 
 todo:
-in ricerche: escludi cartelle, se medatype:null
+in ricerche: escludi cartelle, se medatype:null: anche folderjail se serve
 

+ 1 - 1
app/index.html

@@ -62,7 +62,7 @@
     
 </body><div class="container">
 <p>Iframe list items con id:
-<pre>iframe class="embed" data-arkiwi-id="hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre>
+<pre>iframe class="embed" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre>
 </p>
 <iframe class="embed" name="arkiwi" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe>
 <div class="container-fluid" id="list" ><div class="row"></div></div>

+ 1 - 1
app/index.html~

@@ -64,7 +64,7 @@
 <p>Iframe list items con id:
 <pre>iframe class="embed" data-arkiwi-id="hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"</pre>
 </p>
-<iframe class="embed" name="arkiwi" data-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe>
+<iframe class="embed" name="arkiwi" data-arkiwi-id="title:hack" height="400px" width="99%" frameBorder='1' seamless='seamless' src="./wdg_list_item_id.html"></iframe>
 <div class="container-fluid" id="list" ><div class="row"></div></div>
 
 

+ 4 - 4
app/scripts/main_list_item_id.js

@@ -15,7 +15,7 @@
 $(document).ready(function () {
 
 	var iframe_id = $(window.frameElement).attr("data-arkiwi-id");
-		console.log(iframe_id);
+		//console.log(iframe_id);
 
 
 	
@@ -31,8 +31,8 @@ $(document).ready(function () {
     });*/
 
     arkiwi.search('Ampioraggio', function (result) {
-        console.log('Ricerca...');
-        console.log(result);
+      //  console.log('Ricerca...');
+      //  console.log(result);
 
     });
 
@@ -42,7 +42,7 @@ $(document).ready(function () {
         console.log('Lettura cartella...');
         console.log(result);
 		var pappone =   Mustache.render(template, result);
-		console.log(pappone);
+		//console.log(pappone);
             $(".row").append(pappone);
     });
 	   });

+ 4 - 2
app/templates/list_item_id.txt

@@ -1,15 +1,17 @@
 {{#items}}
   <div class="col-xs-6 col-sm-3">
     <div class="thumbnail">
-<h3>{{#item.title}}<small><b>{{item.title}}</b></small></h3>{{/item.title}}
+<h4>{{#item.title}}<small><b>{{item.title}}</b></small></h4>{{/item.title}}
 {{#item.player}}
  <audio controls>
   <source src="http://storage.arkiwi.org/{{item.identifier}}" type="audio/ogg">
   <source src="#" type="audio/mpeg">
 Your browser does not support the audio element.
 </audio> 
-<h4>{{#item.creator}}</h4><small>Creato da: <i>{{item.creator}}</i></small>{{/item.creator}}
 {{/item.player}}
+
+<h4>{{#item.creator}}</h4><small>Creato da: <i>{{item.creator}}</i></small>{{/item.creator}}
+
       <div class="caption">
         <p><i>{{item.description}}</i></p>
         <div class="tools">