- Joined
- Dec 31, 2022
- Messages
- 12
- Reaction score
- 1
Good evening, could you help me, please? From this page I run this script, which extracts, in the "Nome" field, the publisher from the bibliographic item (Feltrinelli, in the example). I would like the script to be executed only once, ie it has to be disabled when on the previous page there is the expression "Editore moderno" under the heading "Persone, istituzioni e famiglie". In this case, in fact, I would have to extract (manually) in the "Nome" field, the author from the bibliographic item. I tried replacing the last line of the script with this:
but with this change the publisher is not extracted the first time either.
JavaScript:
var elencoLabel = document.querySelector("span.grid-6.label");
if (!elencoLabel.includes("Editore moderno"))
{
impostaNome(getNome(document.querySelector('div.meta.tito div.evidence.isbd').innerText));
}
but with this change the publisher is not extracted the first time either.