The ISBN entry seems to allow entry of ISBNs in any format, but the Book Review store %ISBN needs to have spaces or hyphens removed for links to work.

Is this something the module should do or is there an easy call in the snippet which would strip non-numeric characters?

Comments

peterx’s picture

Book Review 4.7.0 function bookreview_block() contains code to remove dashes:

        $node = db_fetch_object($result);
        $isbn = preg_replace('/-/', '', $node->isbn);
        $block['subject'] = variable_get('bookreview_store_blocktitle', '');
	      $content = preg_replace('/%ISBN/', $isbn, variable_get('bookreview_store_snippet', ''));
        $block['content'] = $content;

Try 4.7.0 or convert the code back to 4.6.0.

csc4’s picture

Thanks a lot - that's a huge help! Fixed.