+
catalog._id === catalog._id);
+ const indelem = this.catalogs.findIndex((reccatalog: ICatalogCompleto) => reccatalog._id === catalog._id);
if (indelem >= 0) {
this.catalogs[indelem] = { ...catalog };
this.catalogs[indelem].prodotti_caricati_inmem = true;
diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts
index 81489e6a..559806e2 100755
--- a/src/store/Modules/fieldsTable.ts
+++ b/src/store/Modules/fieldsTable.ts
@@ -512,6 +512,25 @@ export const colmsg_templates = [
AddCol({ name: 'msg_fr', label_trans: 'FRA', fieldtype: costanti.FieldType.html }),
]
+export const colmyscrapingbook = [
+ AddCol({ name: 'isbn', label_trans: 'myscrapingbook.isbn', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'fonte', label_trans: 'myscrapingbook.fonte', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'titolo', label_trans: 'myscrapingbook.titolo', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'titoloOriginale', label_trans: 'myscrapingbook.titoloOriginale', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'sottotitolo', label_trans: 'myscrapingbook.sottotitolo', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'autore', label_trans: 'myscrapingbook.autore', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'pagine', label_trans: 'myscrapingbook.pagina', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'misure', label_trans: 'myscrapingbook.misure', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'edizione', label_trans: 'myscrapingbook.edizione', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'editore', label_trans: 'myscrapingbook.editore', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'date_pub', label_trans: 'myscrapingbook.date_pub', fieldtype: costanti.FieldType.date }),
+ AddCol({ name: 'url', label_trans: 'myscrapingbook.url', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'stelline', label_trans: 'myscrapingbook.stelline', fieldtype: costanti.FieldType.number }),
+ AddCol({ name: 'prezzo', label_trans: 'myscrapingbook.prezzo', fieldtype: costanti.FieldType.string }),
+ AddCol({ name: 'date_extraction', label_trans: 'myscrapingbook.date_extraction', fieldtype: costanti.FieldType.date }),
+ AddCol({ name: 'descrizione_lunga', label_trans: 'myscrapingbook.descrizione_lunga', fieldtype: costanti.FieldType.html }),
+]
+
export const colmypage = [
AddCol({
name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.string,
@@ -4439,6 +4458,13 @@ export const fieldsTable = {
colkey: 'path',
collabel: 'title',
},
+ {
+ value: 'myscrapingbooks',
+ label: 'Estratto Libri',
+ columns: colmyscrapingbook,
+ colkey: 'path',
+ collabel: 'title',
+ },
{
value: 'mypages_id',
label: 'Pagine Web (ID)',
diff --git a/src/store/Products.ts b/src/store/Products.ts
index 23429b84..523e881b 100755
--- a/src/store/Products.ts
+++ b/src/store/Products.ts
@@ -843,6 +843,17 @@ export const useProducts = defineStore('Products', {
return prod ? prod : getRecordProductEmpty();
},
+ async loadMyScrapingBook(isbn: string, forzacaricamento: boolean) {
+ return await Api.SendReq('/myscraping', 'POST', { isbn, forzacaricamento })
+ .then((res) => {
+ if (res.data) {
+ return res.data.myscraping
+ }
+ })
+
+ return null
+ },
+
async loadProducts(loadonlyifempty?: boolean) {
const userStore = useUserStore();
const globalStore = useGlobalStore();
diff --git a/src/views/admin/dbopmacro/dbopmacro.vue b/src/views/admin/dbopmacro/dbopmacro.vue
index ba8eca40..32f382ef 100755
--- a/src/views/admin/dbopmacro/dbopmacro.vue
+++ b/src/views/admin/dbopmacro/dbopmacro.vue
@@ -68,9 +68,14 @@
@click="EseguiFunz('removeProductInfoWithoutDateUpdatedFromGM')"
>
+
+