lter / deims-ilter-custom

DEIMS customizations for ILTER
GNU General Public License v2.0
1 stars 0 forks source link

make data-set owner be part of the scope of the EML package ID #1

Open isangil opened 10 years ago

isangil commented 10 years ago

The ILTER network uses the node-data-set author as part of the EML packageID scope. For example,

knb-lter-italy.2345234.23432

Currently, the EML web service config does not allow the token [user:name] to be part of the packageID, so we need to change that.

isangil commented 10 years ago

Answer may be in Line 288 in eml.module:

list($pasta_user) = explode(':', token_replace(variable_get('eml_pasta_user', 'uid=[site:station-acronym],o=LTER,dc=ecoinformatics,dc=org')), 2);

isangil commented 9 years ago

we made a fix for this... involved this function

function eml_dataset_get_package_id($node) {

  $pattern = variable_get('eml_package_id_pattern', 'knb-lter-[node:field-user-account:name].[node:field_data_set_id].[node:field_eml_revision_id]');