https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14769
--- Comment #15 from Marcel de Rooy <m.de.r...@rijksmuseum.nl> --- Well, it is kind of hard to separate. Maybe apart from this: +sub _bib_indicator2 { + my ( $code ) = @_; + my %thes_mapping = ( a => 0, b => 1, c => 2, d => 3, k => 5, n => 4, r => 7, s => 7, v => 6, z => 7, '|' => 4 ); + return $thes_mapping{ $code } // $code // '4'; +} + +sub _bib_subfield2 { + my ( $indicator2, $subject_headings, $conventions ) = @_; + return if $indicator2 ne '7'; + return 'aat' if $subject_headings eq 'r'; + return 'sears' if $subject_headings eq 's'; + return $conventions if $subject_headings eq 'z'; +} I noted that some fields still contain more exceptions. Like: 653, 654 ind2, 655 ind1, 656 and 657 only 7 in ind2, 658, 662, 69X I still feel more for an approach I originally had in mind by adding a conf file containing essentially a hash that tells you what to do like: 600, ind1 => authind1 | authind2 | bibind1 | bibind2 | [fixed_value] | thesaurus where thesaurus could trigger a call to bib_indicator2. The uniform title stuff would move to that config file. It would give people more flexibility to make changes. -- 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/