Bug 35416 - Advanced editor interface hang when trying to edit an existing catalogue record
Summary: Advanced editor interface hang when trying to edit an existing catalogue record
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 23.05
Hardware: All All
: P1 - high critical
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-28 13:00 UTC by Iming Chan
Modified: 2024-07-04 20:37 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Screenshot (110.56 KB, image/png)
2023-11-28 13:00 UTC, Iming Chan
Details
Page error messages via F12 (180.79 KB, image/png)
2023-11-29 07:58 UTC, Iming Chan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iming Chan 2023-11-28 13:00:46 UTC
Created attachment 159288 [details]
Screenshot

Advanced editor interface hang when trying to edit an existing catalogue record.  No problem editing using the standard editor.  Switched to Advanced editor, you then get an egg timer with "Loading, please wait ..." message.
Comment 1 Iming Chan 2023-11-29 07:58:44 UTC
Created attachment 159316 [details]
Page error messages via F12
Comment 2 Laessig 2023-11-29 08:37:21 UTC
Same problem here. I get two XML syntax errors. The second one is very detailed and is reproducible with other records.
===
Uncaught Error: Syntax error, unrecognized expression: Invalid-metadata

Content-Type: text/xml; charset=utf-8



<?xml version="1.0" encoding="UTF-8"?>
<record
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
    xmlns="http://www.loc.gov/MARC21/slim">

  <leader>00692naa#a2200241uc#4500</leader>
  <controlfield tag="001">0004522</controlfield>
  <datafield tag="084" ind1=" " ind2=" ">
    <subfield code="a">Te Am. 1 a</subfield>
  </datafield>
  <datafield tag="245" ind1=" " ind2=" ">
    <subfield code="p">Geschichte, politische Kultur, politisches System, Wirtschaft</subfield>
    <subfield code="n">Bd. 1.</subfield>
    <subfield code="a">Länderbericht USA</subfield>
    <subfield code="c">Hrsg.: Willi P. Adams ...</subfield>
  </datafield>
  <datafield tag="300" ind1=" " ind2=" ">
    <subfield code="a">720 S. : 1 Kt.</subfield>
    <subfield code="c">8°</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="4">
    <subfield code="a">Amerika</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="4">
    <subfield code="a">Geschichte</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="4">
    <subfield code="a">Kultur</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="4">
    <subfield code="a">Politik</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="4">
    <subfield code="a">Wirtschaft</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="4">
    <subfield code="a">Religion</subfield>
  </datafield>
  <controlfield tag="008">220426s        gw ||||| |||| 00||||ger  </controlfield>
  <datafield tag="942" ind1=" " ind2=" ">
    <subfield code="2">z</subfield>
    <subfield code="n">0</subfield>
    <subfield code="c">BK</subfield>
  </datafield>
  <datafield tag="264" ind1=" " ind2=" ">
    <subfield code="a">Bonn</subfield>
  </datafield>
  <datafield tag="264" ind1=" " ind2=" ">
    <subfield code="b">Bundeszentrale f. polit. Bildung</subfield>
  </datafield>
  <datafield tag="264" ind1=" " ind2=" ">
    <subfield code="c">1990</subfield>
  </datafield>
  <datafield tag="490" ind1=" " ind2=" ">
    <subfield code="a">Studien zur Geschichte und Politik</subfield>
  </datafield>
  <datafield tag="830" ind1=" " ind2=" ">
    <subfield code="a">Studien zur Geschichte und Politik</subfield>
  </datafield>
  <datafield tag="999" ind1=" " ind2=" ">
    <subfield code="c">10279</subfield>
    <s
===
The XML breaks here and seems not to be generated properly?
Comment 3 Felix Klein 2023-12-01 09:02:53 UTC
I have the same problem. The intranet-error.log shows:

[cgi:error] malformed header from script 'bib': Bad header: Invalid-metadata, referer: /cgi-bin/koha/cataloguing/editor.pl
Comment 4 Katrin Fischer 2023-12-01 09:27:36 UTC
Hi, this is very likely a duplicate to 
Bug 35181 - Can no longer edit sample records with advanced cataloguing editor 
See there for versions this will be fixed in.

*** This bug has been marked as a duplicate of bug 35181 ***
Comment 5 Felix Klein 2023-12-01 09:55:04 UTC
(In reply to Katrin Fischer from comment #4)
> Hi, this is very likely a duplicate to 
> Bug 35181 - Can no longer edit sample records with advanced cataloguing
> editor 
> See there for versions this will be fixed in.
> 
> *** This bug has been marked as a duplicate of bug 35181 ***

Thank you very much! This has solved the problem.