Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New Resource Page URL to Databases Feed #829

Open
7 tasks
kevinreiss opened this issue Aug 6, 2024 · 1 comment
Open
7 tasks

Add New Resource Page URL to Databases Feed #829

kevinreiss opened this issue Aug 6, 2024 · 1 comment

Comments

@kevinreiss
Copy link
Member

kevinreiss commented Aug 6, 2024

What maintenance needs to be done?

A new field containing the value of the new individual database page in libguides for a resource needs to be added to to export CSV file for databases.

Level of urgency

  • High
  • Moderate
  • Low

Why is this maintenance needed?

  • E-resource staff would like these URLs used in the search results we present to users in the All Search.

Acceptance criteria

  • A new field called "resource_page_url" is added to each row in the CSV
  • The base value for the URL will be https://libguides.princeton.edu/az/
  • Create a unique "path" for the URL by taking the title and executing the following algorithm: Remove all non A-Z,0-9 characters, convert all spaces between words to the "-" character. One special cases: The "&" character is converted to the following string "-and-".
  • Check the database for any titles with special characters and make sure the are handled correctly. Example

Implementation notes, if any

Springshare does not release the URL in the API so we need to construct the path by manipulating the string. Adding it to the API would have to go through their "enhancement" voting process according to their support.

Example URLs

URL: https://libguides.princeton.edu/az/african-american-periodicals-1825-1995 - Title: African American Periodicals, 1825-1995
URL https://libguides.princeton.edu/az/afghan-serials-collection - Title: Afghan Serials Collection
URL: https://libguides.princeton.edu/az/oil-and-gas-etrack - Title: Oil & Gas etrack

@kevinreiss kevinreiss added this to the Website Go Live Readiness milestone Aug 6, 2024
@maxkadel maxkadel self-assigned this Aug 7, 2024
maxkadel added a commit that referenced this issue Aug 7, 2024
- This is not exposed in their API, and is somehow built from the title of the resource, but does not seem to be consistent.

Connected to #829
maxkadel added a commit that referenced this issue Aug 7, 2024
- This is not exposed in their API, and is somehow built from the title of the resource, but does not seem to be consistent.

Connected to #829
@maxkadel
Copy link
Contributor

maxkadel commented Aug 7, 2024

There does not seem to be a reliable pattern for these urls. For example, "Chosŏn ŏllon chŏngbo kiji" has the url https://libguides.princeton.edu/az/choson-ollon-kiji. Created a draft PR for this work #830

@maxkadel maxkadel changed the title Add New Resourrce Page URL to Databases Feed Add New Resource Page URL to Databases Feed Aug 7, 2024
@maxkadel maxkadel removed their assignment Aug 7, 2024
@maxkadel maxkadel removed this from the Website Go Live Readiness milestone Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants