https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11674

paxed <pasi.kalli...@joensuu.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40605|0                           |1
        is obsolete|                            |
  Attachment #40606|0                           |1
        is obsolete|                            |
  Attachment #40638|0                           |1
        is obsolete|                            |

--- Comment #21 from paxed <pasi.kalli...@joensuu.fi> ---
Created attachment 71108
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71108&action=edit
Add a new system preference MarcFieldDocURL

Add a new system preference MarcFieldDocURL. Setting it to some URL
will make all the MARC documentation links point to that in
the MARC edit UI. Leaving the value empty will use the old defaults
(http://loc.gov for MARC21 and http://archive.ifla.org for UNIMARC).

There are some possible substitutions usable in the URL:
 - {MARC} is replaced with either "MARC21" or "UNIMARC"
 - {FIELD} is replaced by the MARC field number, eg. "000", "048", ...
 - {LANG} is replaced by the UI language, eg. "en", or "fi-FI"

To test:

1) Go to Cataloguing > New record
2) Clicking on the question mark links in the MARC edit will
   open a window to either loc.gov or archive.ifla.org
3) Install patch, run updatedatabase, etc
4) Redo parts 1, and 2.
5) Set the value of MarcFieldDocURL to
   http://example.com/?field={FIELD}&marc={MARC}&lang={LANG}
6) Redo parts 1 and 2
7) Clicking on the question mark links in the MARC edit will
   open a window to example.com, with the proper substitutions
   in the URL for the field, marc flavour and language

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to