User talk:Inductiveload/metadata

From Wikisource
Latest comment: 13 years ago by Inductiveload in topic Index
Jump to navigation Jump to search

Index[edit]

Phe says that the index is our metadata space and we can just add fields to that space and then transclude what we want (at great performance expense apparently) onto the mainspace. If this is true why don't we just create a template that includes all the data that Commons:Template:Book holds that is relevant to us and then expand from there?--Doug.(talk contribs) 20:46, 11 March 2011 (UTC)Reply

Another way is to write (client side, i.e. the readers browser) JS which slurps data out of the index page on demand by the user. This way, the server doesn't need to do the transclusions, and the metadata is only retrieved if it is asked for. Inductiveloadtalk/contribs 03:24, 13 March 2011 (UTC)Reply
What do you mean by slurping data ? use it to preload in the edit form some data to fill up template and save them, or dynamically generate page ? The first one doesn't require javascript on reader side, the second need it. Beside that, javascript way will likely need to reimplement in .js some code already here in the extension. For the "at great performance expense apparently" I pointed out on IRC, I was wrong, generating a complete Index: page is costly, getting metadata from an Index: is a lot of less costly. — Phe (talk) 10:33, 13 March 2011 (UTC)Reply
I had some idea that it would be presented in a pop-up/slide-out frame, or a dynamically added <div> above (or below) the header, rather than in a whole new page. The client-js would get the data every time, as the data would already be stored in a template at the metadata page. Inductiveloadtalk/contribs 16:43, 24 March 2011 (UTC)Reply

Back to Doug's suggestion why don't we just create a template that includes all the data that Commons:Template:Book holds that is relevant to us and then expand from there?:

Yes, but I think we could just expand the underlying template on the Index page. Turn off JS, and you'll see it. It is found at MediaWiki:Proofreadpage_index_template. If we change this, we also need to change the JS which adds the input form, and preloads the template. Inductiveloadtalk/contribs 16:46, 24 March 2011 (UTC)Reply