Add support for NORMARC

From Koha Wiki
Jump to navigation Jump to search

Add support for NORMARC

Status: unknown
Sponsored by: Libriotech
Developed by: Libriotech
Expected for: ?
Bug number: Bug 3644
Work in progress repository: Librotech's Work in progress on GitHub
Description: Add support for the Norwegian MARC dialect, NORMARC. This includes MARC frameworks as well as necessary changes to the source code.


SQL

/installer/data/mysql/nb-NO...

  • /2-Valgfritt/z3950servers.sql
  • /2-Valgfritt/z3950servers.txt
  • /marcflavor/normarc/Obligatorisk/normarc.sql
  • /marcflavor/normarc/Obligatorisk/normarc.txt

XSLT

Done:

  • koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl
  • koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl
  • koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslimUtils.xsl

Missing: XSLT for Intranet.

Code changes

The following subroutines have this structure:

if ($marcflavour eq 'MARC21') {
else { # assume unimarc if not marc21
}

Which will be turned into this:

if ($marcflavour eq 'UNIMARC') {
else { # assume marc21, normarc etc if not unimarc
}

See Default MARC dialect on koha-devel for rationale/discussion.

C4/Biblio.pm

  • GetMarcNotes
  • GetMarcSubjects
  • GetMarcAuthors
  • GetMarcSeries

C4/Koha.pm

  • GetNormalizedUPC
  • GetNormalizedISBN
  • GetNormalizedEAN

Other subroutines that need attention:

C4/Charset.pm

  • SetMarcUnicodeFlag
  • MarcToUTF8Record