Changeset 29281

Show
Ignore:
Timestamp:
15.09.2014 11:34:27 (5 years ago)
Author:
kjdon
Message:

fixed a bug where it only displayed one metadata element. Also make it display the collection in full view

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/berrybasket/berrycheckout.js

    r25728 r29281  
    161161        } 
    162162        li.appendChild(a); 
    163  
     163        li.appendChild(document.createTextNode(" ("+doc['collection']+")")); 
    164164        var metadata = ""; 
    165165        for (var metaItem in doc && metaItem != 'title'){ 
     
    386386        var doc = docList[i]; 
    387387        var url =root_url+"?a=d&c="+doc['collection']+"&d="+doc['name']+"\n"; 
     388        var metadata = ""; 
    388389        for (var metaItem in doc){ 
    389             var metadata = metaItem+": "+ doc[metaItem]+"\n"; 
     390            metadata += metaItem+": "+ doc[metaItem]+"\n"; 
    390391        } 
    391392        fulltext +=url+metadata+"\n";