$execute store result entity @s item.components."minecraft:custom_model_data".floats[0] float 1 run data get storage doors:main library.books[$(index)].shape
$execute store result entity @s item.components."minecraft:custom_model_data".floats[1] float 1 run data get storage doors:main library.books[$(index)].number

$data modify storage doors:main library.found_books.$(index)_shape set from storage doors:main library.books[$(index)].shape
$data modify storage doors:main library.found_books.$(index)_number set from storage doors:main library.books[$(index)].number