notshi / d-preview

Generate a private d-preview site with IATI xml.
http://d-preview.codeforiati.org
1 stars 0 forks source link

Preview of IATI org files #28

Open stevieflow opened 2 years ago

stevieflow commented 2 years ago

It doesnt look to be the case that an org file can be previewed.... would there be any chance to make that possible?

Thanks!

xriss commented 2 years ago

It should work, I think, maybe?

Would just have to go to the right page after import to view in savi. Is that the problem?

Otherwise I'll take a look.

also a quick switcheroo to html would work for an org file since it is only really going to be useful as a savi view anyway.

https://notshi.github.io/IATIswitcheroo/

notshi commented 2 years ago

Can confirm it doesn't work with this org file as an example.

Preview link for that org file.

It does, however, work on d-portal.

notshi commented 2 years ago

Ok - looks like it does work but like @xriss said, you need the right page.

Either of these pages should work.

  1. http://071b09ae4785700f06ae6f717da7125e.d-preview.codeforiati.org/savi/?pid=CA-3
  2. http://071b09ae4785700f06ae6f717da7125e.d-preview.codeforiati.org/ctrack.html?reporting_ref=CA-3#view=main

Append the url with /savi/?pid=org_id or /ctrack.html?reporting_ref=org_id#view=main.

Since this dataset does not include any activities, it doesn't show up on the front page.

The org file view was a recent addition to d-portal and there hasn't been any updates to it. It could be a nice feature to look into (if it has support)!

In a sense, Switcheroo is probably the easiest way to look at an org file, albeit being a print-friendly version of SAVi.