Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11344

.dba file for isbn datatype needs to be regenerated on every build

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0rc1
    • None
    • Misc
    • None

    Description

      The setup wizard will read ./kernel/classes/datatypes/ezisbn/share/db_data.dba and insert the data in the database (this file contain the ISBN-13 ranges published by ISBN International)

      This .dba file must be regenerated on every release so that we include any updates published by ISBN International.
      The .dba file is updated by the following method :

      • Download a ".js" file containing the list of ranges using the following link: http://www.isbn-international.org/converter/ranges.js
      • Navigate into the eZ Publish directory and copy the downloaded file there.
      • Run the "updateisbn13.php" script using the following shell command: php bin/php/updateisbn13.php --file=ranges.js
      • Create the .dba file based on ranges now stored in db : php bin/php/ezsqldumpisbndata.php
      • commit kernel/classes/datatypes/ezisbn/share/db_data.dba

      Release routines needs to be updated accordingly

      In 3.10 beta1 we also shipped kernel/classes/datatypes/ezisbn/sql/mysql/cleandata.sql and kernel/classes/datatypes/ezisbn/sql/postgresql/cleandata.sql.
      I don't think it is necessary to include those file in the distro ( since they won't be in use)

      Attachments

        Activity

          People

            Unassigned Unassigned
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: