]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
index.html.in: add missing origin/destination => zone mappings
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 4 Nov 2023 15:07:57 +0000 (11:07 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 4 Nov 2023 15:07:57 +0000 (11:07 -0400)
index.html.in

index ff398ef97ba5c9266fe0d4a889ac7a9f0fc53fcb..c620edd8daf89e5896e04d82fca8189bfb3be148 100644 (file)
        */
       function compute_marc_zone(src, dest) {
 
-        /* Sorted on the first component, then the second */
+        /* Sorted on the first component, then the second.
+         *
+         * Key:
+         *
+         *   $6.00 => 1
+         *   $7.00 => 2
+         *   $8.00 => 3
+         *   $9.00 => 4
+         */
         const zone_map = {
           BAL_BWE: 2,
           BAL_BWI: 1,
           BWE_SEB: 1,
           BWE_WAS: 2,
           BWE_WBL: 2,
+          BWI_SEB: 2,
           BWI_WAS: 3,
-          BWI_WBL: 1
+          BWI_WBL: 1,
+          SEB_WAS: 1,
+          SEB_WBL: 3,
+          WAS_WBL: 4
         };
 
         /* Forward direction key for zone_map */