Vés al contingut

Tema de Viquipèdia:La taverna/Tecnicismes

La citació automàtica via ISBN i la plantilla ref-llibre, trencades?

9
ESM (discussiócontribucions)

Hola,

ja fa dies que es comenta per altres canals, però sembla que hi ha dos problemes amb les eines de citació que proporciona l'editor visual:

  • Problema 1: l'eina de citació automàtica de l'editor visual, la que es basa en isbn, doi, handles i demés, no funciona. Ho he provat en diverses ocasions, emprant diversos isbn, i el generador em retorna el missatge "No hem pogut generar la citació. Podeu crear-la manualment utilitzant la pestanya «Manual» de dalt." Sorprenentment, amb la URL d'articles de revistes del RACO, per exemple, sí que funciona, però no amb els identificadors del TDX.
  • Problema 2: quan es vol citar manualment un llibre i es va a cita > manual > llibre, el formulari emergent queda en blanc amb el següent missatge: "La plantilla «Plantilla:Ref-llibre» encara no té descripció, però hi pot haver alguna informació a la pàgina de la plantilla."

Idees? He intentat remenar pel phabricator, però no me'n surto de trobar res rellevant.

CarlesVA (discussiócontribucions)

Hola, ara mateix anava a comentar-ho jo... malauradament només puc afegir-me al comentari, sense poder donar-hi cap solució.

Mariusmm (discussiócontribucions)

Jo estic igual, potser @Amadalvarez pot donar una mica de llum al tema?

Toniher (discussiócontribucions)

Hola, potser en @Vriullop, a nivell d'API sembla funcionar: https://ca.wikipedia.org/api/rest_v1/data/citation/mediawiki/8489630232?action=query&format=json És sospitós que aquí na @Mvolz (WMF) hi ha tocat i ha deixat de funcionar... https://ca.wikipedia.org/w/index.php?title=MediaWiki:Citoid-template-type-map.json&action=history Com a aproximació urgent, no sé si mirem de revertir això i veure què passa: Especial:Contribucions/Mvolz (WMF) Hi Mvolz, could you provide some feedback about the changes? Thanks!

ESM (discussiócontribucions)

Just translating what's happening in case @Mvolz (WMF) needs some input:

  1. The automatic citation tool used with the visual editor seems to be broken somehow, but just partially: it won't generate citations when introducing a ISBN number; however, it seems to work fine when using URLs from a publicacions repo (raco) but doesn't work when using DOIS from our staple theses repo (tdx).
  2. When using the manual citation tool to introduce data from a book and generate the citation, the screen where the form to be filled used to appear remains blank with a message stating that something is wrong with the template "plantilla:ref-llibre", which is the one used in cawiki to cite books.

Thoughts? It seems you made some changes in our citoid mapping and maybe something didn't work out as expected. Thanks!

Townie (discussiócontribucions)

I've tried reverting @Mvolz (WMF):'s changes and that didn't seem to fix anything :/

Townie (discussiócontribucions)

Nevermind, it worked. We had to purge the pages with the changes.

Mvolz (WMF) (discussiócontribucions)

Hello, and sorry for this, and thank you for reverting.

I have made another change here adding in the required keys : https://ca.wikipedia.org/w/index.php?title=MediaWiki:Citoid-template-type-map.json&oldid=19657419

I have tested with ISBN and everything seems to be working but if you could also check as well that would be great. This change shouldn't affect anything that is currently working as it just adds in additional templates, which will make additional urls work.

Thanks again!

Vriullop (discussiócontribucions)

Maybe the problem was "bookSection": "Ref-publicació" instead of current "Ref-llibre".

Townie, pots provar de recuperar les altres edicions per veure si només era això?

Resposta a «La citació automàtica via ISBN i la plantilla ref-llibre, trencades?»