Bug 11238

Summary: The version of the manual online link should be dynamically updated
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: DocumentationAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: bgkriegel, fridolin.somers, gmcharlt, nengard
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9850
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11115
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 10671    
Bug Blocks: 16724    
Attachments: Bug 11238: Build the version for the manual link
Bug 11238: Build the version for the manual link
Bug 11238: Build the version for the manual link

Description Jonathan Druart 2013-11-12 15:53:26 UTC
In order to avoid to manually update manual link for each new version, we can generate the version number from the version contained in the DB.
Comment 1 Jonathan Druart 2013-11-12 15:59:32 UTC Comment hidden (obsolete)
Comment 2 Bernardo Gonzalez Kriegel 2013-11-12 20:20:10 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall 2013-11-22 18:59:05 UTC
Created attachment 23105 [details] [review]
Bug 11238: Build the version for the manual link

Test plan (for 3.15 branch):
- Open a help page
- Verify the manual link is correct (point to 3.14 manual)
- change the version in mysql:
update systempreferences set value="3.1600000" where variable="version";
- Verify the manual link now points to the future 3.16 manual.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. No koha-qa errors

Tested on top of Bug 10671
On master (BD version 3.13.xxx) help links point to 3.12 manual
Changing version to 3.14/15 points to 3.14 manual
Changing version to 3.16 points to the future :)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Galen Charlton 2013-11-23 19:36:59 UTC
Pushed to master.  Thanks, Jonathan!
Comment 5 Fridolin Somers 2013-12-13 08:24:10 UTC
This patch has been pushed to 3.14.x, will be in 3.14.1