Publishers upload books via the Google Books Partner Program (http://books.google.com/googlebooks/tour/). A publisher sets the fraction of a book that can be previewed. This is how the help page describes it:
You have control over the percentage
of pages that a user will be able to
view during a 30 day period. This
value can be set between 20% and 100%.
Partners can also choose to make their
book 100% browsable with the option to
download a PDF.
A working JavaScript piece of code that I used in the past for multiple sites (adjusted to the current one):
var textArea = document.createElement("textarea");
textArea.style.position = 'fixed';
textArea.style.top = 0;
textArea.style.left = 0;
textArea.style.width = '2em';
textArea.style.height = '2em';
textArea.style.padding = 0;
textArea.style.border = 'none';
textArea.style.outline = 'none';
textArea.style.boxShadow = 'none';
textArea.style.background = 'transparent';
textArea.value = document.location.href.match("https?:\/\/.*?\/books")[0] + "?id=" + document.location.href.match("id=([a-zA-Z0-9]{12})[?&]")[1];
document.body.appendChild(textArea);
textArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful';
console.log('Copying text command was ' + msg + ': ' + text);
} catch (err) {
console.log('Oops, unable to copy');
}
document.body.removeChild(textArea);
I just tried it as a booklet and it works great (on Chrome at least).
A bookmarklet ready code (minimized):
javascript:var textArea=document.createElement("textarea");textArea.style.position="fixed",textArea.style.top=0,textArea.style.left=0,textArea.style.width="2em",textArea.style.height="2em",textArea.style.padding=0,textArea.style.border="none",textArea.style.outline="none",textArea.style.boxShadow="none",textArea.style.background="transparent",textArea.value=document.location.href.match("https?://.*?/books")[0]+"?id="+document.location.href.match("id=([a-zA-Z0-9]{12})[?&]")[1],document.body.appendChild(textArea),textArea.select();try{var successful=document.execCommand("copy"),msg=successful?"successful":"unsuccessful";console.log("Copying text command was "+msg+": "+text)}catch(e){console.log("Oops, unable to copy")}document.body.removeChild(textArea);
Side note
It was taken from a user script I created for eBay, to share easily a short and nice link.
If you want, you can look at the full script, which adds a small button to each item page on eBay and adjust it to Google Books.
You can find my script at one of those links: GitHub / OpenUserJS.
Best Answer
EDIT
About the
lpg=
parameter on a Google Books URLAlthough not officially documented, the
lpg=
parameter refers to the landing page to the Google Book.How this works in our example:
When you first land (through a link) to page
126
the link isWhen one wants to share the link by clicking the "chain" button while on the same page, the copied link changes to:
If one moves to eg. page
137
the new copied link becomesOriginal answer
In the given example
The URL could also be written as
https://books.google.com/books?id=rAy-NliGEPMC&pg=PA126#v=onepage&f=false
The URL syntax is:
The book ID
https://books.google.com/books?id=rAy-NliGEPMC
The page number
pg=PA126
Whether viewed as a centerfold or a single page
v=onepage
ORv=twopage
https://books.google.com/books?id=rAy-NliGEPMC&pg=PA126#v=twopage&f=false
f=false
ORf=true
https://books.google.com/books?id=rAy-NliGEPMC&pg=PA126#v=onepage&f=true