<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>leva</author_name>
  <author_url>https://blog.hatena.ne.jp/leva/</author_url>
  <blog_title>Liner Note on Hatena</blog_title>
  <blog_url>https://leva.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>使う人がいるかわからんが、図書系のWeb APIを使う場合、必須なので誰かいるかもしれん。ということで置いておく。いまのところ、ASIN(Amazon管理コード)はISBN10と同義なのでISBN13からASINへの変換はこれで足りるけど、一応Amazon側は将来的な仕様変更の可能性も残しているので、変更になったらここにASIN変換用コードをたさんといかんな。 &lt;?php function ISBN_9to10($isbn){ // 総和を求める for ($digit=0, $i=0; $i&lt;9; $i++){ $digit += $isbn{$i} * (10 - $i); } // 11…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fleva.hatenadiary.org%2Fentry%2F20081117%2F1226907357&quot; title=&quot; ISBN10/13 相互変換用コード - Liner Note on Hatena&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-17 16:35:57</published>
  <title> ISBN10/13 相互変換用コード</title>
  <type>rich</type>
  <url>https://leva.hatenadiary.org/entry/20081117/1226907357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
