[Koha-bugs] [Bug 7933] Fields in marc display not the same

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 26 17:08:19 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7933

Ian Bays <ian.bays at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian.bays at ptfs-europe.com

--- Comment #6 from Ian Bays <ian.bays at ptfs-europe.com> ---
We narrowed it down to the tabs in the framework.  A number of our librarians
request that commonly-used MARC tags appear on the tab 0 for editing.  We
noticed a pattern that if a MARC tag is not allocated its "natural" tab then
that tab will not show in the MARC [view labeled] display.
We could prove this by changing the tab for a subfield and making it appear and
disappear.
There is a loop in opac-MARCdetail.pl which goes through the tabs:

# loop through each tab 0 through 9
for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) {

(is this another bug as that loop goes through 10!).

Lower down is a condition:

next if ( ($sf_def->{tab}||'') ne $tabloop);

which if commented puts out all tags about 10 times.

Added another condition which refines the condition to allow the first
character of the tag to match the tabloop and be allowed to display:

next if ( ($sf_def->{tab}||'') ne $tabloop && substr($fields[$x_i]->tag(),0,1)
ne $tabloop);

This seems to do the trick.  I have no idea why opac-MARCdetail.pl would want
to go through the display tabs when listing the MARC data for a bib record. 
However until that is unravelled this should solve (at least) the problem
identified here.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list