Bram's Dev Blog

home

100 Days of Code Day 72 - Analyzer HTTPs

04 Nov 2018

Taking a short break from Angular

Currently stonewalling on getting the tests to run for my language switch, I’m turning to another problem that needs to be solved urgently.

Analyzer - the problem

I have worked and blogged earlier about the Atmire Analyzer, my free tool that helps repository managers to detect and resolve indexing problems with Google Scholar.

In the database to this tool, I essentially only want to keep a single record for every single DSpace repository. This is not trivial because institutions have often hosted their repositories under different URLs, context paths etc over time.

A very common thing is that happens is that today or in the past, the repository was served both under http and https. The analyzer makes sure that only a single repository record exists for this repository, but either has the http or https url as the canonical one.

When a user then turns to the item analysis, the code currently enforces that the path to the item needs to exactly match the stored repository url. This needs to be made more flexible so that the item is tested against http and https.

Changes made

When I get a Google Scholar Search Engine Results Page (SERP), I now test for the handle prefix + item identifier, specifically within the h3 that has the gs_rt class that marks a result.

Day 73 Plan

Continue the fix for testing of item pages in https://analyzer.atmire.com in cases where the item url starting with https or http might differ from the stored repository url.

Ask my colleagues for assistance to access the assets and hopefully get a successful test run in place for the language switch.

Future days - DSpace 7 Angular

Future days - Analyzer.atmire.com work

Future Days - Productivity

Future days - Jekyll http://bram-atmire.github.io/ site

Future Days - Atmire.com work

Investigate and work on search engine optimization (SEO) for the main atmire.com website.

Future Days - Learning just for learning

Sustainability challenge - Finish before Christmas

If I continue like October, I could hit day 68 by end of October and day 98 by end of November.