\
\
';
default:
return null;
}
}
function renderFilesTable(files) {
var license_link_html = "";
var license = "";
var logged_in = false;
var lang = "en";
var file_status_translations = {"Public": "Public", "Restricted": "Restricted"};
var cols = [{"sortable": true, "label": "Filename", "name": "name", "field_type": "string", "field": "name", "title": "Filename", "targets": 1, "visible": true}, {"sortable": true, "label": "Size", "name": "size", "field_type": "string", "field": "size", "title": "Size", "targets": 2, "visible": true}, {"sortable": true, "label": "Access", "name": "status", "field_type": "string", "field_format": "select", "enum": [{"label": "Public", "name": "public"}], "field": "status", "title": "Access", "targets": 3, "visible": true}, {"sortable": true, "label": "Description", "name": "description", "field_type": "string", "field": "description", "title": "Description", "targets": 4, "visible": true}, {"sortable": true, "label": "License", "name": "rec_license", "field_type": "string", "field_format": "select", "enum": [{"label": "Copyrighted", "name": "copyright"}, {"label": "CC BY (Creative Commons: Attribution)", "name": "CC BY"}, {"label": "CC BY-NC-ND (Creative Commons: Attribution-NonCommercial-No Derivatives)", "name": "CC BY-NC-ND"}, {"label": "CC BY-NC (Creative Commons: Attribution-NonCommercial)", "name": "CC BY-NC"}, {"label": "CC BY-ND (Creative Commons: Attribution-No Derivatives)", "name": "CC BY-ND"}, {"label": "CC BY-SA (Creative Commons: Attribution-ShareAlike)", "name": "CC BY-SA"}, {"label": "CC BY-NC-SA (Creative Commons: Attribution-NonCommercial-ShareAlike)", "name": "CC BY-NC-SA"}, {"label": "CC0 (No rights reserved)", "name": "CC0"}, {"label": "MIT License", "name": "MIT License"}, {"label": "GNU-GPL", "name": "GNU-GPL"}, {"label": "BSD", "name": "BSD"}, {"label": "Apache License", "name": "Apache License"}], "field": "rec_license", "title": "License", "targets": 5, "visible": true}];
if (CFG_BIBDOCFILE_ENFORCE_VALIDATION) {
// Define validation status column
cols.push({
sortable: false,
name: 'validation_status',
field: 'validation_status',
field_type: 'string',
visible: true,
label: "Validation"
});
}
var filesData = [];
if (files.length == 1) {
$('#file-count-total').html('1 ' + 'file');
} else {
$('#file-count-total').html('' + files.length + ' ' + 'files');
}
for (var i = 0; i ')
.attr({
url: file.url,
language: lang,
'label-login': "Log in",
'label-download': "Download",
'must-login': file.status !== 'Public' && !logged_in,
'is-restricted': file.restricted,
'is-validated':file.validated,
'recid': 24988,
});
downloadButton.attr({
'with-watermark': ["application/pdf"].includes(file.mime),
'can-user-download-originals': false,
});
if (!file.restricted) {
onlyRestricted = false;
}
// Add action select checkbox
downloadButton = $([
$('', {
"class": "rowcb row-select",
"data-rowId": i,
"id": "rowcb_" + i,
"type": "checkbox",
"aria-label": "Select file" + ' ' + fileFullName,
"disabled": file.restricted
}).get(0),
downloadButton.get(0)
]);
// Build file row content
var fileDataToAdd = [downloadButton.map((i, element) => element.outerHTML).get().join('')];
cols.forEach(function(col) {
// Some fields need special treatment before showing
if (col.field == 'status') {
fileDataToAdd.push(renderStatus(file, col) || '-');
} else if (col.field == 'name') {
fileDataToAdd.push(file.name + file.format);
} else if (col.field == 'rec_license') {
fileDataToAdd.push(license_link_html || license || "-");
} else if (col.field == 'validation_status') {
fileDataToAdd.push(renderValidationStatus(file, col) || '');
} else {
fileDataToAdd.push(renderValue(file, col.field, col) || '-');
}
});
fileDataToAdd["validated"] = file.validated;
fileDataToAdd["validation_status"] = file.validation_status
fileDataToAdd['bibdocid'] = file.bibdocid;
fileDataToAdd['format'] = file.format;
fileDataToAdd['version'] = file.version;
filesData.push(fileDataToAdd);
}
// Set actions dropdown state if there are only restricted files
if (onlyRestricted) {
$('#files-action-dropdown').prop("disabled", true);
}
return filesData
}
});
The widespread use of pesticides in agriculture provides a particularly complex pattern of multidimensional negative side-effects, ranging from food safety related effects to the deterioration of farmland ecosystems. The assessment of the economic implications of such negative processes is fraught with many uncertainties. This paper presents results of an empirical study recently conducted in the North of Italy aimed at estimating the value of reducing the multiple impacts of pesticide use. This type of analysis is rather novel in Italy. A statistical technique known as choice modelling is used here in combination with contingent valuation techniques. The experimental design of choice modelling provides a natural tool for tackling simultaneously the economic dimensions of several negative environmental effects associated with agrochemicals use. In particular, the paper addresses the reduction of farmland biodiversity, groundwater contamination and human intoxication. The resulting estimates show that, on average, Italians consumers are prone to accept substantial price mark-ups for agricultural goods (in particular, foodstuff) produced in environmentally benign ways.
