Widget: DataExporter: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 46: Line 46:
                         || field.getAttribute('name');
                         || field.getAttribute('name');
                     const label = field.querySelector('Label')?.textContent;
                     const label = field.querySelector('Label')?.textContent;
                     exportUrl += encodeURIComponent('/?' + prop).replaceAll('%', '-');
                     exportUrl += '/' + encodeURIComponent('?' + prop).replaceAll('%', '-');
                     if (!!label) exportUrl += '%3D' + encodeURIComponent(label).replaceAll('%', '-');
                     if (!!label) exportUrl += '%3D' + encodeURIComponent(label).replaceAll('%', '-');
                 }
                 }

Revision as of 12:27, 17 August 2023