CDRH / open-oni_nebraska_theme

Nebraska child theme for open-oni github.com/open-oni
0 stars 0 forks source link

Forward Plattsmouth LCCNs #80

Closed jduss4 closed 5 years ago

jduss4 commented 5 years ago

Because we dropped "sn" from the front of the plattsmouth LCCNs, we should make sure that the old URLs forward to the new locations

jduss4 commented 5 years ago
sn2016270204 should change to 2016270204 (pm1, pm2)
sn2016270206 should change to 2016270206 (pm1, pm2, pm3)
sn2016270207 should change to 2016270207 (pm1, pm2, pm3)
sn2016270205 should change to 2016270205 (pm1)
sn2016270201 should change to 2016270201 (pm1, pm2)
sn2016270202 should change to 2016270202 (pm2)
sn2016270200 should change to 2016270200 (pm2)

Pulling list from issue https://github.com/CDRH/open-oni_nebraska_theme/issues/50 The old sn* paths should forward to an LCCN without, presumably for not just the title page but the issues and pages pages as well. So many types of pages.

jduss4 commented 5 years ago

URLs as found in current dev branch of openoni:

Probably should worry about:

/lccn/sn85066387
/lccn/sn85066387/issues/
/lccn/sn85066387/issues/1900
/lccn/sn85066387/issues/first_pages
/lccn/sn85066387/issues/first_pages/3

/lccn/sn85066387/marc
/lccn/sn85066387/marc.xml
/lccn/sn85066387/holdings

/lccn/sn85066387/1907-03-17/ed-1
/lccn/sn85066387/1907-03-17/ed-1/1
/lccn/sn85066387/1907-03-17/ed-1/seq-4
/lccn/sn85066387/1907-03-17/ed-1/seq-4.pdf
/lccn/sn85066387/1907-03-17/ed-1/seq-4.jp2
/lccn/sn85066387/1907-03-17/ed-1/seq-4/ocr.xml
/lccn/sn85066387/1907-03-17/ed-1/seq-4/ocr.txt
/lccn/sn85066387/1907-03-17/ed-1/seq-4/;words=
/lccn/sn85066387/1907-03-17/ed-1/seq-4/print/image_813x1024_from_0,0_to_6504,8192
/lccn/sn85066387/1907-03-17/ed-1/seq-4/ocr/

Maybe less important to worry about in terms of laypeople having bookmarked?

/lccn/sn85066387/feed/
/lccn/sn85066387/feed/10
/lccn/sn85066387/1907-03-17/ed-1/seq-4/coordinates/
/lccn/sn85066387/essay  # I think this might be dead url?

Didn't have example paths but also probably not particularly important:

    # title
    url(r'^lccn/(?P<lccn>\w+).rdf$', browse.title_rdf, name='openoni_title_dot_rdf'),
    url(r'^lccn/(?P<lccn>\w+)$', browse.title_rdf, name='openoni_title_rdf'),
    url(r'^lccn/(?P<lccn>\w+).json', reports.title_json, name='openoni_title_dot_json'),

    # issue
    url(r'^lccn/(?P<lccn>\w+)/(?P<date>\d{4}-\d{2}-\d{2})/ed-(?P<edition>\d+).rdf$', browse.issue_pages_rdf, name='openoni_issue_pages_dot_rdf'),
    url(r'^lccn/(?P<lccn>\w+)/(?P<date>\d{4}-\d{2}-\d{2})/ed-(?P<edition>\d+).json$', reports.issue_pages_json, name='openoni_issue_pages_dot_json'),
    url(r'^lccn/(?P<lccn>\w+)/(?P<date>\d{4}-\d{2}-\d{2})/ed-(?P<edition>\d+)$', browse.issue_pages_rdf, name='openoni_issue_pages_rdf'),

    # page
    url(r'^lccn/(?P<lccn>\w+)/(?P<date>\d{4}-\d{2}-\d{2})/ed-(?P<edition>\d+)/seq-(?P<sequence>\d+).rdf$', browse.page_rdf, name="openoni_page_dot_rdf"),
    url(r'^lccn/(?P<lccn>\w+)/(?P<date>\d{4}-\d{2}-\d{2})/ed-(?P<edition>\d+)/seq-(?P<sequence>\d+).json$', reports.page_json, name="openoni_page_dot_json"),
    url(r'^lccn/(?P<lccn>\w+)/(?P<date>\d{4}-\d{2}-\d{2})/ed-(?P<edition>\d+)/seq-(?P<sequence>\d+)$', browse.page_rdf, name="openoni_page_rdf"),