Changeset 29281


Ignore:
Timestamp:
2014-09-15T11:34:27+12:00 (7 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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";
Note: See TracChangeset for help on using the changeset viewer.