[Koha-devel] Problem retrieving data from DB on Koha 16.11
Rodrigo Santellan
rsantellan at gmail.com
Mon Jul 31 16:55:50 CEST 2017
Hi,
I have troubles with retrieving the data from the items.
On my db I have this on the table *biblioitems* field *marcxml*
<datafield tag="952" ind1=" " ind2=" ">
<subfield code="1">5563</subfield>
<subfield code="2">0</subfield>
<subfield code="b">CEN</subfield>
<subfield code="c">c</subfield>
<subfield code="d">CEN</subfield>
<subfield code="e">Beltrame Regina</subfield>
<subfield code="f">40938</subfield>
<subfield code="g">Silva, Virginia</subfield>
<subfield code="h">Silva, Virginia</subfield>
<subfield code="i">CV</subfield>
<subfield code="j">1609</subfield>
<subfield code="k">IMPR</subfield>
<subfield code="l">CZ</subfield>
<subfield code="o">302.23 GAN ej.3</subfield>
<subfield code="p">C018633</subfield>
<subfield code="r">117.50</subfield>
<subfield code="s">0</subfield>
<subfield code="t">8.33</subfield>
<subfield code="u">2130</subfield>
<subfield code="v">20070725</subfield>
<subfield code="x">20011214</subfield>
<subfield code="y">0</subfield>
<subfield code="z">20020124</subfield>
</datafield>
The call on: *cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=1593&itemnumber=2130
<http://additem.pl?op=edititem&biblionumber=1593&itemnumber=2130>*
Make the following call sequence:
- $itemrecord = C4::Items::GetMarcItem($biblionumber,$itemnumber);
- my $itemrecord = GetItem($itemnumber);
- $item = Koha::Items->find( $itemnumber );
- Item2Marc($itemrecord,$biblionumber);
- my $itemmarc = TransformKohaToMarc($mungeditem);
For what I get the GetItem retrieve the stored data in items table.
Then the Item2Marc populate the marc fields.
I put a Dumper on the method Item2Marc and I have:
$VAR1 = '================Item2Marc=======================';
$VAR1 = bless( {
'_warnings' => [],
'_leader' => ' a ',
'_fields' => [
bless( {
'_warnings' => [],
'_ind1' => ' ',
'_tag' => '952',
'_ind2' => ' ',
'_is_control_field' => 0,
'_subfields' => [
'4',
'0',
'8',
'IMPR',
'b',
'CEN',
'd',
'CEN',
'o',
'302.23 GAN',
'p',
'C07908',
'r',
'180.00',
's',
'0',
'u',
'2132',
'v',
'2005-05-14',
'y',
'0',
'z',
'2017-07-28
14:13:48'
]
}, 'MARC::Field' )
]
}, 'MARC::Record' );
$VAR1 = '================Item2Marc=======================';
I'm missing some fields, like 952^2, 952^1, 952^c, 952^e, 952^f ....
Where is my data is lost? Where should I look for it?
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20170731/b139f802/attachment.html>
More information about the Koha-devel
mailing list