Commit Graph

24 Commits

Author SHA1 Message Date
Alexis 02c65bb710 feat(export): mejora en el selector de destino y manejo de exportaciones
Se actualiza el componente ExportDropdown para incluir un selector de destino que permite elegir entre diferentes perfiles de exportación, incluyendo la opción de ZIP. Se mejora la lógica de descarga y se ajusta el componente SwordProfileSelect para manejar la selección de perfiles de exportación. Además, se realizan cambios en la página Dashboard para integrar el nuevo sistema de exportación.
2026-06-01 13:12:55 +02:00
Mireya Cueto Garrido aa2e7280dc feat(export): perfiles DSpace/EPrints/Dublin Core y selector SWORD en UI
Backend: generadores por repositorio, ZIP multi-formato y query profile en /export/sword. Frontend: selector Destino que envia profile al descargar SWORD XML.
2026-05-20 13:25:35 +02:00
Mireya Cueto Garrido 9b596af494 feat(backend): detalle ORCID en export y sync sin borrar datos
Enriquece obras al exportar SWORD/ZIP, pide detalle en obras nuevas (con tope), preserva campos de detalle en re-sync y desenvuelve la respuesta work de ORCID.
2026-05-20 12:56:02 +02:00
Mireya Cueto Garrido 330f0dd62b fix(backend): sync sin N+1 a ORCID en perfiles grandes
Por defecto solo se usa /works; detalle /work/{put_code} opcional con tope ORCID_WORK_DETAIL_ENRICH_MAX. Parámetro enrich_work_details en búsqueda y query en sync.
2026-05-20 12:43:49 +02:00
Mireya Cueto Garrido 238742bda4 feat(backend): rendimiento ORCID y autosync configurable
Reutiliza cliente HTTP ORCID, reduce consultas DB al sincronizar works y añade SYNC_* en settings y scheduler (cron mensual o intervalo). Actualiza backend/.env, frontend/.env y .env.example para despliegue.
2026-05-20 12:25:20 +02:00
Alexis dbd8bd5992 feat(ui): mejoras dashboard y entorno local con ngrok/ORCID sandbox
- Añade enlace Volver al inicio y márgenes max-w-7xl en dashboard y group
- Corrige hora de última sincronización (UTC en formatDate)
- Evita scroll horizontal en tabla de publicaciones
- Soporta backend/.env.local y compose opcional para sandbox/ngrok
- Cookie OAuth Secure en redirects HTTPS; README y .env.example
2026-05-19 12:06:54 +02:00
Alexis 59eda988d2 fix: update frontend API key handling and improve export documentation 2026-05-19 09:57:36 +02:00
Alexis 8d29fb054d fix: update API key dependency handling in export endpoints and improve documentation for export URLs 2026-05-18 11:12:42 +02:00
Alexis d3ffb2cfda fix: implement backend configuration system and ORCID API client integration 2026-05-15 12:56:31 +02:00
Alexis 5ecac7ecf6 feat: implement ORCID API client and update gitignore to exclude environment files 2026-05-15 12:23:36 +02:00
Mireya Cueto Garrido d83fe1bbb0 Cambios en .env, gitlab-ci y dockercompose 2026-05-13 10:39:38 +02:00
Mireya Cueto Garrido 3573bec572 Cambios finales 2026-05-13 10:19:44 +02:00
Alexis fa2de55abe feat: enhance OAuth flow and improve token handling
- Added state parameter to exchangeOrcidCode function for better state management during OAuth.
- Implemented storage event listener in AuthContext to handle token updates when postMessage fails.
- Updated AuthCallbackPage to ensure proper handling of OAuth popup closure and state updates.
2026-05-12 11:41:19 +02:00
Mireya Cueto Garrido 1dd1096744 feat: enhance error handling and configuration in backend
- Added ORCID_REDIRECT_URI to docker-compose for OAuth callback.
- Refactored CORS and trusted hosts settings in configuration for better clarity.
- Introduced a new function to validate publication IDs and provide explicit error messages for researcher IDs.
- Updated rate limiting strategy to simplify configuration.
- Improved security headers middleware to safely remove sensitive headers.
2026-05-08 12:13:05 +02:00
Mireya Cueto Garrido af1b8e9956 feat: enhance backend security and configuration
- Updated Dockerfile to improve security with a non-root user and added health checks.
- Modified docker-compose.yml to set containers as read-only, restrict ports to localhost, and implement health checks.
- Enhanced .env.example with additional environment variables for security and configuration.
- Improved FastAPI application with middleware for security headers, CORS, and body size limits.
- Refactored authentication flow in auth.py to include state validation and improved error handling.
- Added rate limiting to various endpoints to prevent abuse.
- Updated researcher and publication handling to ensure better validation and error management.
2026-05-08 11:19:52 +02:00
Mireya Cueto Garrido 6de277d4f0 feat: add display name resolution for researchers from ORCID
- Introduced a new function to fetch and extract the display name of researchers from the ORCID API.
- Updated the researcher search response to set the display name if it is not already defined, enhancing researcher data accuracy.
2026-05-07 12:43:10 +02:00
Mireya Cueto Garrido b49152946e feat: implement ORCID OAuth callback and update environment configuration
- Added ORCID_REDIRECT_URI to docker-compose for OAuth integration.
- Introduced a new callback endpoint to handle ORCID login and token exchange.
- Refactored authentication logic to streamline the OAuth process.
- Ensured local environment variables are loaded for development.
2026-04-29 12:19:41 +02:00
Mireya Cueto Garrido fec26089ed feat: enhance authentication and publication download tracking
- Added JWT authentication support with configurable secret and expiration.
- Introduced optional API key validation for endpoints.
- Implemented tracking of publication downloads by researchers, storing records in a new PublicationDownload model.
- Updated export endpoints to conditionally register downloads based on user authentication.
- Enhanced researcher search response to indicate if publications were downloaded by the current user.
- Updated environment configuration to include new JWT settings.
2026-04-29 10:27:17 +02:00
Mireya Cueto Garrido c0eb0d3916 refactor: update researcher API endpoints to include batch search and statistics functionality
- Removed deprecated search logic and replaced it with a new structure for handling researcher statistics.
- Introduced new schemas for batch search requests and responses.
- Enhanced the search endpoint to return publication statistics alongside researcher data.
- Updated docker-compose file to remove unnecessary versioning.
2026-04-28 09:41:45 +02:00
Mireya Cueto Garrido 60cb036f3e env update 2026-04-27 13:52:58 +02:00
Mireya Cueto Garrido 96f01c0126 Versión 3 Backend - Endpoints finales corregidos 2026-04-27 13:39:32 +02:00
Mireya Cueto Garrido a286c2e3ae feat: implement researcher and publication management with sync functionality 2026-04-21 13:59:41 +02:00
Mireya Cueto Garrido 7717e2a5b2 feat: initialize frontend with React and Vite setup
- Add main application structure with App component
- Implement state management for counter functionality
- Create CSS styles for application layout and components
- Include assets for logos and hero image
- Set up Vite configuration for development environment
- Establish global CSS variables for theming
2026-04-16 09:55:10 +02:00
Mireya Cueto Garrido 1b7214d96c Initialize backend and frontend structure with Docker setup and dependencies 2026-04-16 09:12:00 +02:00