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

Bernardo Gonzalez Kriegel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Bernardo Gonzalez Kriegel <[email protected]> ---
(In reply to Jonathan Druart from comment #6)
> Bernardo, I have no idea how to fix that, but having the datatype in the yml
> sounds wrong to me.
> We could retrieve it from the DBIC schema, but that will make the process
> heavier (time)

Jonathan, yeah, sounds wrong but inevitable I think.
I was faced with the same problem a couple of years ago, when I wrote a script
to build sql from xml.
I was thinking now in something like

tables:
  - marc_tag_structure:
      translatable: [ liblibrarian, libopac ]
      numeric: [ repeatable, mandatory ]
      multiline: []
      rows:
        - tagfield: "999"
          liblibrarian: "SYSTEM CONTROL NUMBERS (KOHA)"
          libopac: "SYSTEM CONTROL NUMBERS (KOHA)"
          repeatable: 1
          mandatory: 0
          authorised_value: ""
          frameworkcode: ""

added 'numeric' to list those fields.
That will be ignored everywhere except for yml2sub

Anyway, I liked your other modifications to Bug 24883.
Could you consider to re-add your patches except yml2sql sub?
Let that sub live here until we found a clean way to make it works.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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