internetarchive / internetarchive/dweb-mirror

Mediawiki - image browser - long term duplicate "stream" urls

Open
#289 3 comments 0 reactions 0 assignees View on GitHub
Mediawiki
Dominant language
JavaScript
Stars
330
Forks
34
PR merge metrics
No merged PRs in 30d

Description

There are links such as ...
`$wgArchiveLeafBaseURL.'/stream/'.$id.'/'.$subPrefix.'#page/n'.$imageNum.'/mode/1up'`
which brings up an image browser such as:
https://archive.org/stream/bdrc-W1FPL497/bdrc-W1FPL497#page/n2/mode/1up

In the code its at ArchiveLeaf.class.php > $leafBrowseUrl >ImageBrowse= in template EntryImage > sources/template_entryimage.txt > loaded into EntryImage template (in DB I think)

It is displayed as a link in the template

SHORT TERM:
- [x] Replace with a link to details,
- [x] Will need to trigger this off a new variable $wgArchiveLeafMirror
- [x] OR forward on DM

MEDIUM TERM
- [ ] Copy the 'stream' and handle it like an alternative to archive.html or some similar solution

Note also dev artifact in -transcriber/build/index.html:|ImageBrowse=https://archive.org/stream/tutur-smara-bhuwana/tutur-smara-bhuwana-300ppi#page/n2/mode/1up which is not significant

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ArchiveLeaf.class.php, the $leafBrowseUrl and ImageBrowse references in sources/template_entryimage.txt, and the EntryImage template. Compare the existing archive.html handling with the requested stream alternative; done means duplicate stream URLs are handled without the long-term duplicate link, while the noted transcriber build artifact is unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.