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

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
  Text to go in the|                            |This enhancement adds these
      release notes|                            |two options for including
                   |                            |deleted records in the
                   |                            |export records script
                   |                            |(misc/export_records.pl):
                   |                            |--include_deleted: includes
                   |                            |deleted records in the file
                   |                            |--deleted_only: only
                   |                            |includes deleted records in
                   |                            |the file
                   |                            |
                   |                            |The leader for the deleted
                   |                            |record includes 'd' for
                   |                            |position 5 - Record status
                   |                            |(for example, 01075dam
                   |                            |a2200313 a 4500).
                   |                            |
                   |                            |Deleted records are only
                   |                            |included in the marc (the
                   |                            |default) and xml result
                   |                            |formats (csv is not
                   |                            |currently and option).

--- Comment #182 from David Nind <[email protected]> ---
Testing notes (using KTD):
1. I deleted Programming Perl (biblionumber = 262):
   - Leader: 01075dam a2200313 a 4500 (from xml export)
2. Step 1: Tests pass: prove t/db_dependent/Exporter/Record.t
3. Step 4: misc/export_records.pl --date=2026-07-18 --include_deleted
4. Step 6: misc/export_records.pl --date=2026-07-18 --include_deleted
--format=xml 
5. Step 7: misc/export_records.pl --date=2026-07-18 --deleted_only --format=xml
6. Other testing notes:
   - If no deleted records for the command, it creates an empty file
   - Using the csv format is not an option, but indicates this if you attempt
it:
       misc/export_records.pl --date=2026-07-18 --deleted_only --format=csv
       Option "--include_deleted" or "--deleted_only" cannot be used with 
       "--format=csv"

FYI: Running the qa script shows this fail (but might be outside the scope for
this bug):

Result:
[FAIL] Koha/Exporter/Record.pm
   FAIL   pod_coverage
                sub _get_record_for_export has no pod coverage.
                sub _get_deleted_biblio_for_export has no pod coverage.
                sub _get_authority_for_export has no pod coverage.
                sub _get_biblio_for_export has no pod coverage.
                sub _record_match_conditions has no pod coverage.


In the koha.mrc file using no option for format, the record was shown as: 

01075dam a2200313 a
45000010009000000050017000090080041000260100017000670200018000840400018001020420008001200500026001280820017001541000028001712450069001992500012002682600047002803000035003275000093003625040051004556500041005067000023005477000022005707000041005929060045006339420012006789550058006909990013007481725993020200421093825.0120417s2012
   ch a     b    001 0 eng    a  2012392268  a9780596004927 
aDLCcDLCdDLC  apcc00aQA76.73.P22bW35 201200a005.13/32231
aChristiansen, Tom.948210aProgramming Perl /cTom Christiansen, Brian D.
Foy & Larry Wall.  a4th ed.  aBeijing ;aSebastopol :bO'Reilly,cc2012. 
axli, 1130 p. :bill. ;c24 cm.  aRev. ed. of: Programming Perl / Larry
Wall, Tom Christiansen & Jon Orwant. 2000. 3rd ed.  aIncludes bibliographical
references and index. 0aPerl (Computer program language)9191 aFoy, Brian
D.91481 aWall, Larry.94831 aWall, Larry.tProgramming Perl.9484 
a7bcbccorigcopd2encipf20gy-gencatlg  2ddccBK  bxh11 2012-04-17
z-processorixh11 2012-04-17 to Dewey  c262d262

In the koha.mrc file using --format=xml, the record was shown as:

<record>
  <leader>01075dam a2200313 a 4500</leader>
  <controlfield tag="001">17259930</controlfield>
  <controlfield tag="005">20200421093825.0</controlfield>
  <controlfield tag="008">120417s2012    ch a     b    001 0 eng 
</controlfield>
  <datafield tag="010" ind1=" " ind2=" ">
    <subfield code="a">  2012392268</subfield>
  </datafield>
  <datafield tag="020" ind1=" " ind2=" ">
    <subfield code="a">9780596004927</subfield>
  </datafield>
  <datafield tag="040" ind1=" " ind2=" ">
    <subfield code="a">DLC</subfield>
    <subfield code="c">DLC</subfield>
    <subfield code="d">DLC</subfield>
  </datafield>
  <datafield tag="042" ind1=" " ind2=" ">
    <subfield code="a">pcc</subfield>
  </datafield>
  <datafield tag="050" ind1="0" ind2="0">
    <subfield code="a">QA76.73.P22</subfield>
    <subfield code="b">W35 2012</subfield>
  </datafield>
  <datafield tag="082" ind1="0" ind2="0">
    <subfield code="a">005.13/3</subfield>
    <subfield code="2">23</subfield>
  </datafield>
  <datafield tag="100" ind1="1" ind2=" ">
    <subfield code="a">Christiansen, Tom.</subfield>
    <subfield code="9">482</subfield>
  </datafield>
  <datafield tag="245" ind1="1" ind2="0">
    <subfield code="a">Programming Perl /</subfield>
    <subfield code="c">Tom Christiansen, Brian D. Foy &amp; Larry
Wall.</subfield>
  </datafield>
  <datafield tag="250" ind1=" " ind2=" ">
    <subfield code="a">4th ed.</subfield>
  </datafield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="a">Beijing ;</subfield>
    <subfield code="a">Sebastopol :</subfield>
    <subfield code="b">O'Reilly,</subfield>
    <subfield code="c">c2012.</subfield>
  </datafield>
  <datafield tag="300" ind1=" " ind2=" ">
    <subfield code="a">xli, 1130 p. :</subfield>
    <subfield code="b">ill. ;</subfield>
    <subfield code="c">24 cm.</subfield>
  </datafield>
  <datafield tag="500" ind1=" " ind2=" ">
    <subfield code="a">Rev. ed. of: Programming Perl / Larry Wall, Tom
Christiansen &amp; Jon Orwant. 2000. 3rd ed.</subfield>
  </datafield>
  <datafield tag="504" ind1=" " ind2=" ">
    <subfield code="a">Includes bibliographical references and
index.</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Perl (Computer program language)</subfield>
    <subfield code="9">19</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Foy, Brian D.</subfield>
    <subfield code="9">148</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Wall, Larry.</subfield>
    <subfield code="9">483</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Wall, Larry.</subfield>
    <subfield code="t">Programming Perl.</subfield>
    <subfield code="9">484</subfield>
  </datafield>
  <datafield tag="906" ind1=" " ind2=" ">
    <subfield code="a">7</subfield>
    <subfield code="b">cbc</subfield>
    <subfield code="c">origcop</subfield>
    <subfield code="d">2</subfield>
    <subfield code="e">ncip</subfield>
    <subfield code="f">20</subfield>
    <subfield code="g">y-gencatlg</subfield>
  </datafield>
  <datafield tag="942" ind1=" " ind2=" ">
    <subfield code="2">ddc</subfield>
    <subfield code="c">BK</subfield>
  </datafield>
  <datafield tag="955" ind1=" " ind2=" ">
    <subfield code="b">xh11 2012-04-17 z-processor</subfield>
    <subfield code="i">xh11 2012-04-17 to Dewey</subfield>
  </datafield>
  <datafield tag="999" ind1=" " ind2=" ">
    <subfield code="c">262</subfield>
    <subfield code="d">262</subfield>
  </datafield>
</record>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to