borowiak / pwa-technologies

Automatically exported from code.google.com/p/pwa-technologies
0 stars 0 forks source link

Change URLs on result pages that reference archived pages to follow Wayback syntax #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If we search for a keyword or an URL:
- http://arquivo.pt/search.jsp?l=pt&query=cgd&btnSubmit=Pesquisar+no+Arquivo
- 
http://arquivo.pt/search.jsp?l=pt&query=cgd.pt&btnSubmit=Pesquisar+no+Arquivo&da
teStart=01%2F01%2F1996&dateEnd=31%2F12%2F2013

The links to the archived pages contain the id of the index:
- 
http://arquivo.pt/wayback/wayback/id46122127index0?year=1997&r_pos=1&r_t=2&col_p
os=1&col_tot=15&l=pt&sid=4F836E1258AEBAE8D16E2C35C0F7B06B
- 
http://arquivo.pt/wayback/wayback/id31195082index0?year=1997&r_pos=2&r_t=2&col_p
os=1&col_tot=15&l=pt&sid=4F836E1258AEBAE8D16E2C35C0F7B06B

This id can change across, for instance due to a re-indexation of the 
collection, causing broken links to archived pages (identifier non-persistence).
The URLs that follow the Wayback syntax are also supported by the system and 
are independent from indexations.
Thus, the URLs that reference archived pages should follow the Wayback syntax 
so that the URLs to archived pages can be more persistent and independent from 
the indexes and indexing software:

- 
http://arquivo.pt/wayback/wayback/19990418065121/http://www.cgd.pt/euro/index.ht
m

The solution would to change 3 JSP:
- Opensearch: change <link> element to provide URLs with Wayback syntax;
- search.jsp: 
 - change keyword search results page to provide result titles with links to archived pages using URLs following the Wayback syntax;
 - change URL search results page to provide version dates with links to archived pages using URLs following the Wayback syntax.

There will be a slight performance degradation, but according to Miguel Costa 
it will insignificant.

Original issue reported on code.google.com by danielco...@gmail.com on 2 Sep 2014 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by danielco...@gmail.com on 2 Sep 2014 at 3:32

GoogleCodeExporter commented 9 years ago
Check:

Help:Using the Wayback Machine
http://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine

Original comment by danielco...@gmail.com on 23 Oct 2014 at 10:23

GoogleCodeExporter commented 9 years ago
It is already done, waiting for be in production.

Original comment by HugoHAVi...@gmail.com on 5 May 2015 at 3:30

GoogleCodeExporter commented 9 years ago
Only Done when in production.
Em 05/05/2015 16:30, <pwa-technologies@googlecode.com> escreveu:

Original comment by danielco...@gmail.com on 5 May 2015 at 4:34