utdal / profiles

A simple CRUD/search profile system for research profiles, providing user-editable information and basic pages to aesthetically promote and highlight researcher activities and achievements.
MIT License
6 stars 0 forks source link

Api client service providers #115

Open betsyecastro opened 1 year ago

betsyecastro commented 1 year ago

This PR replaces PR #110 and includes:

  1. Publications API Interface to import publications from the the Academic Analytics API, for now.
  2. AA Publications API service provider that implements the interface mentioned above
  3. In the publications-import-modal Livewire component, it fixes the collection iteration method before the data is rendered.
  4. Corrections in the jQuery selectors that contain the publication data that will be added to the editor.
  5. AA Publications API service provider mock for testing purposes.
  6. Artisan command to search and add DOI's to publications that don't have it.
  7. Feature tests:
    • Search and add academic analytics id's for the profiles that don't have it
    • Measure similarity between phrases publications titles to obtain DOI's.
    • publications-import-modal Livewire component

Local configuration required to test the feature:

  1. Add the following values to the .env file: DOI_REGEX = '/(10[.][0-9]{4,}[^\s"\/<>]*\/[^\s"<>]+)/' EMAIL_ADDRESS_DOMAIN= 'utdallas.edu'

  2. Artisan command to add the DOI to existing publications:

Description: Search the DOI to add it to the existing publications for the profiles with the first letter of their last name given.

Usage: profiles:add-doi

Arguments: starting_character - The first letter of the last name of the profiles to run command for. Not case-sensitive.

Example: php artisan profiles:add-doi "d" or php artisan profiles:add-doi "D"

betsyecastro commented 1 year ago

Local configuration required to test the feature:

Add the following values to the .env file: DOI_REGEX = '/(10[.][0-9]{4,}[^\s"\/<>]*/[^\s"<>]+)/' EMAIL_ADDRESS_DOMAIN= 'utdallas.edu'

Artisan command to add the DOI to existing publications:

Description: Search the DOI to add it to the existing publications for the profiles with the first letter of their last name given.

Usage: profiles:add-doi

Arguments: starting_character - The first letter of the last name of the profiles to run command for. Not case-sensitive.

Example: php artisan profiles:add-doi "d" or php artisan profiles:add-doi "D"