added loans and searchs by author and category (not tested)