[Archivesspace_Users_Group] Add a static web page to ArchivesSpace PUI?
Mike McDermott
mmcderm2 at bowdoin.edu
Tue Oct 29 13:00:25 EDT 2019
This looks really cool.
But – What am I doing wrong.
When I put html in the file to be included, it comes out on the page looking like this:
<div class="row>">
<h2>This is a test</h2>
<p>This is always a test</p>
<p>Tests are what I do.</p>
<h3>here is a heading</h3>
<p>This is always a test</p>
<p>Tests are what I do.</p>
<h3>here is a heading</h3>
<p>This is always a test</p>
<p>Tests are what I do.</p>
</div>
So it is rendered on the page as looking like html code instead of the page elements.
Mike McDermott
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Andrew Morrison
Sent: Tuesday, October 29, 2019 10:55 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Add a static web page to ArchivesSpace PUI?
Hi James,
Your original version will be useful to us, because we're probably going to want to add extra help pages to our staff interface for cataloguers transferring over from Archivists' Toolkit. And reading the static HTML from a file instead of building from ERB templates means they can be updated without restarting the service.
Andrew.
On Tue, 2019-10-29 at 09:35 -0400, James Bullen wrote:
Just a quick follow up on this,
I had misread the spec and only provided the static page facility on the staff interface - should have been on the PUI. Andrew Morrison noticed my oops and corrected it, so now it should work on both.
Cheers,
James
On Oct 28, 2019, at 6:02 PM, James Bullen <james at hudmol.com<mailto:james at hudmol.com>> wrote:
Hi Kara,
This seemed like a useful thing that I don’t think exists yet, so I made a plugin to do it:
https://github.com/hudmol/static_pages<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhudmol%2Fstatic_pages&data=02%7C01%7Cmmcderm2%40bowdoin.edu%7C0ecce92cdd1440de521708d75c7ff030%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079576880523489&sdata=Sa2ItRFCDaOmsovi3KCfXPus5ax6CzQOUWX%2FizUzXQ0%3D&reserved=0>
Maybe it can be a useful starting point.
Cheers,
James
On Oct 28, 2019, at 3:52 PM, Kara Hart <kstrosch at wellesley.edu<mailto:kstrosch at wellesley.edu>> wrote:
Hi all,
I want to be able to add static web pages to ArchivesSpace. I'd like to incorporate the header, top nav, and footer and be able to just add what I want in the middle. I'm basically hoping to create general FAQ, search help, about pages that live in my ArchivesSpace local plugin. Is this possible?
I did find a way to add a page by putting a .html doc into /archivesspace/plugins/local/public/assets, but I have to manually copy in the head, navigation, header, and footer, which is obviously not ideal for updating and probably other reasons.
If there isn't a way to do this, where is the proper place to suggest this enhancement? Should I create a new feature request in Jira the project ANW? (https://archivesspace.atlassian.net/projects/ANW/issues/?filter=allissues&=<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchivesspace.atlassian.net%2Fprojects%2FANW%2Fissues%2F%3Ffilter%3Dallissues%26%3D&data=02%7C01%7Cmmcderm2%40bowdoin.edu%7C0ecce92cdd1440de521708d75c7ff030%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079576880533482&sdata=qcQNoE8PClS8cRShKKCSTKU6bhpY4vG72bH1h%2FXsr%2Bk%3D&reserved=0>)
Thanks for any help,
Kara
~~~ Kara S. Hart
Systems Librarian - Library & Technology Services
-
Wellesley College
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=02%7C01%7Cmmcderm2%40bowdoin.edu%7C0ecce92cdd1440de521708d75c7ff030%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079576880533482&sdata=pI8hr65hm2FcgeZ6d9oxFYbBw31s55LrdUKGmkQMKc4%3D&reserved=0>
!DSPAM:5db7471d288581084719066!
!DSPAM:5db76577327211158617254! _______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=02%7C01%7Cmmcderm2%40bowdoin.edu%7C0ecce92cdd1440de521708d75c7ff030%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079576880543481&sdata=75%2BfR6c16b1BF%2Fqisguqzh1Jh5CRRKOMJNQmZTjoiiM%3D&reserved=0>
!DSPAM:5db76577327211158617254!
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=02%7C01%7Cmmcderm2%40bowdoin.edu%7C0ecce92cdd1440de521708d75c7ff030%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079576880553478&sdata=z3z%2FEBtJI2eNbGOiQpcK78g8s0HbDPiKBbzr03ZLIGI%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20191029/36f5931e/attachment.html>
More information about the Archivesspace_Users_Group
mailing list