Ticket #782 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

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

Changed 9 years ago by ak19

srclinkFile not srclink_File

Changed 9 years ago by ak19

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.

Changed 9 years ago by ak19

For windows:


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

Changed 9 years ago by ak19

  • owner changed from nobody to ak19

Emailed Eduardo and added instructions as patch to Wiki.

Changed 9 years ago by ak19

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.