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

Andreas Roussos <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.koha-community
                   |                            |.org/bugzilla3/show_bug.cgi
                   |                            |?id=40163
           Severity|enhancement                 |normal
                 CC|                            |[email protected]
             Status|CONFIRMED                   |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |ity.org                     |
            Summary|Error when editing field    |XML validation error when
                   |008 in MARC21               |launching the tag editor
                   |(marc21_filed_008.pl value  |for MARC21 fields 006/008
                   |builder)                    |

--- Comment #2 from Andreas Roussos <[email protected]> ---
Apparently, the 006 field is affected as well -- if you launch the tag
editor for this field you get a similar browser pop-up containing the
same XML validation error. I've adjusted the Bug Summary accordingly.

`git bisect` points to commit 1873d97c074f2e501094bba603927b1d87e33706
from Bug 40163, where -- among other things -- the URL scheme for the
koha-community.org website was changed from 'http' to 'https' in the
relevant XML files:

$ git show --format=fuller 1873d97c07 --name-only -- ':*marc21*.xml'
commit 1873d97c074f2e501094bba603927b1d87e33706 (HEAD)
Author:     Tomás Cohen Arazi <[email protected]>
AuthorDate: Wed Jun 18 11:43:47 2025 -0300
Commit:     Lucas Gass <[email protected]>
CommitDate: Tue Sep 23 16:21:29 2025 -0600

    Bug 40163: Fix several http addresses in the code docs

    Signed-off-by: Tomas Cohen Arazi <[email protected]>
    Signed-off-by: Brendan Lawlor <[email protected]>
    Signed-off-by: Martin Renvoize <[email protected]>
    Signed-off-by: Lucas Gass <[email protected]>

koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_006.xml
koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_007.xml
koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_008.xml

$ git show --format=fuller 1873d97c07 */marc21_field_00{6,8}.xml
commit 1873d97c074f2e501094bba603927b1d87e33706 (HEAD)
Author:     Tomás Cohen Arazi <[email protected]>
AuthorDate: Wed Jun 18 11:43:47 2025 -0300
Commit:     Lucas Gass <[email protected]>
CommitDate: Tue Sep 23 16:21:29 2025 -0600

    Bug 40163: Fix several http addresses in the code docs

    Signed-off-by: Tomas Cohen Arazi <[email protected]>
    Signed-off-by: Brendan Lawlor <[email protected]>
    Signed-off-by: Martin Renvoize <[email protected]>
    Signed-off-by: Lucas Gass <[email protected]>

diff --git a/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_006.xml
b/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_006.xml
index f2640f2b6d..7aec5a8a9e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_006.xml
+++ b/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_006.xml
@@ -2,7 +2,7 @@

 <!DOCTYPE stylesheet>

-<Tagfield tag="006" xmlns="http://koha-community.org";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="./marc21_field_CF.xsd">
+<Tagfield tag="006" xmlns="https://koha-community.org";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="./marc21_field_CF.xsd">
   <Material id="BKS"><name>Books</name><description></description>
     <Position pos="00"><name>Form of
material</name><description></description>
       <Value code="a"><description>Language material</description></Value>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_008.xml
b/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_008.xml
index 4097f388ad..7340a891f4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_008.xml
+++ b/koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_008.xml
@@ -2,7 +2,7 @@

 <!DOCTYPE stylesheet>

-<Tagfield tag="008" xmlns="http://koha-community.org";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="./marc21_field_CF.xsd">
+<Tagfield tag="008" xmlns="https://koha-community.org";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="./marc21_field_CF.xsd">
   <Material id="BKS"><name>Books</name><description></description>
     <Position pos="00-05"><name>Date entered on
file</name><description>Computer-generated, six-character numeric string that
indicates the date the MARC record was created. Recorded in the pattern
yymmdd.</description></Position>
     <Position pos="06"><name>Type of date/Publication
status</name><description>One-character alphabetic code that indicates the type
of dates given in 008/07-10 (Date 1) and 008/11-14 (Date 2). For continuing
resources, the code in 008/06 also indicates the publication
status.</description>

The actual problem lies not with the URL scheme change per se, but
rather with how the value builder plugins (marc21_field_00{6,8}.pl)
try to validate the relevant XML files against the Schema Definition
file (marc21_field_CF.xsd), the latter containing two references to
the koha-community.org website that still use the 'http' URL scheme:

$ grep -n http koha-tmpl/intranet-tmpl/prog/en/data/marc21_field_CF.xsd
5:<xs:schema xmlns="http://koha-community.org";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://koha-community.org"; elementFormDefault="qualified"
attributeFormDefault="unqualified" version="1.1">

Modifying line 5 of the XSD file as follows is enough to make the
browser pop-up go away and the tag editor for fields 006/008 to
function correctly once again:

xmlns="http://koha-community.org";           =>
xmlns="https://koha-community.org";
targetNamespace="http://koha-community.org"; =>
targetNamespace="https://koha-community.org";

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to