+++ /dev/null
-
-{
- "msgtype: "ORDERS",
- "msg": ["order", {
- "po_number":6,
- "date":"20100301",
- "buyer":[
- {"id":"6666666",
- "reference":{"API":"6666666"}}
- ],
- "vendor":[ "0672891",
- {"id-qualifier":"91", "reference":{"IA":"1"}, "id":"0672891"}
- ],
- "currency":"USD",
- "items":[
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"38"},
- {"id-qualifier":"IB","id":""}
- ],
- "price":9.99,
- "desc":[
- {"BTI":"Twilight zone/twilight tone / arr. Paul Jennings"},
- {"BPU":"Jenson Publications,"},
- {"BPD":"1982, c1979"},
- {"BPH":"1 score + parts"}
- ],
- "quantity":4 },
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"40"},
- {"id-qualifier":"IB","id":"0393048799"}
- ],
- "price":16.44,
- "desc":[
- {"BTI":"The twilight of American culture / Morris Berman."},
- {"BPU":"Norton,"},
- {"BPD":"c2000."},
- {"BPH":"xiv, 205 p. ;"}
- ],
- "quantity":3 },
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"27"},
- {"id-qualifier":"IB","id":"0439139597"}
- ],
- "price":14.99,
- "desc":[
- {"BTI":"Harry Potter and the goblet of fire / by J.K. Rowling ; illustrations by Mary GrandPr\u00e9."},
- {"BPU":"Arthur A. Levine Books,"},
- {"BPD":"c2000."},
- {"BPH":"xi, 734 p. :"}
- ],
- "quantity":19 },
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"30"},
- {"id-qualifier":"IB","id":"0786222735"}
- ],
- "price":15.99,
- "desc":[
- {"BTI":"Harry Potter and the Chamber of Secrets / J.K. Rowling ; illustrations by Mary GrandPr\u00e9."},
- {"BPU":"Thorndike Press,"},
- {"BPD":"1999."},
- {"BPH":"464 p. ; 22 cm."}
- ],
- "quantity":4 }
-
- ],
- "line_items":4
- }],
- "recipient":"0672891",
- "sender":"6666666"
-}
-
+++ /dev/null
-
-{
- "msg_type": "ORDERS",
- "msg": ["order", {
- "po_number":6,
- "date":"20100301",
- "buyer":[
- {"id":"6666666",
- "reference":{"API":"6666666"}}
- ],
- "vendor":[ "0672891",
- {"id-qualifier":"91", "reference":{"IA":"1"}, "id":"0672891"}
- ],
- "currency":"USD",
- "items":[
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"38"},
- {"id-qualifier":"IB","id":""}
- ],
- "price":9.99,
- "desc":[
- {"BTI":"Twilight zone/twilight tone / arr. Paul Jennings"},
- {"BPU":"Jenson Publications,"},
- {"BPD":"1982, c1979"},
- {"BPH":"1 score + parts"}
- ],
- "quantity":4 },
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"40"},
- {"id-qualifier":"IB","id":"0393048799"}
- ],
- "price":16.44,
- "desc":[
- {"BTI":"The twilight of American culture / Morris Berman."},
- {"BPU":"Norton,"},
- {"BPD":"c2000."},
- {"BPH":"xiv, 205 p. ;"}
- ],
- "quantity":3 },
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"27"},
- {"id-qualifier":"IB","id":"0439139597"}
- ],
- "price":14.99,
- "desc":[
- {"BTI":"Harry Potter and the goblet of fire / by J.K. Rowling ; illustrations by Mary GrandPr\u00e9."},
- {"BPU":"Arthur A. Levine Books,"},
- {"BPD":"c2000."},
- {"BPH":"xi, 734 p. :"}
- ],
- "quantity":19 },
-
- {
- "identifiers":[
- {"id-qualifier":"SA","id":"30"},
- {"id-qualifier":"IB","id":"0786222735"}
- ],
- "price":15.99,
- "desc":[
- {"BTI":"Harry Potter and the Chamber of Secrets / J.K. Rowling ; illustrations by Mary GrandPr\u00e9."},
- {"BPU":"Thorndike Press,"},
- {"BPD":"1999."},
- {"BPH":"464 p. ; 22 cm."}
- ],
- "quantity":4 }
-
- ],
- "line_items":4
- }],
- "recipient":"0672891",
- "sender":"6666666"
-}
$ctx->{theme} = $cgi->cookie(OILS_HTTP_COOKIE_THEME) || 'default';
$ctx->{proto} = $cgi->https ? 'https' : 'http';
$ctx->{ext_proto} = $ctx->{proto};
- my $default_locale = $r->dir_config('OILSWebDefaultLocale') || 'en_us';
+ my $default_locale = $r->dir_config('OILSWebDefaultLocale') || 'en-us';
my @template_paths = uniq $r->dir_config->get('OILSWebTemplatePath');
$ctx->{template_paths} = [ reverse @template_paths ];
# internally uses 'en-US', 'fr-CA', 'fr-FR' (always with the 2 lowercase,
# hyphen, 2 uppercase convention)
sub parse_eg_locale {
- my $ua_locale = shift || 'en_us';
+ my $ua_locale = shift || 'en-us';
$ua_locale =~ m/^(..).?(..)?$/;
my $lang_code = lc($1);