Changeset 24226
- Timestamp:
- 2011-07-04T20:14:04+12:00 (12 years ago)
- Location:
- main/trunk/greenstone2/runtime-src/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/dublincore.cpp
r22739 r24226 102 102 text_t value = get_metadata_value(docInfo, "gs.OAIResourceURL"); 103 103 if (value.empty()) { 104 // try srclink _file105 value = get_metadata_value(docInfo, "srclink _file");104 // try srclinkFile (the metaname "srclink_file" is deprecated, use "srclinkFile") 105 value = get_metadata_value(docInfo, "srclinkFile"); 106 106 if (value.empty()) { 107 107 // we have no file to link to, so link to the Greenstone version of the -
main/trunk/greenstone2/runtime-src/src/recpt/formattools.cpp
r23707 r24226 652 652 formatlistptr->command = comEndLink; 653 653 654 // the metaname "srclink_file" is deprecated, use "srclinkFile" 654 655 else if (meta == "srclink") { 655 656 formatlistptr->command = comAssocLink; 656 formatlistptr->meta.metaname = "srclink _file";657 metadata.insert("srclink _file");657 formatlistptr->meta.metaname = "srclinkFile"; 658 metadata.insert("srclinkFile"); 658 659 } 659 660 else if (meta == "srchref") { 660 661 formatlistptr->command = comAssocLink; 661 662 formatlistptr->text = "href"; 662 formatlistptr->meta.metaname = "srclink _file";663 metadata.insert("srclink _file");663 formatlistptr->meta.metaname = "srclinkFile"; 664 metadata.insert("srclinkFile"); 664 665 } 665 666 else if (meta == "/srclink") { 666 667 formatlistptr->command = comEndAssocLink; 667 formatlistptr->meta.metaname = "srclink _file";668 formatlistptr->meta.metaname = "srclinkFile"; 668 669 } 669 670 // and weblink etc … … 1091 1092 fresh_metatext = text_html_safe; 1092 1093 } 1093 // New "dmsafe" special formatting option (always apply to "srclink_file" metadata) 1094 if (meta.metacommand & mDMSafe || meta.metaname == "srclink_file") 1094 // New "dmsafe" special formatting option (always apply to "srclinkFile" metadata) 1095 // (The metaname "srclink_file" is deprecated, use "srclinkFile") 1096 if (meta.metacommand & mDMSafe || meta.metaname == "srclinkFile") 1095 1097 { 1096 1098 // Make it macro-safe … … 1170 1172 fresh_metatext = text_html_safe; 1171 1173 } 1172 // New "dmsafe" special formatting option (always apply to "srclink_file" metadata) 1173 if (meta.metacommand & mDMSafe || meta.metaname == "srclink_file") 1174 // New "dmsafe" special formatting option (always apply to "srclinkFile" metadata) 1175 // (The metaname "srclink_file" is deprecated, use "srclinkFile") 1176 if (meta.metacommand & mDMSafe || meta.metaname == "srclinkFile") 1174 1177 { 1175 1178 // Make it macro-safe
Note:
See TracChangeset
for help on using the changeset viewer.