I have a table with information about all loans a client had. This table looks like this
Book_Id | BookType_Title | StartDate | EndDate |
---------+----------------+-----------+---------------+
1234 | Test1 | 01.01.2013 | 01.02.2013 |
1337 | Test1 | 01.01.2013 | 01.02.2013 |
2814 | Test3 | 01.01.2013 | 01.02.2013 |
3812 | Test4 | 01.01.2013 | 01.02.2013 |
Okay so as you can see, the Book Id 1234 and 1337 refers to the same BookType, which has the title Test1. 2814 and 3812 refer to other BookTypes.
The user (of the program) should be able to click either on the book's id to get information about this specific Book or on the booktype's title to get information about this specific BookType.
Now, there are different ways where to put the links:
- I could make 1234, 1337, etc. a link but the program should be as intuitive as possible. So having different links in a row could make it a bit confusingly.
- I could do it with javascript (jquery): When the user clicks on the row, a popup asks him, what to open: the book's information page or the booktype's information page.
I'd really appreciate any other thoughts!
What are pros and cons of the 2 ways explained above?