Bug 24848: Improve manual links for the label creator
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 13 Mar 2020 17:40:38 +0000 (17:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 20 Mar 2020 15:40:05 +0000 (15:40 +0000)
Some of the manual links in the label creator tool were
not working correctly or pointing to the wrong pages.

A problem is the label-manage.pl file. This can show
different data depending on an added parameter. Example:
/cgi-bin/koha/labels/label-manage.pl?label_element=template

But it appears that parameters will be ignored when creating
links to the manual. So this patch links to the beginning
of the label creator section in the manual for now.

To test:
- Go to the lable creator
- Try the various pages of the tool
  - Note: All 'New ...' links should point to the
    correct section in the manual (batches, templates, ...)
    Except: Barcode range. This feature is new and not
    yet documented in the manual. Link goes to label creator section.
  - Note: All 'Manage ...' links should point to the
    beginning of the 'label creator' section in the manual

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/Manual.pm

index 5037917..966a723 100644 (file)
@@ -131,15 +131,13 @@ our $mapping = {
     'course_reserves/course-details'           => '/course_reserves.html',
     'course_reserves/course-reserves'          => '/course_reserves.html',
     'course_reserves/course'                   => '/course_reserves.html#adding-courses',
-    'labels/label-edit-batch'                  => '/tools.html#batches',
-    'labels/label-edit-layout'                 => '/tools.html#layouts',
-    'labels/label-edit-profile'                => '/tools.html#profiles',
-    'labels/label-edit-template'               => '/tools.html#templates',
-    'labels/label-home'                        => '/tools.html#label-creator',
-    'labels/label-manage'                      => '/tools.html#layouts',
-    'labels/label-manage'                      => '/tools.html#templates',
-    'labels/label-manage'                      => '/tools.html#profiles',
-    'labels/label-manage'                      => '/tools.html#batches',
+    'labels/label-edit-batch'                  => '/tools.html#label-batches-label',
+    'labels/label-edit-layout'                 => '/tools.html#label-layouts-label',
+    'labels/label-edit-profile'                => '/tools.html#label-profiles-label',
+    'labels/label-edit-range'                  => '/tools.html#label-creator-label', #FIXME Add when documented
+    'labels/label-edit-template'               => '/tools.html#label-templates-label',
+    'labels/label-home'                        => '/tools.html#label-creator-label',
+    'labels/label-manage'                      => '/tools.html#label-creator-label',
     'labels/spinelabel-home'                   => '/tools.html#quick-spine-label-creator',
     'mainpage'                                 => '/',
     'members/apikeys'                          => '/webservices.html#api-key-management-interface-for-patrons',