Opened 13 years ago

Closed 13 years ago

#782 closed defect (fixed)

GS2.84 to GS2.85 collections (srclink_file to srclinkFile)

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: 2.85 Release
Component: Collection Building Severity: major
Keywords: Cc:


Eduardo del Valle Perez rote the following to do with hyperlinks to original docs not working because of srclink_file to srclink_File changes:

It would be very useful if there is some way 2.84 and older collections can be automatically converted to 2.85 without requiring a rebuild.

Change History (5)

comment:1 by ak19, 13 years ago

srclinkFile not srclink_File

comment:2 by ak19, 13 years ago

Dr Bainbridge suggested a simple sed operation that users can do from the command line:

The following works:

On Linux

source setup.bash

db2txt collect/<colname>/index/text/<colname>.gdb | sed "s@srclink_file@srclinkFile@g" | cat | txt2db collect/<colname>/index/text/<colname>.gdb

Then run the server and reload the collection page, and the links to the src docs should be live again.

comment:3 by ak19, 13 years ago

For windows:


db2txt collect\<colname>\index\text\<colname>.gdb | sed "s@srclink_file@srclinkFile@g" | txt2db collect\<colname>\index\text\<colname>.gdb

comment:4 by ak19, 13 years ago

Owner: changed from nobody to ak19

Emailed Eduardo and added instructions as patch to Wiki.

comment:5 by ak19, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.