Changeset 27021 for main/trunk


Ignore:
Timestamp:
2013-03-07T15:11:32+13:00 (11 years ago)
Author:
ak19
Message:

Now depositdspace uses dc meta fields instead of ds meta fields for those fields that are common to both metadata sets, and ds meta fields are only used for those fields that are unique to the ds meta set (Series, Sponsorship, Abstract).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/depositdspace.dm

    r27019 r27021  
    278278  \{
    279279      var newstr = str.replace(/\\%2F/g,"/");
    280       newstr = newstr.replace(/\\%27/g,"'");
     280      newstr = newstr.replace(/\\%27/g,"'"); // most important replacement when reading array metavalues back from db
    281281      newstr = newstr.replace(/\\%22/g,"\\\"");
    282282      newstr = newstr.replace(/\\%26/g,"&");
     
    15551555
    15561556
    1557   hidden\_field("ds.Title",      "_di1ds.Title_");
    1558   hidden\_field("ds.Type",       "_di1ds.Type_");
    1559   hidden\_field("ds.Language",   "_di1ds.Language_");
     1557  hidden\_field("dc.Title",      "_di1ds.Title_");
     1558  hidden\_field("dc.Type",       "_di1ds.Type_");
     1559  hidden\_field("dc.Language",   "_di1ds.Language_");
    15601560  hidden\_field("ds.Abstract",   "_di1ds.Abstract_");
    15611561  hidden\_field("ds.Sponsorship","_di1ds.Sponsorship_");
    1562   hidden\_field("ds.Description","_di1ds.Description_");
     1562  hidden\_field("dc.Description","_di1ds.Description_");
    15631563
    15641564  var authornum = "_di1authornum_";
     
    15661566  var authorarray = comma\_and\_special_chars\_decode("_di1authorarray_");
    15671567  var combauthor = combine\_escauthor(authorarray,authornum,authorsplit);
    1568   hidden\_multifield("ds.Author",combauthor);
     1568  hidden\_multifield("dc.Creator",combauthor);
    15691569
    15701570  var seriesrepnum = "_di1seriesrepnum_";
     
    15781578  var idarray = comma\_and\_special_chars\_decode("_di1identifierarray_");
    15791579  var combid = combine\_id(idarray,idnum,idsplit);
    1580   hidden\_multifield("ds.Identifier",combid);
     1580  hidden\_multifield("dc.Identifier",combid);
    15811581
    15821582
     
    15851585  var subarray = comma\_and\_special_chars\_decode("_di1subjectarray_");
    15861586  var combsub = combine\_flat(subarray,subnum,subsplit);
    1587   hidden\_multifield("ds.Subject",combsub);
     1587  hidden\_multifield("dc.Subject",combsub);
    15881588
    15891589</script>
Note: See TracChangeset for help on using the changeset viewer.