Bug 16613: fix MARC 09X help links
authorphette23 <phette23@gmail.com>
Fri, 27 May 2016 17:13:14 +0000 (10:13 -0700)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jun 2016 17:48:12 +0000 (17:48 +0000)
The 09X MARC fields, such as 099 local call number or 090
locally-assigned Library of Congress call number, all point to
non-existent pages on the LC website, e.g.
http://www.loc.gov/marc/bibliographic/bd090.html

Test plan:
- enter the advanced cataloging editor
- begin to input any MARC tag of form 09X
- click the help link at the bottom of the browser window
=> Without this patch, taken to a URL of form `'http://www.loc.gov/marc/bibliographic/bd' +
  tag + '.html'` which is broken because the only documentation for
  these tags is at https://www.loc.gov/marc/bibliographic/bd09x.html
=> With this patch applied, the link is correct

Signed-off-by: Nicole C Engard <nengard@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc

index 87f5360..2f2a1c2 100644 (file)
@@ -163,6 +163,8 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
         [% IF ( marcflavour == 'MARC21' ) %]
             if ( tag == '000' ) {
                 return "http://www.loc.gov/marc/bibliographic/bdleader.html";
+            } else if ( tag >= '090' && tag < '100' ) {
+                return "http://www.loc.gov/marc/bibliographic/bd09x.html";
             } else if ( tag < '900' ) {
                 return "http://www.loc.gov/marc/bibliographic/bd" + tag + ".html";
             } else {