ELECTORAL COMMISSION DATA COLLECTIONS — CORRECTED BUILD

This package is based on the SLPS project ZIP supplied on 2 November 2026.

Correction:
- The shared Data Collections JavaScript now constructs API URLs with '?' when the Electoral Commission endpoint has no existing query string, and '&' when the ordinary Data Collections endpoint already has a query string.
- This ensures list, form, summary, responses, export, and other GET actions are actually sent to the correct Electoral Commission endpoint.
- The Electoral Commission API wrapper sets collection scope to 'electoral'; ordinary Data Collections remain scoped to 'main'.
- The Electoral Commission script asset version was incremented to avoid stale browser caching.

Deployment:
1. Back up the live SLPS files and database.
2. Upload and extract this package over the existing SLPS directory, preserving existing files.
3. Confirm database/migrations/20261102_electoral_data_collections_scope.sql has been imported. Do not import it again if already applied.
4. Clear browser cache or press Ctrl+F5.
5. Test the Electoral Commission workspace and the ordinary Data Collections workspace separately.

Important:
- Existing main collections should remain in the main workspace.
- Electoral Commission collections must be created from the Electoral Commission workspace.
- This is not the in-room ballot/voting module. It only corrects the Data Collections workspace/API separation.
- This source package has not been tested against the live hosting database.
