[Archivesspace_Users_Group] Add a static web page to ArchivesSpace PUI?

James Bullen james at hudmol.com
Fri Nov 1 18:46:39 EDT 2019


Hi Kara,

Yes, there is no need to initialize this plugin.

And, sorry, I have no idea how you might request this as an enhancement.


Cheers,
James


> On Nov 1, 2019, at 3:33 PM, Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu> wrote:
> 
> 
> 
>> On Nov 1, 2019, at 3:06 PM, Kara Hart <kstrosch at wellesley.edu <mailto:kstrosch at wellesley.edu>> wrote:
>> 
>> Thank you James!! and Andrew!   
>> I wasn't sure if I needed to run initialize-plugin.sh on this, so I did and got this.
>> 
>> Fetching: bundler-1.16.1.gem (100%)
>> Successfully installed bundler-1.16.1
>> 1 gem installed
>> 
>> [!] There was an error parsing `Gemfile`: No such file or directory - /var/local/archivesspace/plugins/static_pages/Gemfile. Bundler cannot continue.
>> 
>> I figure I didn't need to initialize and this error doesn't matter, but just checking.
>> 
> 
> 
> Correct. You only have to run that script if the plugin requires some Gems that aren’t already included in that web app core.
> That there isn’t a Gemfile in the plugin directory indicates that it doesn’t need to bundle any additional Gems. 
> And when you run the Bundler, it’s telling you that there is no Gemfile.  
> 
> — Steve. 
> 
> 
> 
>> Also, if I want to put this in as a request for an enhancement for the core code, should I put create a new feature request in Jira the project ANW?  Is that the proper channel?  
>> Thanks again! 
>> Kara
>> 
>> ~~~ Kara S. Hart 
>> Systems Librarian - Library & Technology Services - Wellesley College
>> 
>> 
>> 
>> 
>> On Tue, Oct 29, 2019 at 2:19 PM Mike McDermott <mmcderm2 at bowdoin.edu <mailto:mmcderm2 at bowdoin.edu>> wrote:
>> Nice – looks good. Thanks!
>> 
>>  
>> 
>> From: archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> On Behalf Of James Bullen
>> Sent: Tuesday, October 29, 2019 1:05 PM
>> To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org <mailto:archivesspace_users_group at lyralists.lyrasis.org>>
>> Subject: Re: [Archivesspace_Users_Group] Add a static web page to ArchivesSpace PUI?
>> 
>>  
>> 
>>  
>> 
>> That’s funny - shows how much testing I did.
>> 
>>  
>> 
>> Should be good now.
>> 
>>  
>> 
>> 
>> 
>> 
>> On Oct 29, 2019, at 1:00 PM, Mike McDermott <mmcderm2 at bowdoin.edu <mailto:mmcderm2 at bowdoin.edu>> wrote:
>> 
>>  
>> 
>> 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 <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org <mailto: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 <mailto: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%7Cba385a72cd7e410af06808d75c922b6b%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079655247704983&sdata=3Bng1MYFjxJHlTQ6lJ55akP7E03uaavW2QqOaqaTxMg%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%7Cba385a72cd7e410af06808d75c922b6b%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079655247714980&sdata=hYi3qwEBVeHLtGGn84PtZF4aC4SuJzLwffHekiKGck4%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%7Cba385a72cd7e410af06808d75c922b6b%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079655247714980&sdata=ysuyU6HKML6AVMm6HXc%2BzP5Rk7liO%2F2zVh0yvCg%2Bv4s%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%7Cba385a72cd7e410af06808d75c922b6b%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079655247724977&sdata=ZL81jSG8QlitbdrNcaRKXU%2BmwZ0pPghqHtK8GjdQ0ko%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%7Cba385a72cd7e410af06808d75c922b6b%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079655247724977&sdata=ZL81jSG8QlitbdrNcaRKXU%2BmwZ0pPghqHtK8GjdQ0ko%3D&reserved=0>
>> !DSPAM:5db8703835431594758647! _______________________________________________
>> 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%7Cba385a72cd7e410af06808d75c922b6b%7C984e32e5f98a4600aa3227c3f948abe3%7C1%7C0%7C637079655247734968&sdata=3wk3HPRaSw%2FEWFTj4H8nEVLdTS6E9DjZRGadTNVYobQ%3D&reserved=0>
>> 
>> 
>> !DSPAM:5db8703835431594758647!
>> 
>>  
>> 
>> _______________________________________________
>> 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 <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
>> _______________________________________________
>> 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 <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
> 
> _______________________________________________
> 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 <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
> 
> 
> !DSPAM:5dbc887e54111852515188!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20191101/8a22ee93/attachment.html>


More information about the Archivesspace_Users_Group mailing list