This is a bug in what standard.php returns. I simplified the parsing a bit and added logging for each object it found and ran it.
Here are the Bookshelf Books:
Code:
Bookshelf Books: gygaxian libram
Bookshelf Books: libram of brickos
Bookshelf Books: libram of candy heart summoning
Bookshelf Books: libram of divine favors
Bookshelf Books: libram of love songs
Bookshelf Books: libram of resolutions
Bookshelf Books: mcphee's grimoire of hilarious object summoning
Bookshelf Books: scratch 'n' sniff sticker tome
Bookshelf Books: sp'n-zor's grimoire of "tasteful" gifts
Bookshelf Books: tome of clip art
Bookshelf Books: tome of snowcone summoning
Bookshelf Books: sorcerers of the shore grimoire
Bookshelf Books: tome of sugar shummoning
Here are the items for each possible bookshelf book:
Code:
Items: gygaxian libram
Items: libram of brickos
Items: libram of candy heart summoning
Items: libram of divine favors
Items: libram of love songs
Items: libram of resolutions
Items: mcphee's grimoire of hilarious object summoning
Items: scratch 'n' sniff sticker tome
Items: sp'n-zor's grimoire of "tasteful" gifts
Items: tome of clip art
Items: tome of snowcone summoning
Items: tome of rad libs
Notice that the tome of rad libs is listed under Items but NOT under Bookshelf Books.
Notice that the sorcerers of the shore grimoire and tome of sugar shummoning appear under Bookshelf Books, but NOT under Items.
The way we check if a Skill is restricted is this:
If it is a Bookshelf Skill, we find the item that corresponds to it and look up that item under Bookshelf Books.
Since Tome of Rad Libs is restricted as an item but is not listed as a Bookshelf Book, we don't find it, and claim it is unrestricted.
Note that if we looked the item up under items rather than Bookshelf Books, we'd find the Tome of Rad Libs and would properly claim Summon Rad Libs is restricted - but we would fail on Summon Alice's Army Cards and Summon Sugar Sheets, since their corresponding items are not listed under items.
Those are KoL bugs.
I can put in a kludge which will check both Bookshelf Books and Items (if necessary) for Bookshelf skills. That will work around the KoL bug, at least.