Re: [Archivesspace_Users_Group] Digital Object Edit Batch

2021-12-16 Thread Majewski, Steven Dennis (sdm7g)

How are the links encoded ? In file_version/file_uri ? 
If that is the case it should be easy to change in MySQL. 
( Note that if you make changes to the database via MySQL rather than the API, 
you will need to trigger a full reindex, as going thru the backdoor doesn’t 
trigger an individual resource reindex. ) 

— Steve. 


> On Dec 16, 2021, at 4:03 PM, Pryse, JA  wrote:
> 
> Hello everyone, I need to batch edit a bunch of digital objects that contain 
> links to an internal content management system. I know that I can import data 
> that created new digital objects and have played around with trying to 
> ‘update’ the files with no luck (in a batch or bulk sense). There are 
> thousands of DOs that need to be edited and cannot do this one at a time. 
> Also, I cannot break the link in anyway shape or form as it does cause a 
> mess. I have copied all of the exported data with links and such to the new 
> CSV but, of course, it just wants to create new records and none of the 
> information in the new csv will be unique to the catalog. I do not want to 
> remove the records and then upload new ones (I did try this on a few) but 
> this broke the links. I have no idea where to go from here.
>  
> Thanks, 
>  
> JA Pryse, Curator and Senior Archivist III
> Carl Albert Congressional Research and Studies Center
> University of Oklahoma
>  
> Facebook: @CarlAlbertCenter 
> Twitter: @CarlAlbertCtr 
> YouTube: Congressional Archives Carl Albert 
> 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Override staff ead to pdf export XSL in Plugin?

2021-11-04 Thread Majewski, Steven Dennis (sdm7g)

Not sure exactly what you mean by “without patching the core code directly” . 

You can edit stylesheets/as-ead-pdf.xsl in place without having to go back to 
source and rebuild distribution, which is usually the case for objects that 
don’t get packed into the .war files and are extracted into temp directories 
when run. ( the same as reports directory, which can be modified in place 
instead of using a plugin. ) 

( Not sure if that’s what you’re asking, or if that’s what you’re trying to 
avoid. )

— Steve M.



> On Nov 4, 2021, at 1:13 PM, Joshua D. Shaw  
> wrote:
> 
> Before I do a deep code dive, has anyone tried or does anyone know if its 
> possible to override the core ead->pdf export stylesheet 
> (https://github.com/archivesspace/archivesspace/blob/v3.1.0/stylesheets/as-ead-pdf.xsl
>  
> )
>  without patching the core code directly?
> 
> For the plugin I'm writing, I need to render a svg within an odd note, so I 
> need to fiddle with that section.
> 
> Thanks!
> Joshua
> 
> ___
> Joshua Shaw (he, him)
> Library Web & Application Developer
> Digital Library Technologies Group
> Dartmouth College
> 603.646.0405
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


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

2021-09-21 Thread Majewski, Steven Dennis (sdm7g)
In our plugins/local/public, I just put a static html file into 
local/plugin/assets/ and then add a link to it in 
local/public/views/layout_head.html.erb:

  $( 'section#navigation >nav.navbar ul.nav ').append( 'HELP’);




> On Sep 21, 2021, at 11:19 AM, Peter Heiner  wrote:
> 
> Hi all,
> 
> While this will probably solve Amy's problem, it may not be a good idea for a 
> busy site to use the whole RoR stack to do this.
> It would probably be better to use Middlemanto generate static pages using 
> the AS partials and serve them using Apache or similar.
> 
> p
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of Kara 
> Hart 
> Sent: 21 September 2021 16:07
> To: Archivesspace Users Group 
> ; Amy Winter 
> 
> Subject: Re: [Archivesspace_Users_Group] Add a static web page to 
> ArchivesSpace PUI?
>  
> Hi Amy, I still have a copy of the original I can share with you.
> 
> Kara
> ~ Kara S. Hart 
> Systems Librarian - Library & Technology Services  -  Wellesley College
> 
> 
> On Mon, Sep 20, 2021 at 6:13 PM Amy Winter  > wrote:
> Does anyone know where I could get a copy of the plugin/template to add a 
> static page, referred to in the 2019 post from James, below.  The repo is 
> gone and not in the Wayback Machine either:  
> https://github.com/hudmol/static_pages 
>   
>  
> I can’t find any other reference to this in the list archives or on Google.
>  
> Thanks for any help,
>  
> Amy E. Winter
> Library Information Technology
> University of New Mexico
> 505.277.1233
>  
>  
> [Archivesspace_Users_Group] Add a static web page to ArchivesSpace PUI?
> 
> James Bullen james at hudmol.com  
> 
> Mon Oct 28 18:02:16 EDT 2019
> Previous message: [Archivesspace_Users_Group] Add a static web page to 
> ArchivesSpace PUI?  
> 
> Next message: [Archivesspace_Users_Group] Add a static web page to 
> ArchivesSpace PUI?  
> 
> Messages sorted by: [ date ] 
> 
>  [ thread ] 
> 
>  [ subject ] 
> 
>  [ author ] 
> 
> 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 
>  
>  >
>  
> Maybe it can be a useful starting point.
>  
>  
> Cheers,
> James
>  
>  
>  
> > On Oct 28, 2019, at 3:52 PM, Kara Hart  > > 
> > 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&=
> >  
> > 
> >  
> >  >  
> > >)
> > 
> > Thanks for any help,
> > Kara
> > 
> > 
> > ~~~ Kara S. Hart 
> > Systems Librarian - Library & Technology Services - Wellesley College
> > 
> > 
> > !DSPAM:5db7471d288581084719066! 
> > ___
> > Archivesspace_Users_Group mailing list
> > Archivesspace_Users_Group at lyralists.lyrasis.org 
> > 
> > http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> > 

Re: [Archivesspace_Users_Group] Unpublished records and OAI

2021-08-05 Thread Majewski, Steven Dennis (sdm7g)

I’ve definitely seen deletions logged in my EAD OAI harvests, however, I 
haven’t tried to trace what actions are connected with those deletions or how 
it handles unpublishing portions or archival objects. 
I would suppose that it should update the EAD on the next harvest dropping the 
unpublished content, and a deletion only occurs when the top level resource is 
unpublished, but I can’t confirm that is does what I assume it should. 
( I would have to set up some test instances, as for most of the sites I’m 
harvesting from, I can’t view resources in the staff interface to check against 
the OAI harvest. ) 


— Steve. 

> On Aug 5, 2021, at 12:27 PM, Andy Boze  wrote:
> 
> Hi, all.
> 
> I'm hoping someone can enlighten me as to the expected behavior of 
> unpublished, put previously published, records and OAI harvest. In the 
> documentation at < 
> https://archivesspace.github.io/tech-docs/architecture/oai-pmh/ >, it states 
> "Unpublished and suppressed records and elements are not included in any of 
> the OAI-PMH responses."
> 
> We've tested that, and it works as described; however, if a published record 
> is harvested, then the record is unpublished, should a subsequent harvest 
> indicate that the record has been deleted? If not, then any system that has 
> harvested the record will retain it. From what I can tell, ASpace does not 
> send an OAI deleted status for records that become unpublished, which seems 
> contrary to information I found at < 
> https://www.openarchives.org/OAI/openarchivesprotocol.html#DeletedRecords >, 
> "[i]f a record is no longer available then it is said to be deleted."
> 
> Does anyone have any thoughts? Is there possibly an OAI setting I've missed? 
> Thanks!
> 
> -- 
> Andy Boze, Associate Librarian
> University of Notre Dame
> 271H Hesburgh Library
> (574) 631-8708
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Unable to edit / delete accessions or resources after upgrade to MySQL database

2021-07-14 Thread Majewski, Steven Dennis (sdm7g)

If you switched to a new DB, but did not delete the solr indexes in 
data/solr_index/ or deleted the files in data/indexer_state/ and 
data/indexer_pui_state/ to trigger a reindex then the data in DB and SOLR will 
be out of sync. 

If this is the case, the PUI, which pulls data from SOLR rather than the DB 
will be incorrect. 
The staff interface pulls data from both sources, depending on the action, and 
so will sometimes show you something in the index that isn’t there when you 
attempt to edit it. 

The backend API calls usually pull from the DB for non search functions. 

Ask them to delete the files in archivesspace/indexer*state/*  and wait for 
reindex to complete. 

— Steve Majewski


> On Jul 14, 2021, at 4:02 PM, Merryman, Ann  wrote:
> 
> Good afternoon hive mind…long time lurker, first time writer.  J  I’m going 
> to try to make this question concise:
>  
> ·I have just been upgraded to v2.8.1 (from v1.3.0…don’t judge!  Lol) 
> on a locally-hosted instance of AS, managed by my university’s IT department.
> ·When my instance was upgraded, I got the following warning message:
> Database Warning: You are currently using the embedded database (Apache 
> Derby). The embedded database is for testing/demo purposes only. You should 
> use MySQL for any data intended for production, including data in a test 
> instance that you intend to move over to a production instance.
>  
> ·The vendor let us know that there were not any upgrade paths from 
> the demo database to MySQL, and the information would have to be re-entered 
> (this is fine, as I had backed up everything and could re-enter)
> ·Once IT built the MySQL database, however, all the accession and 
> resource records  actually showed up.  ??? 
>  
> The problem is, while I can *see* the records on the back end, I can’t edit 
> or delete them.  However, they are visible and searchable on the PUI.  I’ve 
> attached a few images for reference. 
>  
> I’m trying to determine what the best course of action might be before I go 
> back to my IT department, as I’m going to have to explain what the issue is 
> to them as best I can (they’re not really familiar with AS or archival 
> processes, unfortunately).  I’m not clear on why the data pulled over if 
> there wasn’t a path, and I’m not tech savvy enough to guess at what my IT 
> department did.  I could also email AS tech support, but I thought I’d start 
> here to see if anyone has seen this or has something to try first.  
>  
> Any thoughts or suggestions from the group would be greatly appreciated, or 
> even just sympathetic noises.  J  
>  
> Thanks so much,
>  
> Ann
>  
> “For the things we have to learn before we can do them, we learn by doing 
> them.” ~ Aristotle
>  
> Ann E. Merryman, MLIS
> Associate Librarian
> Coordinator of Archives and Special Collections
> 
> USC Upstate, Library 263
> 800 University Way
> Spartanburg, SC 29303
> Office:  864-503-5275
> merry...@uscupstate.edu 
>  
>  1.JPG>___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Updating archivesspace and plugin results in two plugin buttons

2021-04-27 Thread Majewski, Steven Dennis (sdm7g)


Those later releases include the functionality of the excel plugin, and uses a 
newer version of the same Gems.
You should remove the excel plugin from the archivesspace plug-ins directory 
and remove the entry in the config file and restart.

Sent from my iPhone

On Apr 27, 2021, at 11:56, Tam Mayeshiba  wrote:


Hello ArchivesSpace User Group,

(Apologies if this message double-posts. I didn't see my previous message 
appear on the mailing list, so I am sending it again.)

I am having an issue where duplicate plugin buttons are showing up in the 
Resource plugin bar.

This happens while upgrading ArchivesSpace from version 2.7.0 to either version 
2.8.1 or 3.0.0-RC2. The plugin is the aspace-import-excel plugin.

When I upgrade ArchivesSpace, I get an error message
"

[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice 
with different version requirements.

You specified: rubyXL (~> 3.4, >= 3.4.9) and rubyXL (= 3.3.29). Bundler cannot 
continue.

"
I can fix this error message by editing the aspace-import-excel plugin's 
Gemfile to require rubyXL ~>3.4, >=3.4.9. This is true of either plugin version 
2.1.17 or version 3.0.4.

However, once I get ArchivesSpace running, the plugin bar for a Resource record 
shows two of the aspace-import-excel plugin buttons, "Load via Spreadsheet"

I have also tried to remove the plugin entirely from config.rb and restart, but 
in that case, there is still a single "Load via Spreadsheet" button where I 
would expect there to be none.

Is there some kind of plugin cache or set of temporary files I should be 
clearing out? I tried clearing data/tmp, but is there somewhere else to look?

Thanks,
Tam


Tam Mayeshiba

Linux Systems Administrator

UW-Madison Library Technology Group



___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Should digital object file_uri field allow non URI data?

2021-04-19 Thread Majewski, Steven Dennis (sdm7g)

I would think ‘A’, but that’s based on that the field is labeled “File URI” so 
I expect something that looks like a URI, and the fact that some notes in 
ArchivesSpace are explicitly labeled as allowing mixed content, and that has 
made me assume that allowing mixed content is not the default. But I guess that 
would not rule out ‘C’ as the original intention. 

(Sometimes, if I assume something long enough, it turns into a rule in my 
head!) 

I would also note that where mixed content is allowed, it doesn’t appear to be 
validated, and I’m seeing a lot of examples in the wild of invalid EAD exported 
with missing end tags, undeclared namespaces and other issues that prevent 
parsing EAD exported from ArchivesSpace. We probably should add a validation 
step where mixed content is allowed to attempt to parse the note as an XML 
fragment, and not accept the edit if it fails. ( I’ve been meaning to get 
around to testing this to see if there are any side effects or spurious 
rejections from doing this. ) 

— Steve. 

> On Apr 19, 2021, at 11:50 AM, Brian Hoffman  wrote:
> 
> Hi,
>  
> We have been trying to understand what to do about cases like the following:
>  
> http://sandbox.archivesspace.org/digital_objects/2/edit#tree::digital_object_2
>  
> 
>  
> 
>  
> As things are now, ArchivesSpace will allow a value like this, but various 
> renderings and transformations will not work as expected. I am wondering if:
>  
> This is a legacy bug; the field should have originally validated values to 
> ensure they were URIs
> This is a presentation layer bug: non URIs should be allowed in the file_uri 
> field, but HTML and PDF presentations need to accommodate that.
> Everything is fine. Users should be able to put whatever they want in 
> file_uri, but if they want it to present right they need to write a plugin.
>  
> This isn’t an academic question, as this is currently happening with records 
> created automatically by Preservica software.
>  
> Brian
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - Preservica added content?

2021-04-01 Thread Majewski, Steven Dennis (sdm7g)
I think the issue is not the escaped character codes but the fact the the href 
URLs for some of those daoloc-s start with
' On Apr 1, 2021, at 1:39 PM, Busch, Ed  wrote:
> 
> Thanks for the help Mark and Brian!
> Sorry, we’re getting a little deeper than I understand but am I right in the 
> root issue you are describing is the embedded character codes like , , 
> , %3. If Preservica just put the real characters it would be fine?
>  
> For example, 
> https://msu.access.preservica.com/archive/sdb%3AdeliverableUnit|723e8170-d799-4296-8591-2c3e8cf7ab2c/
>  
> <https://msu.access.preservica.com/archive/sdb%3AdeliverableUnit|723e8170-d799-4296-8591-2c3e8cf7ab2c/>
>  
> If this is changed to 
> https://msu.access.preservica.com/archive/sdb:AdeliverableUnit|723e8170-d799-4296-8591-2c3e8cf7ab2c/
>  
> <https://msu.access.preservica.com/archive/sdb:AdeliverableUnit|723e8170-d799-4296-8591-2c3e8cf7ab2c/>would
>  ASpace PDF exporter be happy?
>  
> Or am I missing it still?
>  
> Ed Busch, MLIS
> Interim Head of University Archives and Historical Collections
> Electronic Records Archivist
> Conrad Hall, 943 Conrad Road, Room 101
> East Lansing, MI 48824
> 517-884-6438
> busch...@msu.edu <mailto:busch...@msu.edu>
> he/him/his
>  
>  
> From:  on behalf of 
> Brian Harrington 
> Reply-To: "archivesspace_users_group@lyralists.lyrasis.org" 
> 
> Date: Thursday, April 1, 2021 at 12:37 PM
> To: "archivesspace_users_group@lyralists.lyrasis.org" 
> 
> Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
> Preservica added content?
>  
> Hi Ed,
>  
> It looks like the problem is with s (or anything else) that have an 
> @href attribute that has anything other than the bare URL in it.  For 
> example, this one:
>  
>   https://us.preservica.com/explorer/explorer.html#prop:76e734ad9-75bc-4f06-a5a0-7aa458e39746Preservica
>  Internal/a"
> xlink:role="Digital Preservation Staff System" 
> xlink:type="locator"/>
>  
> The as-ead-pdf.xsl copies the contents of the @href directly into the 
> @external-destination of an fo:basic-link element, and then the FOP processor 
> is choking on it.
>  
> And as a data point for everyone, this should have just started breaking in 
> 2.8.1.  The included FOP was upgraded to the current version in that release 
> (blame me!) and that appears to have better validation of URIs.  It looks 
> like older versions simply included in the PDF.
>  
> I hope this helps.
>  
> Brian
>  
>  
> From:  on behalf of 
> "Busch, Ed" 
> Reply-To: Archivesspace Users Group 
> 
> Date: Thursday, April 1, 2021 at 11:43 AM
> To: Archivesspace Users Group 
> , Benn Joseph 
> 
> Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
> Preservica added content?
>  
> Sure. I just put a ticket in with my local IT for some help.
>  
> Ed Busch, MLIS
> Interim Head of University Archives and Historical Collections
> Electronic Records Archivist
> Conrad Hall, 943 Conrad Road, Room 101
> East Lansing, MI 48824
> 517-884-6438
> busch...@msu.edu <mailto:busch...@msu.edu>
> he/him/his
>  
>  
> From:  on behalf of 
> Benn Joseph 
> Reply-To: "archivesspace_users_group@lyralists.lyrasis.org" 
> 
> Date: Thursday, April 1, 2021 at 11:35 AM
> To: "archivesspace_users_group@lyralists.lyrasis.org" 
> 
> Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
> Preservica added content?
>  
> Hey Ed—can you share the EAD export for one that isn’t working?
> --Benn
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  On Behalf Of Busch, 
> Ed
> Sent: Thursday, April 01, 2021 8:55 AM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
> Preservica added content?
>  
> Thanks, Steve. Time to dig into this deeper. 
> Some of my Preservica ones work fine.
>  
> Ed Busch, MLIS
> Interim Head of University Archives and Historical Collections
> Electronic Records Archivist
> Conrad Hall, 943 Conrad Road, Room 101
> East Lansing, MI 48824
> 517-884-6438
> busch...@msu.edu <mailto:busch...@msu.edu>
> he/him/his
>  
>  
> From:  <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
> of "Majewski, Steven Dennis (sdm7g)"  <mailto:sd...@virginia.edu>>
> Reply-To: "archivesspace_users_group@lyralists.lyrasis.org 
> <mailto:archivesspace_users_group@lyralists.lyrasis.org>" 
>  <mailto:archivesspace_users_group@lyralists.lyras

Re: [Archivesspace_Users_Group] Issues with MySQL v8

2021-03-31 Thread Majewski, Steven Dennis (sdm7g)
I’m running ArchivesSpace 2.8.1 under current MariaDB 10.5.9 and I’m not getting any errors on any of those reports. It’s our intention to support current versions of both MySQL and MariaDB, but not everything can be tested against every version, especially those reports. Wendy: are you getting the same error message reported in that JIRA issue? https://archivesspace.atlassian.net/jira/software/c/projects/ANW/issues/ANW-1200 Wendy and/or Blake: (I have a hunch) Can you try editing:	archivesspace/reports/accessions/accession_names_subreport/accession_names_subreport.rbAnd in the line: role_id as function,  quote the word function:12c12<       role_id as function,--->       role_id as 'function',class AccessionNamesSubreport < AbstractSubreport  def initialize(parent_report, accession_id)    super(parent_report)    @accession_id = accession_id  end  def query_string    "select      ifnull(ifnull(ifnull(name_person.sort_name, name_family.sort_name),        name_corporate_entity.sort_name), 'Unknown') as name,      role_id as function,      relator_id as role    from linked_agents_rlshp      left outer join name_person        on name_person.agent_person_id = linked_agents_rlshp.agent_person_id      left outer join name_family        on name_family.agent_family_id = linked_agents_rlshp.agent_family_id      left outer join name_corporate_entity        on name_corporate_entity.agent_corporate_entity_id =         linked_agents_rlshp.agent_corporate_entity_id    where accession_id = #{db.literal(@accession_id)}"  end  def fix_row(row)    ReportUtils.get_enum_values(row, [:function, :role])  endendOr else replace it with this edited version:class AccessionNamesSubreport < AbstractSubreport

  def initialize(parent_report, accession_id)
super(parent_report)
@accession_id = accession_id
  end

  def query_string
"select
  ifnull(ifnull(ifnull(name_person.sort_name, name_family.sort_name),
name_corporate_entity.sort_name), 'Unknown') as name,
  role_id as 'function',
  relator_id as role
from linked_agents_rlshp
  left outer join name_person
on name_person.agent_person_id = linked_agents_rlshp.agent_person_id
  left outer join name_family
on name_family.agent_family_id = linked_agents_rlshp.agent_family_id
  left outer join name_corporate_entity
on name_corporate_entity.agent_corporate_entity_id = 
linked_agents_rlshp.agent_corporate_entity_id
where accession_id = #{db.literal(@accession_id)}"
  end

  def fix_row(row)
ReportUtils.get_enum_values(row, [:function, :role])
  end

end
And then restart ArchivesSpace and try Accession reports again? Actually, more than a hunch now that I googled for this doc:https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-8-0-detailed-FAnd see: FUNCTION (R); became reserved in 8.0.1Pretty sure that is the problem!— Steve MajewskiOn Mar 31, 2021, at 2:49 PM, Wendy Scheir  wrote:Hi Blake,Thanks so much for following up. So far, we've gotten report errors for the following 3 accessions reports:Accession ReportAccession Receipt ReportAccessions and Linked Subjects, Names and ClassificationsI'm not sure if we've tested all of them, but definitely these 3 are erroring out. If you'd like to look at the error logs, I'd be glad to send them to you.All best,WendyWENDY SCHEIRDIRECTOR66 5TH AVENUE, NEW YORK, NY 10011sche...@newschool.eduT 212.229.5942 x2888Explore the Archives | Digital Collections from the Archives | New School Histories | @tnsarchivesOn Wed, Mar 31, 2021 at 2:33 PM Blake Carver  wrote:





There are others running
 on 8, so far the only trouble seems to be reports. Here's a JIRA


https://archivesspace.atlassian.net/jira/software/c/projects/ANW/issues/ANW-1200


You're seeing it fail on two reports?













 




From: archivesspace_users_group-boun...@lyralists.lyrasis.org  on behalf of Wendy Scheir
 
Sent: Tuesday, March 30, 2021 4:15 PM
To: Archivesspace Users Group 
Subject: [Archivesspace_Users_Group] Issues with MySQL v8
 




Hi,


When we installed ArchivesSpace last summer, we used MySQL v8 for our database. The documentation has instructions that read, "if using for MySQL 8+..." leading us to believe that MySQL 8 was a supported version. However, we've been having issues running
 Accession and Shelflist reports that the Lyrasis team has told us is caused by running MySQL 8 instead of MySQL 5. In the interim, Lyrasis has updated the documentation to say that "ArchivesSpace is currently able to run on MySQL version 5.x."


Has anyone else installed ArchivesSpace with MySQL 8? We are concerned about downgrading to 5 versus waiting for a future version that works with 8, but in the meantime we are unable to run a number of desired reports.



Many thanks,

Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - Preservica added content?

2021-03-31 Thread Majewski, Steven Dennis (sdm7g)
It definitely doesn’t like those Preservica URLs. 

The staff PDF production goes thru 3 steps, and you can do them separately and 
manually to debug.

[1] export EAD XML
[2] Run XSLT processor on EAD with /stylesheets/as-ead-pdf.xsl xsl-fo stylesheet
$ saxon -xsl:archivesspace/stylesheets/as-ead-pdf.xsl 
-s:UA.15.9_20210331_175003_UTC__ead.xml -o:fop.fo 
[3] Run FOP processor on output of xsl-fo stylesheet. 
$ fop fop.fo -pdf fop.pdf

After an error on logo image (because I’m not in the right directory and didn’t 
pass a param so it can find it)
And a bunch of warning in info messages that can be ignored, I get a whole 
series of errors like this: 

SEVERE: Error while rendering page 19
java.lang.IllegalStateException: java.net.URISyntaxException: Illegal character 
in scheme name at index 0: 
%3Ca%20href=%22https://us.preservica.com/explorer/explorer.html%23prop:7%22%3EPreservica%20Internal%3C/a%3E
at org.apache.fop.pdf.PDFFactory.getFileUri(PDFFactory.java:688)
at org.apache.fop.pdf.PDFFactory.getTargetUri(PDFFactory.java:646)
at org.apache.fop.pdf.PDFFactory.getExternalAction(PDFFactory.java:585)
at 
org.apache.fop.render.pdf.PDFDocumentNavigationHandler.getAction(PDFDocumentNavigationHandler.java:173)
at 
org.apache.fop.render.pdf.PDFDocumentNavigationHandler.renderLink(PDFDocumentNavigationHandler.java:107)
at 
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597)
at 
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:243)
at 
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.makeNewPage(AbstractPageSequenceLayoutManager.java:287)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.makeNewPage(PageSequenceLayoutManager.java:192)
at 
org.apache.fop.layoutmgr.PageBreaker.handleBreakTrait(PageBreaker.java:634)
at org.apache.fop.layoutmgr.PageBreaker.startPart(PageBreaker.java:512)
at 
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:564)
at 
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:509)
at 
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:504)
at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:339)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:458)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:113)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
at org.apache.fop.cli.Main.startFOP(Main.java:183)
at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.net.URISyntaxException: Illegal character in scheme name at 
index 0: 
%3Ca%20href=%22https://us.preservica.com/explorer/explorer.html%23prop:7%22%3EPreservica%20Internal%3C/a%3E
at java.base/java.net.URI$Parser.fail(URI.java:2963)
at java.base/java.net.URI$Parser.checkChars(URI.java:3134)
at java.base/java.net.URI$Parser.checkChar(URI.java:3144)
at java.base/java.net.URI$Parser.parse(URI.java:3159)
at 

Re: [Archivesspace_Users_Group] Resource Creation Statistics - Any ideas?

2020-12-09 Thread Majewski, Steven Dennis (sdm7g)
On second thought, if you’re not adept with JSON tools, then exporting as CSV 
and loading in EXCEL to sort and group by created_by might be an easier 
solution. 

And the missing translation errors don’t show up in the CSV: 

repository,Albert and Shirley Small Special Collections Library

record_title,identifier,level,resource_type,publish,restrictions,created_by,create_time,date,extent
Jack R. Levien papers,MSS 15241,Collection,,Yes,No,admin,2015-08-11 21:43:13 
UTC,"[{""_date"":""Creation: 1960 - 1999, 
1960-1999""}]","[{""portion"":""Whole"",""container_summary"":""2 document 
boxes"",""physical_details"":null,""dimensions"":null,""extent"":""0.80 Cubic 
Feet""}]"
George family papers,MSS 13543,Collection,Papers,Yes,No,admin,2015-08-11 
21:43:17 UTC,"[{""_date"":""Creation: 1816 - 1963, 
1816-1963""}]","[{""portion"":""Whole"",""container_summary"":""1 document 
box"",""physical_details"":null,""dimensions"":null,""extent"":""0.50 Cubic 
Feet""}]"
Francis Burton Harrison papers,MSS 
14969,Collection,Papers,Yes,No,admin,2015-08-11 21:43:21 
UTC,"[{""_date"":""Creation: 1921 - 1945, 
1921-1945""}]","[{""portion"":""Whole"",""container_summary"":""1 document 
box"",""physical_details"":null,""dimensions"":null,""extent"":""0.50 Cubic 
Feet""}]"
Holmes family papers,MSS15167,Collection,,Yes,No,admin,2015-08-11 21:43:24 
UTC,"[{""_date"":""Creation: 1766 - 1928, 1908-1975; 
1766-1928""}]","[{""portion"":""Whole"",""container_summary"":""4 Hollinger 
boxes"",""physical_details"":null,""dimensions"":null,""extent"":""934.00 
items""}]"
Theron H. Rice papers,MSS15247,Collection,,Yes,No,admin,2015-08-11 21:43:28 
UTC,"[{""_date"":""Creation: 1877 - 1923, 
1877-1923""}]","[{""portion"":""Whole"",""container_summary"":""1 Hollinger 
box"",""physical_details"":null,""dimensions"":null,""extent"":""70.00 
items""}]"
Benjamin C. Howland papers,MSS 13748,Collection,,Yes,No,admin,2015-08-11 
21:43:31 UTC,"[{""_date"":""Creation: 1941 - 1983, 
1941-1983""}]","[{""portion"":""Whole"",""container_summary"":""6 Hollinger 
boxes"",""physical_details"":null,""dimensions"":null,""extent"":""757.00 
items""}]"


> On Dec 9, 2020, at 12:42 PM, Majewski, Steven Dennis (sdm7g) 
>  wrote:
> 
> 
> You can just add created_by and create_time ( and perhaps other fields like: 
> last_modified_by, finding_aid_author ) to the resource_list_report.rb :
> 
> 
> diff --git a/reports/resources/resources_list_report/resources_list_report.rb 
> b/reports/resources/resources_list_report/resources_list_report.rb
> index 96f200fed..ad3a96474 100644
> --- a/reports/resources/resources_list_report/resources_list_report.rb
> +++ b/reports/resources/resources_list_report/resources_list_report.rb
> @@ -9,7 +9,8 @@ class ResourcesListReport < AbstractReport
> level_id as level,
> resource_type_id as resource_type,
> publish,
> -   restrictions
> +   restrictions,
> +   created_by, create_time
> from resource
> where repo_id = #{db.literal(repo_id)}"
> end
> 
> 
> And add those to the .yml files in that directory, otherwise you will get 
> something like:
> 
> translation missing: en.reports.translation_defaults.created_by
> admin
> translation missing: en.reports.translation_defaults.create_time
> 2015-08-11 21:43:13 UTC
> 
> ( And we really should add a translation missing fallback to these reports to 
> make customizing easier! ) 
> 
> That doesn’t make it easily s

Re: [Archivesspace_Users_Group] Resource Creation Statistics - Any ideas?

2020-12-09 Thread Majewski, Steven Dennis (sdm7g)

You can just add created_by and create_time ( and perhaps other fields like: 
last_modified_by, finding_aid_author ) to the resource_list_report.rb :


diff --git a/reports/resources/resources_list_report/resources_list_report.rb 
b/reports/resources/resources_list_report/resources_list_report.rb
index 96f200fed..ad3a96474 100644
--- a/reports/resources/resources_list_report/resources_list_report.rb
+++ b/reports/resources/resources_list_report/resources_list_report.rb
@@ -9,7 +9,8 @@ class ResourcesListReport < AbstractReport
level_id as level,
resource_type_id as resource_type,
publish,
-   restrictions
+   restrictions,
+   created_by, create_time
from resource
where repo_id = #{db.literal(repo_id)}"
end


And add those to the .yml files in that directory, otherwise you will get 
something like:

translation missing: en.reports.translation_defaults.created_by
admin
translation missing: en.reports.translation_defaults.create_time
2015-08-11 21:43:13 UTC

( And we really should add a translation missing fallback to these reports to 
make customizing easier! ) 

That doesn’t make it easily sortable however. That would take more work. 
Alternatively, once you have added those fields, you can use the json output 
format, and write a script, or use ‘jq’ to sort, group, and format the report 
before printing. However, if you need to group by author, it might just be 
simpler to run the report outside of archivesspace as a mysql query. 

If you wanted that sort of grouping as an ArchivesSpace report, you would need 
to write a new report, restructuring it as a subreport on resources created by 
each user. 


— Steve M.



> On Dec 8, 2020, at 6:51 PM, Cornwall, Daniel D (EED) 
>  wrote:
> 
>  
> Hello,
>  
> After fiddling with the reports module in 2.8 and looking at the 
> documentation in ArchivesSpace help center I want to ask you if your 
> institution keeps track of the number of finding aids that someone enters 
> into ArchivesSpace and if so, how you track that. The Resources List Report  
> ALMOST fits my purposes but doesn’t list the audit information I’d need to 
> filter when resource records were created or modified.
>  
> If you’re aware of this kind of functionality, or ideally a report that would 
> produced a list of resource records with creation date by users, please let 
> me know. Otherwise I’ll think about other ways to track.
>  
> Thanks! - Daneil
>  
> ==
> Daniel Cornwall
> Library Technology Consultant / OWL Program Manager
> Alaska State Library
> Ph: 907-465-6332
> https://lam.alaska.gov/daniel 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Sub-subseries custom usage?

2020-10-20 Thread Majewski, Steven Dennis (sdm7g)
What Mark said. And in addition, I would say that when dealing with these 
levels in EAD, what you usually want or need is to distinguish is top-level, 
middle-levels and leaves, so in practice making everything in the middle 
“subseries” is OK, and if you need finer distinctions you export as numbered c 
sections ( c01, c02, c03… ) 


> On Oct 20, 2020, at 1:09 PM, Custer, Mark  wrote:
> 
> Hi, Lev.
>  
> Short answer:  you can select “otherlevel” and then type in “sub-subseries” 
> (even “sub-sub-subseries” and whatever else that’s needed). You might need to 
> update your display code, but that approach would keep the EAD valid.  I'm 
> attaching a screenshot for how to do that in ArchivesSpace.  That said, I 
> would probably advise against doing that since then you’re on the hook for 
> making sure that there are no typos, etc….. and what, really, is a 
> sub-subseries, or a sub-series, for that matter? .  So, again, the display 
> code might need to be updated, but nothing else would preclude you have 
> having subseries children of other subseries.
>  
> Longer response, which doesn't really add much:  the closed list that 
> ArchivesSpace uses for its "Archival Object Level" enumeration list comes 
> from the EAD schemas.  Those schemas are based on ISAD(G) 3.1.4, which does 
> not specify a closed list or definitions for different levels, I don’t think, 
> but it does include a few different examples such as “Sub-series”.  In the 
> first version of EAD, it looks like there were 9 valid options for the level 
> of description, including “subseries”.  EAD 2002 and EAD3 bump that up to 11 
> valid options.  And starting with EAD2002, “otherlevel” was added to the 
> controlled list of values to provide users a way to specify any other level 
> that was required locally.  So, you can encode something like 
> @level=’otherlevel’ and @otherlevel=’sub-subseries’ to add any local levels 
> of description that you want.  
> 
> All that said, I still don't know the difference between a series and 
> subseries (aside from the context, which would be indicated by having a 
> series as a child of a series), so I'm actually in favor of less values (e.g. 
> removing subseries and just using series wherever that's needed) . 
> 
> Mark
> 
> 
> 
>  
>  
> From: <> archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org 
> ] On Behalf 
> Of Earle, Lev
> Sent: Tuesday, 20 October, 2020 12:25 PM
> To: archivesspace_users_group@lyralists.lyrasis.org 
> 
> Subject: [Archivesspace_Users_Group] Sub-subseries custom usage?
>  
> Hello everyone, 
>  
> I’m wondering if anyone out there has configured their instance to make 
> sub-subseries level designations available.
>  
> I’m currently working with some very large collection imports where 
> sub-subseries would be useful, and know that EAD allows for I think a maximum 
> of twelve levels (or something faintly ridiculous), but also know that the 
> out-of-the-box AS doesn’t include a sub-subseries level designation. I know 
> you can technically nest subseries as children under each other, but this 
> feels like bad form and plays havoc with our display code. We could probably 
> figure out something ourselves to hack in a sub-subseries designation, but I 
> wanted to see what/if anyone else was doing, as we’d like to try and build 
> consistently with other institutions to make future inter-institutional 
> collaboration go more smoothly.
>  
> Many thanks for any help! I’m new to this listserv and have been learning a 
> lot following conversations but still have a long ways to go.
>  
> Cheers, 
> -Lev.
>  
> ___
> Lev Earle
> Special Collections Processing Archivist – RBSCP
> University of Rochester River Campus Libraries
> they/them pronouns
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Sub-subseries custom usage?

2020-10-20 Thread Majewski, Steven Dennis (sdm7g)
You could add “sub-subseries” to as an enumeration value  Controlled Value 
List: Archival Record Level (archival_record_level), and it would show up in 
the dropdown menu, however as the current enumeration values are the allowed 
values for the EAD c/@level attribute, you would then export invalid and 
non-standard EAD. 

If you choose ‘otherlevel’ from the dropdown, ArchivesSpace will display 
another form field where you can enter value for @otherlevel, and it should 
encode properly. 

https://eadiva.com/c/ 

@level – not required. The values of this attribute may be: class, collection, 
file, fonds, item, otherlevel, recordgrp, series, subfonds, subgrp, and 
subseries. For any other value of @level (such as from a locally-assigned 
vocabulary) choose “otherlevel” as the value, and specify name in @otherlevel 
attribute. Assigning an attribute to the highest-level  is 
highly-recommended.
@otherlevel – not required. If the designated value options for @level do not 
fit the repository needs, “otherlevel” should be used as the value for @level 
and the alternate term should be specified here.

If the additional keystrokes required are an issue, maybe @otherlevel can be 
set with an initial value in preferences, or else assigned with a plugin that 
adds a little javascript to the edit page. 


— Steve. 



> On Oct 20, 2020, at 12:25 PM, Earle, Lev  wrote:
> 
> Hello everyone, 
>  
> I’m wondering if anyone out there has configured their instance to make 
> sub-subseries level designations available.
>  
> I’m currently working with some very large collection imports where 
> sub-subseries would be useful, and know that EAD allows for I think a maximum 
> of twelve levels (or something faintly ridiculous), but also know that the 
> out-of-the-box AS doesn’t include a sub-subseries level designation. I know 
> you can technically nest subseries as children under each other, but this 
> feels like bad form and plays havoc with our display code. We could probably 
> figure out something ourselves to hack in a sub-subseries designation, but I 
> wanted to see what/if anyone else was doing, as we’d like to try and build 
> consistently with other institutions to make future inter-institutional 
> collaboration go more smoothly.
>  
> Many thanks for any help! I’m new to this listserv and have been learning a 
> lot following conversations but still have a long ways to go.
>  
> Cheers, 
> -Lev.
>  
> ___
> Lev Earle
> Special Collections Processing Archivist – RBSCP
> University of Rochester River Campus Libraries
> they/them pronouns
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] PDF export issue

2020-09-29 Thread Majewski, Steven Dennis (sdm7g)
Yes, a sample would be useful to try to reproduce the issue.  It would also be 
interesting to know if both the staff PDF export and the PUI PDF show the same 
problems.  — Steve M. 


> On Sep 29, 2020, at 11:42 AM, Custer, Mark  wrote:
> 
> Dear Hitomi Matsuyama,
> 
> Which version of ArchivesSpace are you using?
> 
> I'm not familiar with those configuratio settings, but I suspect that they 
> might just be for the PDF formats of the Reports, not for the PDF format of 
> the EAD conversion process.  
> 
> On newer releases of ArchivesSpace, the default font for the EAD to PDF 
> conversion has been updated to use the NotoSerif font family.  See:  
> https://github.com/archivesspace/archivesspace/blob/master/stylesheets/fop-config.xml
>  
> ,
>  https://github.com/archivesspace/archivesspace/tree/master/stylesheets/fonts 
> ,
>  and 
> https://github.com/archivesspace/archivesspace/blob/5da6428562b65493fc087fe3543c4d292f10ff0e/stylesheets/as-ead-pdf.xsl#L124
>  
> 
> 
> Also, I am assuming that you are referring to the EAD to PDF process in the 
> ArchivesSpace staff interface, i.e. Export --> Generate PDF.  If that's not 
> right, just let me know. If that is right, could you share a sample EAD file 
> that could be used for testing with a different font?
> 
> All my best,
> 
> Mark
> 
> 
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of Hitomi 
> Matsuyama 
> Sent: Tuesday, September 29, 2020 4:26 AM
> To: archivesspace_users_group@lyralists.lyrasis.org 
> 
> Subject: [Archivesspace_Users_Group] PDF export issue
>  
> Hello all,
>  
> We've had some trouble with PDF export in Japanese.
> Descriptive information written with Japanese characters, hiragana, katakana, 
> and kanji, are not exported to ArchivesSpace formatted finding-aids at all.
>  
> Our IT staff has tried to modify config.rb as follows in order to add some 
> Japanese specific font types;
>  
> AppConfig[:report_pdf_font_paths] = proc { 
> ["#{AppConfig[:backend_url]}/reports/static/fonts/ipa/ipag.ttf"] } 
> AppConfig[:report_pdf_font_family] = "IPAexゴシック, \"IPA Pゴシック\",
> \"ヒラギノ角ゴ ProN W3\", \"Hiragino Kaku Gothic ProN\", メイリオ, Meiryo, \"MS 
> Pゴシック\", sans-serif"
>  
> However, this doesn’t work out and the description in Japanese is still 
> missing in a PDF.  
> Have any non-alphabet language users ever faced the same problem?
> If it’s been already solved, let us know how to get through.
>  
> Thank you!
>  
> Hitomi Matsuyama, Audiovisual Archivist
>  
> Nakanoshima Museum of Art, Osaka
> 1-1-86-8F Noda, Fukushima-ku
> Osaka 553-0005 JAPAN
> tel. +81 (0)6 64 69 51 93
> email. matsuy...@nak-osaka.jp
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] undefined method `show_identifier_column?'

2020-09-14 Thread Majewski, Steven Dennis (sdm7g)
Oops. I cut and pasted the wrong section. But the method is removed further 
down, if you look at the git log yourself. 

> On Sep 14, 2020, at 4:36 PM, Majewski, Steven Dennis (sdm7g) 
>  wrote:
> 
> Looks like the docs must have slipped behind the changes.
> 
> git log -p frontend/app/helpers/search_helper.rb 
> 
> Shows that function removed, I assume as part of the many search changes in 
> v2.8.0 
> 
> 
> diff --git a/frontend/app/helpers/search_helper.rb 
> b/frontend/app/helpers/search_helper.rb
> index a192965ee..c5a371cc0 100644
> --- a/frontend/app/helpers/search_helper.rb
> +++ b/frontend/app/helpers/search_helper.rb
> @@ -18,12 +18,32 @@ module SearchHelper
>  "subject"  => "authority_id",
>}
>  
> +  def identifier_for_search_result(result)
> +identifier = 
> IDENTIFIER_FOR_SEARCH_RESULT_LOOKUP.fetch(result["primary_type"], "")
> +unless identifier.empty?
> +  if result.has_key? identifier
> +identifier = result[identifier]
> +  else
> +json   = ASUtils.json_parse(result["json"])
> +identifier = json.fetch(identifier, "")
> +  end
> +end
> +identifier.to_s.html_safe
> +  end
> +
>def build_search_params(opts = {})
> +
> +removing_record_type_filter = false
> +Array(opts["remove_filter_term"]).each do |filter_term|
> +  removing_record_type_filter = true if 
> ASUtils.json_parse(filter_term).keys.include? 'primary_type'
> +end
> +
>  search_params = {}
>  
>  search_params["filter_term"] = Array(opts["filter_term"] || 
> params["filter_term"]).clone
>  search_params["filter_term"].concat(Array(opts["add_filter_term"])) if 
> opts["add_filter_term"]
>  search_params["filter_term"] = search_params["filter_term"].reject{|f| 
> Array(opts["remove_filter_term"]).include?(f)} if opts["remove_filter_term"]
> +search_params["filter_term"] = search_params["filter_term"].select{|f| 
> SearchResultData.BASE_FACETS.include?(ASUtils.json_parse(f).keys.first)} if 
> removing_record_type_filter
>  
>  if params["multiplicity"]
>search_params["multiplicity"] = params["multiplicity"]
> @@ -31,19 +51,12 @@ module SearchHelper
>  
>  sort = (opts["sort"] || params["sort"])
>  
> -if show_identifier_column?
> -  search_params["display_identifier"] = true
> -end
> -
> -# if the browse list was sorted by default
> -if sort.nil? && !@search_data.nil? && @search_data.sorted?
> -  sort = @search_data[:criteria]["sort"]
> -end
> -
>  if sort
>sort = sort.split(', ')
>sort[1] = opts["sort2"] if opts["sort2"]
> -  search_params["sort"] = sort.uniq.join(', ')
> +  fields = sort.uniq
> +  fields = fields.select {|f| 
> multi_columns.compact.include?(f.split.first)} if removing_record_type_filter
> +  search_params["sort"] = fields.join(', ')
>  end
>  
>  if (opts["format"] || params["format"]).blank?
> 
> 
> 
> 
> 
>> On Sep 14, 2020, at 4:05 PM, Mark Cyzyk > <mailto:mcy...@jhu.edu>> wrote:
>> 
>> 
>> Dear Aspace List,
>> 
>> Here is a puzzler:
>> 
>> One of our custom plugins is throwing an error with ASpace 2.8.0:
>> 
>>> I, [2020-09-14T18:31:21.347591 #1711]  INFO -- :   Rendered 
>>> shared/_breadcrumb.html.erb (3729.1ms)
>>> I, [2020-09-14T18:31:21.551547 #1711]  INFO -- :   Rendered 
>>> search/_filter.html.erb (187.7ms)
>>> I, [2020-09-14T18:31:23.178717 #1711]  INFO -- :   Rendered 
>>> /usr/share/archivesspace/plugins/staff_mode_search/frontend/views/search/_listing.html.erb
>>>  (1380.8ms)
>>> I, [2020-09-14T18:31:23.188677 #1711]  INFO -- :   Rendered 
>>> search/_results.html.erb (1834.8ms)
>>> I, [2020-09-14T18:31:23.191373 #1711]  INFO -- :   Rendered 
>>> search/do_search.html.erb within layouts/application (5600.4ms)
>>> I, [2020-09-14T18:31:23.193788 #1711]  INFO -- : Completed 500 Internal 
>>> Server Error in 8777ms
>>> F, [2020-09-14T18:31:23.238453 #1711] FATAL -- :
>>> F, [2020-09-14T18:31:23.238827 #1711] FATAL -- : 
>>> ActionView::Template::Error (undefined method `show_identifier_column?' for 
>>> #<#:0x5ccfe41e>
>>> Did you mean?  show_external_ids?):
>>> F, [2020-09-14

Re: [Archivesspace_Users_Group] undefined method `show_identifier_column?'

2020-09-14 Thread Majewski, Steven Dennis (sdm7g)
Looks like the docs must have slipped behind the changes.

git log -p frontend/app/helpers/search_helper.rb 

Shows that function removed, I assume as part of the many search changes in 
v2.8.0 


diff --git a/frontend/app/helpers/search_helper.rb 
b/frontend/app/helpers/search_helper.rb
index a192965ee..c5a371cc0 100644
--- a/frontend/app/helpers/search_helper.rb
+++ b/frontend/app/helpers/search_helper.rb
@@ -18,12 +18,32 @@ module SearchHelper
 "subject"  => "authority_id",
   }
 
+  def identifier_for_search_result(result)
+identifier = 
IDENTIFIER_FOR_SEARCH_RESULT_LOOKUP.fetch(result["primary_type"], "")
+unless identifier.empty?
+  if result.has_key? identifier
+identifier = result[identifier]
+  else
+json   = ASUtils.json_parse(result["json"])
+identifier = json.fetch(identifier, "")
+  end
+end
+identifier.to_s.html_safe
+  end
+
   def build_search_params(opts = {})
+
+removing_record_type_filter = false
+Array(opts["remove_filter_term"]).each do |filter_term|
+  removing_record_type_filter = true if 
ASUtils.json_parse(filter_term).keys.include? 'primary_type'
+end
+
 search_params = {}
 
 search_params["filter_term"] = Array(opts["filter_term"] || 
params["filter_term"]).clone
 search_params["filter_term"].concat(Array(opts["add_filter_term"])) if 
opts["add_filter_term"]
 search_params["filter_term"] = search_params["filter_term"].reject{|f| 
Array(opts["remove_filter_term"]).include?(f)} if opts["remove_filter_term"]
+search_params["filter_term"] = search_params["filter_term"].select{|f| 
SearchResultData.BASE_FACETS.include?(ASUtils.json_parse(f).keys.first)} if 
removing_record_type_filter
 
 if params["multiplicity"]
   search_params["multiplicity"] = params["multiplicity"]
@@ -31,19 +51,12 @@ module SearchHelper
 
 sort = (opts["sort"] || params["sort"])
 
-if show_identifier_column?
-  search_params["display_identifier"] = true
-end
-
-# if the browse list was sorted by default
-if sort.nil? && !@search_data.nil? && @search_data.sorted?
-  sort = @search_data[:criteria]["sort"]
-end
-
 if sort
   sort = sort.split(', ')
   sort[1] = opts["sort2"] if opts["sort2"]
-  search_params["sort"] = sort.uniq.join(', ')
+  fields = sort.uniq
+  fields = fields.select {|f| 
multi_columns.compact.include?(f.split.first)} if removing_record_type_filter
+  search_params["sort"] = fields.join(', ')
 end
 
 if (opts["format"] || params["format"]).blank?





> On Sep 14, 2020, at 4:05 PM, Mark Cyzyk  wrote:
> 
> 
> Dear Aspace List,
> 
> Here is a puzzler:
> 
> One of our custom plugins is throwing an error with ASpace 2.8.0:
> 
>> I, [2020-09-14T18:31:21.347591 #1711]  INFO -- :   Rendered 
>> shared/_breadcrumb.html.erb (3729.1ms)
>> I, [2020-09-14T18:31:21.551547 #1711]  INFO -- :   Rendered 
>> search/_filter.html.erb (187.7ms)
>> I, [2020-09-14T18:31:23.178717 #1711]  INFO -- :   Rendered 
>> /usr/share/archivesspace/plugins/staff_mode_search/frontend/views/search/_listing.html.erb
>>  (1380.8ms)
>> I, [2020-09-14T18:31:23.188677 #1711]  INFO -- :   Rendered 
>> search/_results.html.erb (1834.8ms)
>> I, [2020-09-14T18:31:23.191373 #1711]  INFO -- :   Rendered 
>> search/do_search.html.erb within layouts/application (5600.4ms)
>> I, [2020-09-14T18:31:23.193788 #1711]  INFO -- : Completed 500 Internal 
>> Server Error in 8777ms
>> F, [2020-09-14T18:31:23.238453 #1711] FATAL -- :
>> F, [2020-09-14T18:31:23.238827 #1711] FATAL -- : ActionView::Template::Error 
>> (undefined method `show_identifier_column?' for 
>> #<#:0x5ccfe41e>
>> Did you mean?  show_external_ids?):
>> F, [2020-09-14T18:31:23.251369 #1711] FATAL -- :  6: %>
>>  7:
>>  8: <% if @search_data.results? %>
>>  9:   <% add_identifier_column if show_identifier_column? %>
>> 10:   <%= render_aspace_partial :partial => "shared/pagination_summary" 
>> %>
>> 11:
>> 12:   data-multiselect="true"<% 
>> end %>>
>> F, [2020-09-14T18:31:23.251910 #1711] FATAL -- :
>> F, [2020-09-14T18:31:23.252256 #1711] FATAL -- : 
>> app/helpers/application_helper.rb:307:in `render_aspace_partial'
>> app/views/search/_results.html.erb:22:in 
>> `_app_views_search__results_html_erb___900220805_2354'
>> app/helpers/application_helper.rb:307:in `render_aspace_partial'
>> app/views/search/do_search.html.erb:16:in 
>> `_app_views_search_do_search_html_erb___1615232398_2350
> 
> The key line here is, I think:
> 
>> F, [2020-09-14T18:31:23.238827 #1711] FATAL -- : ActionView::Template::Error 
>> (undefined method `show_identifier_column?' for 
>> #<#:0x5ccfe41e>
>> Did you mean?  show_external_ids?):
> 
> No, I didn't mean "show_external_ids'!
> 
> The docs do indeed list 'show_identifier_column?' as a method. 
> (/archivesspace/docs/doc/SearchHelper.html#show_identifier_column%3F-instance_method)
> 
> Does anyone have an idea about why ASpace 2.8.0 might 

Re: [Archivesspace_Users_Group] Dates display problem.

2020-09-11 Thread Majewski, Steven Dennis (sdm7g)

Saving the record is triggering a reindex of that record, so what you want to 
do is a complete reindex which you can trigger by deleting the files in 
indexer_state and indexer_pui_state.


Sent from my iPhone

On Sep 11, 2020, at 2:57 PM, Carbone, Maura  wrote:


Hi,

So, I found if you go into a record and re-save it (so edit without changing 
and save), this gets fixed – you can try it on one of yours and see if that 
holds true for you as well. That’s obviously not a solution for thousands of 
records, but not sure if that helps with troubleshooting!

Best,
Maura

From:  on behalf of 
Kirill Batyuk 
Reply-To: Archivesspace Users Group 

Date: Friday, September 11, 2020 at 2:45 PM
To: "archivesspace_users_group@lyralists.lyrasis.org" 

Subject: [Archivesspace_Users_Group] Dates display problem.

Hello,

We have updated to v.2.8.0 today and have run into a problem with the dates 
displayed in staff interface. Instead of the date we get what looks to be JSON 
code, e.g.
{"lock_version"=>0, "expression"=>"1996, 2013", "created_by"=>"bfreiburger", 
"last_modified_by"=>"bfreiburger", "create_time"=>"2019-10-23T15:14:07Z", 
"system_mtime"=>"2019-10-23T15:14:07Z", "user_mtime"=>"2019-10-23T15:14:07Z", 
"date_type"=>"inclusive", "label"=>"creation", "jsonmodel_type"=>"date"}

I’m also attaching a screenshot of what I am seeing.



Would anyone know of a solution to fix this problem?

Thank you,

Kirill Batyuk
Systems Librarian
MBLWHOI Library
Data Library and Archives
Woods Hole Oceanographic Institution
508-289-2850
kbat...@whoi.edu
mblwhoilibrary.org
 --- 
whoi.edu
ORCID

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] CSV file for subjects not generating

2020-08-25 Thread Majewski, Steven Dennis (sdm7g)
I believe this has been fixed — I can’t find the issue but this is the top 
entry in
git log  frontend/app/controllers/subjects_controller.rb 

commit f9035b7ef72c65ab854070022d55cbfa023e6429
Author: Lora Woodford 
Date:   Thu Jun 11 17:33:21 2020 -0400

Make subjects subject and fix csv and sort



So if that’s the required fix, it should be in the last 2.8.0 release. 
( CSV export seems to work properly for me running current master devserver )

If upgrading right away to get the results is not convenient, you can try 
pulling the info from the backend on your current installed version.

Using ASnake (https://github.com/archivesspace-labs/ArchivesSnake 
), something like:

client = ASnakeClient( baseurl="http://localhost:8089;, username=‘admin’, 
password=… )
client.authorize()
for  s in test.get_paged( 'subjects' ):
print( s[’title’] ) # and any other fields you want to output…. 


Or you can access the backend API at /subjects, but you will have to iterate 
the paged results manually 

curl http://archives-test.$LIB:8089/subjects?page=1 | jq .  


{
  "first_page": 1,
  "last_page": 45,
  "this_page": 1,
  "total": 898,
  "results": [
{
  "lock_version": 22,
  "title": "Drawings (visual works)",
  "authority_id": "300033973",
  "scope_note": "Visual works produced by drawing, which is the application 
of lines on a surface, often paper, by using a pencil, pen, chalk, or some 
other tracing instrument to focus on the delineation of form rather than the 
application of color. This term is often defined broadly to refer to 
computer-generated images as well.",
  "created_by": "img7u",
  "last_modified_by": "ew8ff",
  "create_time": "2015-10-19T18:22:55Z",
  "system_mtime": "2019-11-18T20:57:54Z",
  "user_mtime": "2017-07-13T15:01:53Z",
  "is_slug_auto": false,
  "source": "aat",
  "jsonmodel_type": "subject",
  "external_ids": [],
  "publish": true,
  "used_within_repositories": [],
  "used_within_published_repositories": [],
  "terms": [
{
  "lock_version": 0,
  "term": "drawings (visual works)",
  "created_by": "img7u",
  "last_modified_by": "img7u",
  "create_time": "2015-10-19T18:22:55Z",
  "system_mtime": "2015-10-19T18:22:55Z",
  "user_mtime": "2015-10-19T18:22:55Z",
  "term_type": "genre_form",
  "jsonmodel_type": "term",
  "uri": "/terms/6",
  "vocabulary": "/vocabularies/1"
}
  ],
  "external_documents": [],
  "uri": "/subjects/6",
  "vocabulary": "/vocabularies/1",
  "is_linked_to_published_record": true
},

[ . . . ]

> On Aug 25, 2020, at 5:11 PM, Steven Giessler  
> wrote:
> 
> Dear ArchivesSpace user list,
> 
> Here at West Virginia University, we are running version 2.7.0 of
> ArchivesSpace.
> 
> On the admin side if we go to Subjects:
> 
> https://archivesspace.lib.wvu.edu/subjects
> 
> and try to click the Download CSV button, it gives us a file (excerpt below)
> that is not comma separated (has \n between each field) and only lists
> the first page worth of Subjects (25 in our case):
> 
> tail 1597180067.csv
> "title\n4-H clubs -- West Virginia\nAbb's Valley (Va. and W.
> Va.)\nAbolition of slavery\nAbortions\nAbsentee Balloting -- Marion
> County.\nAcademic costume\nAcademic librarians -- Faculty
> status\nAcademies\nAcademies and Institutes.\nAcademies (Private
> schools)\n\"Accomack County, V.A.\"\nAccount books\nAccounting\nAccounts
> -- Church financial reocrds\nAcord family.\nAdams County
> (Ohio)\nAdmiralty Islands (Papua New Guinea)\nAdvertising\nAdvertising
> photography\nAerial photographs.\nAeronautics\n\"Afghanistan -- History
> -- Saur Revolution, 1978\"\nAfrica\nAfrican American churches -- West
> Virginia\nAfrican American soldiers\n"
> 
> On the other hand, when we hit the Download CSV button while listing agents:
> 
> https://archivesspace.lib.wvu.edu/agents
> 
> we get what we would expect for all 10,000+ records (excerpt):
> 
> tail 1597187282.csv
> agent_corporate_entity,Institute for the History of Technology and
> Industrial Archaeology,,ingest,
> agent_corporate_entity,West Virginia University. Institute for the
> History of Technology and Industrial
> Archaeology,http://id.loc.gov/authorities/names/nr91038362,Library of
> Congress Name Authority File,
> agent_corporate_entity,Society for Industrial
> Archeology,http://id.loc.gov/authorities/names/n78014220,Library of
> Congress Name Authority File,
> agent_person,"Barnette, Curtis H. and Others",,ingest,
> agent_person,"Barnette, Curtis H.",,ingest,
> agent_person,"Green, James Edwin",,ingest,
> agent_family,Green
> family,http://id.loc.gov/authorities/subjects/sh85057211,Library of
> Congress Name Authority File,
> agent_corporate_entity,Grand Army of the
> Republic,http://id.loc.gov/authorities/names/n84076025,Library of
> Congress Name Authority 

Re: [Archivesspace_Users_Group] PDF Export Logo Issue

2020-06-05 Thread Majewski, Steven Dennis (sdm7g)
That style sheet is only used in the staff PDF export.
The PUI PDF is generated differently.


Sent from my iPad

On Jun 5, 2020, at 10:02 AM, Chris Mayo  wrote:


Hi Bailey,

My institution doesn't use the PUI, so I can't really speculate about why 
there's a difference between the staff and public interfaces. That being said, 
the appearance of the PDFs are controlled by the as-ead-pdf.xsl stylesheet, and 
I've noticed in the past that it's really easy for the logos to break for a 
number of reasons:

  *   if the logo file gets renamed or goes missing during a software update
  *   if you're modifying the stylesheet for other reasons and accidentally 
comment out, delete, or modify the part that calls for the logo file

I don't know if either of those is the case in your application, but I'd start 
with looking at the stylesheet and logo files and making sure they're all 
cross-referencing properly.

Best,
Chris

On Thu, Jun 4, 2020 at 11:37 AM Hoffner, Bailey E. 
mailto:bail...@ou.edu>> wrote:
Morning All,

We have an odd issue where our branding image does not show up on the PDF that 
can be exported from the public interface, but it does show up on the PDF that 
can be exported from the staff interface. The ArchivesSpace logo no longer 
shows up, but neither does the branding image.

Any suggestions? Has anyone had an issue like this before?

Thanks!

-Bailey

Bailey Hoffner, MLIS
Metadata and Collections Management Archivist
University of Oklahoma Libraries
405-325-1566

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


--
Chris Mayo
Digital Production Librarian
Boston College
chris.m...@bc.edu
pronouns: they/them/theirs
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] ArchivesSpace Background Job Failing

2020-05-07 Thread Majewski, Steven Dennis (sdm7g)


You might try downloading EAD directly from the backend API and verify that it 
is working: 

 /repositories/${REPO}/resource_descriptions/${ID}.xml 


— Steve.


> On May 7, 2020, at 8:29 AM, Boggio, Jerry  wrote:
> 
> Hello ArchivesSpace Users!
>  
> Based on a suggestion from Steven Majewski of the University of Virginia, we 
> made the following change in archivesspace.sh startup script to allocate more 
> memory - ASPACE_JAVA_XMX="-Xmx2048m”. That solved the issue of generating a 
> PDF file (Export > Generate PDF), but creating an EAD file (Export > Download 
> EAD) errors by timing out after 2 minutes.
>  
> Would anyone have insight on the 2nd issue?
>  
> Thanks again and stay healthy!
> Gerard (Jerry) Boggio | MITRE Corporation | R504 - Collaboration & Info 
> Management | 781-271-2719 | Bedford, MA | 2K132
>  
> From: Boggio, Jerry  
> Sent: Tuesday, May 5, 2020 11:49 AM
> To: archivesspace_users_group@lyralists.lyrasis.org
> Cc: Sutherland, Bryan 
> Subject: ArchivesSpace Background Job Failing
>  
> Hello ArchivesSpace Users!
>  
> We have a Resource where we added ~33,600 records of information. Each record 
> consists of 1 field. The data was successfully loaded into ASpace and is 
> viewable. However, when we try to export that information through a 
> background job to create a PDF or CSV file we get an error “Java heap space”. 
> If we run the following query in “MySQL Workbench” it completes in less than 
> 3 seconds.
>  
> select title from archival_object where root_record_id = 44;
>  
> Does anyone have insight as to why this ASpace batch job would be failing?
>  
> Please let us know if you need more information.
>  
> Thank you!
> Gerard (Jerry) Boggio | MITRE Corporation | R504 - Collaboration & Info 
> Management | 781-271-2719 | Bedford, MA | 2K132
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Question Regarding the REST API batch_imports Operation

2020-05-07 Thread Majewski, Steven Dennis (sdm7g)

(In the backend:)
EADConverter takes an EAD file (.xml) and produces a JSON file on resources: 
archival_objects, a parent resource record and possibly global subjects and 
agents. I’m not sure if there is a backend API call to do just this initial 
step, but you can run it from pry/irb with something like:

converter = EADConverter.new( eadxml )
converter.run
converter.get_output_path

That JSON output is what batch_import takes. 
The JSON records temporary identifiers to link them together, and on import 
those links are converted to identifiers in the current repository namespace. 


So it’s typically many resource records representing one EAD file. 
However, I think from the way it’s implemented that it would work on a 
collection of records no matter whether they were related. 

— Steve. 


> On May 7, 2020, at 10:44 AM, James R Griffin III  wrote:
> 
> I am terribly sorry, I have now found that the payload is a JSON 
> serialization of an array of  resource objects: 
> https://github.com/archivesspace/archivesspace/blob/master/backend/spec/controller_batch_import_spec.rb#L41
>  
> 
> 
> Would one then model the payload as one of these arrays of JSON objects, each 
> with a URI internal to the EAD file?
> From: James R Griffin III
> Sent: Thursday, May 7, 2020 10:30 AM
> To: Archivesspace Users Group 
> 
> Subject: Question Regarding the REST API batch_imports Operation
>  
> Hello Everyone,
> 
> I have recently been reviewing the documentation for the REST API, and was 
> looking to explore the possible usage of 
> https://archivesspace.github.io/archivesspace/api/#import-a-batch-of-records 
> 
> 
> Please forgive for my ignorance, but does the body of the POST request 
> contain a payload of EAD XML? Would this be a string of concatenated EAD 
> documents?
> 
> Additionally, my understanding is that the response from this request 
> contains an identifier for the created object. As the job for importing the 
> records would be asynchronous, should one poll for the status of this new 
> object by repeatedly transmitting a GET request against 
> https://archivesspace.github.io/archivesspace/api/#find-resources-by-their-identifiers
>  
> 
>  until it has been fully imported?
> 
> Thank you for your patience and assistance.
> 
> Sincerely,
> James
> 
> -- 
> my.pronoun.is/he 
> James R. Griffin III
> Digital Infrastructure Developer
> Princeton University Library 
> Princeton, NJ 08544
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] OAI harvesting issue

2020-04-22 Thread Majewski, Steven Dennis (sdm7g)
I believe that the ArchivesSpace OAI feed uses system-mtime for the OAI 
timestamps, but dates in the staff interface are usually user-mtimes. ( 
system-mtime used because they propagate thru record hierarchy: i.e. if you 
make changes to a child archival_object, but not to the parent, user_mtime is 
updated on the archival_object only, but system_mtime is updated on both. ) 


But if I understand what you’re saying, the timestamps differ when using the 
harvester compared to, for example, what you see using the oai sample form. ( 
Is that correct ? ) 

If that is the case, then I do think it’s an issue with the harvester. 

We’re using this branch:
https://github.com/sdm7g/oai-harvest/tree/fix-pyoai 


Which is a patched version of  oaiharvest  
https://github.com/bloomonkey/oai-harvest 
 . 

For oai_marc payload, you may be able to use the upstream version that you can 
install using ‘pip install oaiharvest’ . ( My fixes are needed for EAD payload: 
EAD export in ArchivesSpace has more bugs in it, so I’m using the recover 
option to XML parser to recover from and log parse errors that would otherwise 
halt the harvest before completion. I don’t think MARC payloads, being simpler, 
have the same issues, and I know oai_dc has no similar glitches. If you do run 
into parse errors with oai_marc, you can use my version with added ‘—-recover’ 
command line option. ) 


If your OAI endpoint is public and you send me the URL, I try my harvester and 
look at results.  


— Steve Majewski



$ oai-harvest -h
usage: oai-harvest [-h] [--db DATABASEPATH] [-p METADATAPREFIX] [-r TOKEN]
   [-f -MM-DD] [-u -MM-DD] [-s SET] [-b HH:MM HH:MM]
   [-d DIR] [--delete | --no-delete] [-l LIMIT]
   [--create-subdirs | --subdirs-on SUBDIRS]
   [--recover | --no-recover]
   provider [provider ...]

Harvest records from an OAI-PMH provider.

positional arguments:
  provider  OAI-PMH Provider from which to harvest. This may be
the base URL of an OAI-PMH server, or the short name
of a registered provider. You may also specify "all"
for all registered providers.

optional arguments:
  -h, --helpshow this help message and exit
  --db DATABASEPATH, --database DATABASEPATH
Path to provider registry database. Currently supports
sqlite3 only.
  -p METADATAPREFIX, --metadataPrefix METADATAPREFIX
the metadataPrefix of the format (XML Schema) in which
records should be harvested.
  -r TOKEN, --resume-from TOKEN
start at the given resumption TOKEN
  -f -MM-DD, --from -MM-DD
harvest only records added/modified after this date.
  -u -MM-DD, --until -MM-DD
harvest only records added/modified up to this date.
  -s SET, --set SET harvest only records within this set
  -b HH:MM HH:MM, --between HH:MM HH:MM
harvest only between the first and the second wall
clock time (enables incremental harvesting)
  -d DIR, --dir DIR where to output files for harvested records. default:
current working path
  --delete  respect the server's instructions regarding deletions,
i.e. delete the files locally (default)
  --no-delete   ignore the server's instructions regarding deletions,
i.e. DO NOT delete the files locally
  -l LIMIT, --limit LIMIT
limit the number of records to harvest from each
provider
  --create-subdirs  create target subdirs (based on / characters in
identifiers) if they don't exist. To use something
other than /, use the newer--subdirs-on option
  --subdirs-on SUBDIRS  create target subdirs based on occurrences of the
given characterin identifiers
  --recover create XMLParser with (recover=True) option: parser
will try to continue to parse broken XML payloads
  --no-recover  default is --no-recover

Copyright (c) 2013, the University of Liverpool . All
rights reserved. Distributed under the terms of the BSD 3-clause License
.




> On Apr 22, 2020, at 3:06 PM, Kevin W. Schlottmann  
> wrote:
> 
> Dear AS List,
> 
> We rely on the OAI feed to pipe updated records to various places, on a 
> nightly basis.  We recently came across some odd behavior that we are hoping 
> list members might have some suggestions. 
> 
> We have a few resource records that have been recently updated, show the 
> correct updated time in the 

Re: [Archivesspace_Users_Group] EAD via API - character problem

2020-03-27 Thread Majewski, Steven Dennis (sdm7g)
And maybe send the resulting XML or at least diffs of the two.
( Guessing that there might be a mismatch of file encoding and xml encoding 
declaration. ) 




> On Mar 27, 2020, at 3:02 PM, Mayo, Dave  wrote:
> 
> Can you be more precise about what “directly from the archivesspace” means?  
> What page (URL) and control on the page you’re using to generate this?  I 
> want to make sure it’s the same code path in both cases.
> 
> Also, when you say “locally,” do you just mean the script is running locally 
> against the same ASpace instance, or is it a different ASpace instance from 
> the one where you’re getting correct results?
> --
> Dave Mayo (he/him)
> Senior Digital Library Software Engineer
> Harvard University > HUIT > LTS
>  
> From:  > on behalf 
> of "Kennedy, Nancy" mailto:kenne...@si.edu>>
> Reply-To: Archivesspace Users Group 
>  >
> Date: Friday, March 27, 2020 at 1:41 PM
> To: "Archivesspace Users Group 
> (archivesspace_users_group@lyralists.lyrasis.org 
> )" 
>  >
> Subject: [Archivesspace_Users_Group] EAD via API - character problem
>  
> Hi all – 
> Today I noticed that if I export an EAD with “Yin-Hsü” directly from the 
> archivesspace, my EAD results carry through with the correct encoding.  
>  
> But, when I export locally via the API, I end up with “Yin-Hs端”.   I’m using 
> python 3.7.4, via local windows machine.  I’ve tried both archivessnake and 
> just using requests, but I still end up with 端.
>  
> Suggestions?  Here’s what I’m doing via asnake:
>  
> export_options = 
> '?include_daos=true&?include_unpublished=false&?numbered_cs=false'
> for i in resource_ids:
> ead = client.get(repo['uri']
>  +'/resource_descriptions/'+str(i)+'.xml'
>  + export_options).text
>  
> Nancy Kennedy
> Smithsonian Institution
> kenne...@si.edu 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Search Across Repositories and Get EAD XML - ArchivesSpace API

2020-03-09 Thread Majewski, Steven Dennis (sdm7g)
I would also add that if you want the EAD, it may be simpler to access it from 
the OAI endpoint, but only if OAI is configured properly. Try downloading a 
resource using oai_ead metadata from the oai/sample page, to see if it’s 
configured properly and what the resource URLs will look like. 

— Steve M.



> On Mar 9, 2020, at 10:39 AM, Corey Schmidt  wrote:
> 
> Dear ArchivesSpace Members,
> 
> Hello, my name is Corey Schmidt and I’m working as the ArchivesSpace Project 
> Manager at the University of Georgia. I hope you all are doing well and 
> having a good start to your week.
> 
> I have two questions about how to utilize the ArchivesSpace API. First, I 
> want to use the Search across repositories 
> 
>  API endpoint searching with the resource identifier and take the results to 
> get the URI for that resource. How do I structure my call to the API using 
> the ASnake client (in python)? I have tried the following code with response 
> 400 returned:
> 
>  client.get('search/repositories?type="resource"=ms954_ids=true')
>  client.get('/search/repositories?q=ms954="resource"_ids=true')
> 
> Second, I want to download an EAD xml file directly from the API using this 
> endpoint: Get an EAD representation of a Resource 
> XML.
>  How do I specify where the EAD xml file saves to? I’m not even sure if it is 
> saving anywhere on my computer. However, my requests are successful, 
> generating a 200 response. I tried turning the response into json (using 
> ASnake’s .json()) and writing it, but I keep getting a JSONDecodeError. This 
> is my request:
> 
>  request_ead = 
> client.get('repositories/5/resource_descriptions/5734.xml?include_unpublished=false_daos=true_cs=true_pdf=false=false')
> 
> Any help would be greatly appreciated!
> 
> Sincerely,
> 
> Corey
>  
> Corey Schmidt
> ArchivesSpace Project Manager | University of Georgia Libraries
> Email: corey.schm...@uga.edu 
> Phone: +1-706-542-8151
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] PDF Generation Error

2020-02-25 Thread Majewski, Steven Dennis (sdm7g)


> On Feb 25, 2020, at 12:50 PM, Kirill Batyuk  wrote:
> 
> Hello,
>  
> I was trying to generate Export -> Print to PDF for one of our resources and 
> it fails with the following error:
>  
>  Generating PDF for Kenneth O. Emery papers  
> org.xml.sax.SAXParseException; lineNumber: 70; columnNumber: 15; The element 
> type "img" must be terminated by the matching end-tag "".

That looks to me like you have a unmatched  tag in a mixed content note 
somewhere.
You need to find that and fix it. 
 is not an EAD element, but HTML, so it’s not likely it was generated by 
ArchivesSpace export, but is just pulling it from some note text. But for the 
tag to work in EAD, it should probably be  or  instead of 
, so it might be better to change it than to just close the tag. 

If you don’t know which note contains that tag, you can export to EAD and check 
for errors — you can run xmllint on it or load it into Oxygen or some other XML 
editor to locate the unmatched tag. One of the containing elements should map 
into an ArchivesSpace note type. 

— Steve M.




smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] [ArchivesSpace Users Group] public version of finding aid not publishing version 2.2.1

2020-02-12 Thread Majewski, Steven Dennis (sdm7g)
The usual culprit for this sort of thing is that PUI indexing broke or is stuck 
or it didn’t see that resource was updated.  

1) Look for indexer errors in the log file.
2) Trigger a reindex by deleting files in data/index_pui_state/
( and watch the log file for errors )

— Steve M. 


> On Feb 12, 2020, at 12:31 PM, Dara M Flinn  wrote:
> 
> Hello all -
> 
> We have a resource (collection) that is not publishing a public finding aid; 
> however, we can create a pdf of the finding aid on the administrative side. 
> (We're using version 2.2.1.)
> 
> We checked the EAD in oXygen and the xml is valid.
> 
> Does anyone have any thoughts about why the public version isn't publishing?
> 
> 
> Thanks,
> Dara
> 
> -- 
> Dara Flinn, CA, DAS
> 
> Archivist / Special Collections Librarian
> Woodson Research Center
> Fondren Library
> Rice University
> (713) 348-2542
> dfl...@rice.edu
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Need to add new value to Subject Term Type lookup table

2020-01-17 Thread Majewski, Steven Dennis (sdm7g)

This will make it editable and cause the ‘create’ button to appear:

MariaDB [archivesspace]> update enumeration set editable = 1 where name = 
"subject_term_type" ; 

But I’ld still like to understand the reason it was set as not editable as the 
default. 


— Steve M. 



> On Jan 17, 2020, at 5:02 PM, Bowers, Kate A.  wrote:
> 
> This needs to either be editable or include all of these controlled 
> vocabularies (405 of them) with the ability to suppress display of them by 
> repository managers:
> https://www.loc.gov/standards/sourcelist/subject.html 
> <https://www.loc.gov/standards/sourcelist/subject.html>
>  
> Kate
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  On Behalf Of 
> Majewski, Steven Dennis (sdm7g)
> Sent: Friday, January 17, 2020 4:27 PM
> To: mcy...@jhu.edu; Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Need to add new value to Subject 
> Term Type lookup table
>  
>  
> subject_term_type enumeration is set as non-editable, which is why no create 
> button appears in the view, and also, I believe, prevents changing it via the 
> API as well:
>  
>  
> ./curl_as_osx 
> http://localhost:4567/config/enumerations/names/subject_term_type 
> <http://localhost:4567/config/enumerations/names/subject_term_type> | jq . 
> {
>   "lock_version": 0,
>   "name": "subject_term_type",
>   "editable": false,
>   "create_time": "2015-08-11T21:10:13Z",
>   "system_mtime": "2015-08-11T21:10:13Z",
>   "user_mtime": "2015-08-11T21:10:13Z",
>   "jsonmodel_type": "enumeration",
>   "relationships": [
> "term_type"
>   ],
>   "enumeration_values": [
>… 
> 
> 
> 
> 
>  
> I don’t know where the logic behind what values are editable and what are not 
> is documented. 
> I’m thinking you could change this in MySQL, but it would be wise to know why 
> is it set non-editable first. 
>  
> — Steve M. 
>  
>  
> 
> 
> On Jan 17, 2020, at 3:19 PM, Mark Cyzyk  <mailto:mcy...@jhu.edu>> wrote:
>  
> 
> Dear Aspace List,
> 
> I've been asked to add two new terms in the following two lookup tables:
> 
> Subject Source:  lcmptm "Library of Congress Medium of Performance Thesaurus 
> for Music
> Subject Term Type: medium_of_performacne "Medium of performance"
> 
> The Subject Source lookup table has a Create button, I click it, add 
> "lcmptm", then go into /aspace/locales/enums/en.yml to add the corresponding 
> "translation".
> 
> However, the Subject Term Type lookup table does NOT have a Create button.  I 
> added the new value to the proper place in /aspace/locales/enums/en.yml 
> anyway hoping it would show up in the Web GUI.  But no joy.
> 
> Question:  How can I add a new value to the Subject Term Type lookup table 
> without a Create button?
> 
> Thanks,
> 
> Mark
> 
> -- 
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> Mark Cyzyk, M.A., M.L.S.
> Library Applications Group
> The Sheridan Libraries
> The Johns Hopkins University
> mcy...@jhu.edu <mailto:mcy...@jhu.edu>
> 
> Verba volant, scripta manent.
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@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@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] change to record limit for top container report

2020-01-17 Thread Majewski, Steven Dennis (sdm7g)

I believe you’re supposed to override this by setting a value in your config.rb 
file:

AppConfig[:max_top_container_results] = 15000 

You shouldn’t have to override the model if you’re not making any other 
changes. 


> On Jan 17, 2020, at 9:50 AM, Steele, Henry  wrote:
> 
> Thanks all for your help with my last question about the PUI. 
>  
> I asked this question on Slack, but I’m not sure it was an active channel.
>  
> I'm trying to change this setting in the ArchivesSpace backend model:  
> [:max_top_container_results] : 1 I want to raise this limit to 15000, 
> because this would let us retrieve the complete set of our top containers.  I 
> have tried to put an override file in 
> /plugins/local/backend/model/top_container.rb with everything from our 
> existing top_container.rb file that gets loaded in the data directory, with 
> that limit changed.   But when I try to run this report, after about 20 
> seconds I get an error saying  "We're sorry but something went wrong"
> Is this something I have to write an actual plugin for, or can I just tweak 
> this file somehow?
>  
> Henry Steele
> Systems Librarian
> Tufts University Library Technology Services
> (617)627-5239
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Error Generating PDF

2020-01-16 Thread Majewski, Steven Dennis (sdm7g)

Ha! I didn’t even know that was valid EAD! — Steve. 

> On Jan 16, 2020, at 3:48 PM, Custer, Mark  wrote:
> 
> Justin,
>  
> I just took a quick look, and it appears that the issue is due to a nested 
> bioghist note, which ArchivesSpace doesn’t support.  That nested note is also 
> followed by two more bioghist notes, which look to be complete duplicates of 
> the nested bioghist note.  So, short answer:  delete that first bioghist note.
>  
> The ASpace EAD-to-PDF transformation process will add IDs to elements that 
> don’t have IDs (see 
> https://github.com/archivesspace/archivesspace/blob/master/stylesheets/as-helper-functions.xsl#L22-L32
>  
> <https://github.com/archivesspace/archivesspace/blob/master/stylesheets/as-helper-functions.xsl#L22-L32>)
>  and it looks like in this file there was some sort of import error 
> perhaps??? Because of that, once the EAD is transformed into a PDF file, 
> those nested notes wind up with the same ID (which is used for internal 
> linking purposes in the PDF), and that is what is causing the error.
>  
> Here’s the duplicative EAD that’s being output, slightly altered to remove 
> most of the text:
>  
> 
> Biographical / Historical
> 
> Georgia Ragsdale Curtis lived in Roanoke, Virginia ... Georgia 
> Ragsdale Curtis died
> on April 11, 2008. 
> 
> 
> Administrative History:
> Georgia Ragsdale Curtis lived in Roanoke, Virginia ...
> until her death in 2008.
> 
> 
> 
> 
> Biographical Information:
> Georgia Ragsdale Curtis lived in Roanoke, Virginia ... Georgia 
> Ragsdale Curtis died on April 11, 2008. 
> 
> 
> Administrative History:
> Georgia Ragsdale Curtis lived in Roanoke, Virginia ... 
> until her death in 2008.
> 
>  
> If you delete that entire first bioghist note from ASpace (the one with ID = 
> e399b9ecb1260e6afc1ed9b4b2a8c876), and just leave those two bioghist notes 
> below (which are repeats of the nested bioghist note), you should be good to 
> go.
>  
> Mark
>  
>  
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
> Dalton, Justin
> Sent: Thursday, 16 January, 2020 3:07 PM
> To: Majewski, Steven Dennis (sdm7g) 
> Cc: Archivesspace_Users_Group@lyralists.lyrasis.org
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF
>  
> I took a look and I can't find any duplicate ids, but perhaps I'm just 
> missing it.  I have attached the EAD file from ArchivesSpace.
>  
> Thanks!
>  
> Justin Dalton 
> Applications Administrator
> W Libraries | William & Mary
> 757-221-3101
> jcdal...@wm.edu <mailto:jcdal...@wm.edu>
>  
> From: Majewski, Steven Dennis (sdm7g)
> Sent: Thursday, January 16, 2020 2:28 PM
> To: Dalton, Justin
> Cc: Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF 
>  
> It’s saying you’ve got more than one EAD element with id=“d3e97” . 
> I assume you’re generating PDF from the staff interface, which first 
> serializes resource as EAD XML and then runs that thru the FOP processor ( 
> which is where it’s catching and complaining about the error in the EAD ( 
> org.apache.fop.fo…  ) 
>  
> You should export resource as EAD and look for duplicate id’s , or post it 
> here and we’ll take a look. 
>  
>  
> I don’t think ArchivesSpace would have generated or assigned duplicate IDs: 
> was this resource created by importing EAD that might have contained 
> duplicates ?  
>  
>  
>  
> — Steve M. 
>  
>  
> 
> 
> On Jan 16, 2020, at 2:06 PM, Dalton, Justin  <mailto:jcdal...@wm.edu>> wrote:
>  
> That is what I get for trying to write an email right before lunch.  Sorry 
> about that, the error is below.
>  
> Generating PDF for Georgia Ragsdale Curtis Papers  
> org.apache.fop.fo.ValidationException: Property ID "d3e97" (found on 
> "fo:block") previously used; ID values must be unique within a document! (See 
> position 363:37)
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(org/apache/xalan/transformer/TransformerIdentityImpl.java:502)
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:468)
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:326)
> RUBY.to_pdf(/archive

Re: [Archivesspace_Users_Group] Error Generating PDF

2020-01-16 Thread Majewski, Steven Dennis (sdm7g)

You’re right. Maybe it’s a glitch in stylesheets/as-ead-pdf.xsl, which does the 
EAD to FOP transform, that is generating duplicate IDs. 

> (See position 363:37)
I’m not seeing anything in the stylesheet at that location. 
I may have to try generating the intermediate file manually to see if that is a 
location in the FOP XML output. 

— Steve.


> On Jan 16, 2020, at 3:06 PM, Dalton, Justin  wrote:
> 
> I took a look and I can't find any duplicate ids, but perhaps I'm just 
> missing it.  I have attached the EAD file from ArchivesSpace.
> 
> Thanks!
> 
> Justin Dalton
> Applications Administrator
> W Libraries | William & Mary
> 757-221-3101
> jcdal...@wm.edu 
> 
> From:Majewski, Steven Dennis (sdm7g)
> Sent: Thursday, January 16, 2020 2:28 PM
> To: Dalton, Justin
> Cc: Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF
> 
> It’s saying you’ve got more than one EAD element with id=“d3e97” . 
> I assume you’re generating PDF from the staff interface, which first 
> serializes resource as EAD XML and then runs that thru the FOP processor ( 
> which is where it’s catching and complaining about the error in the EAD ( 
> org.apache.fop.fo…  ) 
> 
> You should export resource as EAD and look for duplicate id’s , or post it 
> here and we’ll take a look. 
> 
> 
> I don’t think ArchivesSpace would have generated or assigned duplicate IDs: 
> was this resource created by importing EAD that might have contained 
> duplicates ?  
> 
> 
> 
> — Steve M. 
> 
> 
> 
>> On Jan 16, 2020, at 2:06 PM, Dalton, Justin > > wrote:
>> 
>> That is what I get for trying to write an email right before lunch.  Sorry 
>> about that, the error is below.
>> 
>> Generating PDF for Georgia Ragsdale Curtis Papers  
>> org.apache.fop.fo.ValidationException: Property ID "d3e97" (found on 
>> "fo:block") previously used; ID values must be unique within a document! 
>> (See position 363:37)
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(org/apache/xalan/transformer/TransformerIdentityImpl.java:502)
>> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
>> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:468)
>> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:326)
>> RUBY.to_pdf(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:49)
>> RUBY.block in 
>> run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)
>> archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.request_context.open(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
>> RUBY.run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
>> archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
>> archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
>> RUBY.block in 
>> start_background_thread(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)
>> org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)
>> org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)
>> java.lang.Thread.run(java/lang/Thread.java:748)
>> 
>> 
>> Justin Dalton
>> Applications Administrator
>> W Libraries | William & Mary
>> 757-221-3101
>> jcdal...@wm.edu 
>> 
>> From:Majewski, Steven Dennis (sdm7g)
>> Sent: Thursday, January 16, 2020 2:02 PM
>> To: Dalton, Justin
>> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF
>> 
>> 
>> What error ? 
>> 
>> 
>>> On Jan 16, 2020, at 12:04 PM, Dalton, Justin >> > wrote:
>>> 
>>> I'm receiving the following error message when trying to generate a PDF.  
>>> Anyone else had this error, or suggestions on how to fix it?
>>> 
>>> Thanks
>>> 
>>> Justin Dalton
>>> Applications Administrator
>>> W Libraries | William & Mary
>>> 757-221-3101
>>> jcdal...@wm.edu 
>>> ___

Re: [Archivesspace_Users_Group] Error Generating PDF

2020-01-16 Thread Majewski, Steven Dennis (sdm7g)
It’s saying you’ve got more than one EAD element with id=“d3e97” . 
I assume you’re generating PDF from the staff interface, which first serializes 
resource as EAD XML and then runs that thru the FOP processor ( which is where 
it’s catching and complaining about the error in the EAD ( org.apache.fop.fo…  
) 

You should export resource as EAD and look for duplicate id’s , or post it here 
and we’ll take a look. 


I don’t think ArchivesSpace would have generated or assigned duplicate IDs: was 
this resource created by importing EAD that might have contained duplicates ?  



— Steve M. 



> On Jan 16, 2020, at 2:06 PM, Dalton, Justin  wrote:
> 
> That is what I get for trying to write an email right before lunch.  Sorry 
> about that, the error is below.
> 
> Generating PDF for Georgia Ragsdale Curtis Papers  
> org.apache.fop.fo.ValidationException: Property ID "d3e97" (found on 
> "fo:block") previously used; ID values must be unique within a document! (See 
> position 363:37)
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(org/apache/xalan/transformer/TransformerIdentityImpl.java:502)
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:468)
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:326)
> RUBY.to_pdf(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:49)
> RUBY.block in 
> run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)
> archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.request_context.open(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
> RUBY.run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
> archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> RUBY.block in 
> start_background_thread(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)
> java.lang.Thread.run(java/lang/Thread.java:748)
> 
> 
> Justin Dalton
> Applications Administrator
> W Libraries | William & Mary
> 757-221-3101
> jcdal...@wm.edu 
> 
> From:Majewski, Steven Dennis (sdm7g)
> Sent: Thursday, January 16, 2020 2:02 PM
> To: Dalton, Justin
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF
> 
> 
> What error ? 
> 
> 
>> On Jan 16, 2020, at 12:04 PM, Dalton, Justin > > wrote:
>> 
>> I'm receiving the following error message when trying to generate a PDF.  
>> Anyone else had this error, or suggestions on how to fix it?
>> 
>> Thanks
>> 
>> Justin Dalton
>> Applications Administrator
>> W Libraries | William & Mary
>> 757-221-3101
>> jcdal...@wm.edu 
>> ___
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group@lyralists.lyrasis.org 
>> 
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
>> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Finding Aid PDF Error

2020-01-09 Thread Majewski, Steven Dennis (sdm7g)


> On Jan 9, 2020, at 3:29 PM, June L Power  wrote:
> 
> Thanks so much for testing that. On job_657_file-787.pdf – the logo and text 
> look great! Much improved over the previous test. Did you just replace the 
> logo image in the /customizations/global/images folder? 
>  
> June


I didn’t replace the logo image file anywhere. 
I just edited the logo URL in repository settings to point to the image in your 
home page header: 
> https://dlib.uncp.edu/customizations/global/images/UNCP_P_Vert_Bk.png 
> <https://dlib.uncp.edu/customizations/global/images/UNCP_P_Vert_Bk.png>
And edited the XSLT stylesheet to reduce displayed size of the logo. 

Image URLs can point anywhere and can be outside of ArchivesSpace web apps. 
Although, if you want to use a copy specific to ArchivesSpace, you could try 
adding it as an image asset in you local plugin. 

— Steve. 


>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  On Behalf Of 
> Majewski, Steven Dennis (sdm7g)
> Sent: Thursday, January 9, 2020 3:09 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Finding Aid PDF Error
>  
>  
> I edited on of my repos on a test instance to use your logo at  
> https://dlib.uncp.edu/customizations/global/images/UNCP_P_Vert_Bk.png 
> <https://dlib.uncp.edu/customizations/global/images/UNCP_P_Vert_Bk.png> 
> I don’t know if that’s the one you’re using in ArchivesSpace: it was the one 
> on your home page, and it although it was sized small on the page header, I 
> downloaded the file and saw that it was similarly large sized. 
>  
> [1] Export PDF : I got the same sort of glitch with colliding and overlapping 
> text on the first page:
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] need help customizing text in ArchivesSpace

2019-12-09 Thread Majewski, Steven Dennis (sdm7g)
t;#{t('search_results.filter.creators')}",'creators_text'],
["#{t('search_results.filter.subjects')}",'subjects_text'],
["#{t('search_results.filter.notes')}", 'notes'],
["#{t('search_results.filter.identifier')}", 'four_part_id']
   ]
} %>




One template that you don’t change is 
public/app/views/layouts/application.html.erb, which is the top level layout 
that handles the HTML header and  shared markup for all of the pages ( i.e. 
header, footer, navigation, etc. ) .   Instead, each plugin can include a 
views/layout_head.html.erb file, which are included in the HTML header by that 
application.html.erb template.  This is where you can stick custom javascript 
or css links. 






> On Dec 9, 2019, at 2:31 PM, Janet Hack  wrote:
> 
> That looks like it worked - thanks for your help.
> 
> A few more questions: 
> Is it possible to change the wording of the heading "Welcome to 
> ArchivesSpace"?
> How can we add line breaks to the Welcome message?
> Thanks.
> 
>   - Janet
> 
> -
> Janet Hack
> Science and Online Technologies Librarian
> Hoover Library | McDaniel College
> 2 College Hill | Westminster, MD 21157-4390
> 410-857-2283 | jh...@mcdaniel.edu <mailto:jh...@mcdaniel.edu>
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of 
> Majewski, Steven Dennis (sdm7g) 
> Sent: Monday, December 9, 2019 2:06 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] need help customizing text in 
> ArchivesSpace
>  
> There shouldn’t be a text value after ‘brand:’   
> The value of en.brand is the hash of the following values, so that 
> en.brand.title, for example, maps to a value.  
> If you take out that text it should work: 
> 
> en:
>  brand:
>   title: McDaniel College Archives Catalog
>   home: Home
>   welcome_message: HEY HEY HEY! !
> 
> 
> Error message is a bit confusing, but it’s trying to say it can’t assign 
> mappings of title, home, welcome_message, to en.brand because it already has 
> a string value of “McDaniel Archives” .
> 
> 
>> On Dec 9, 2019, at 1:34 PM, Janet Hack > <mailto:jh...@mcdaniel.edu>> wrote:
>> 
>> So, I finally got some time to get back to this and still can't get it to 
>> work.
>> 
>> After updating the en.yml file located at plugins/local/public/locales/ to 
>> the following:
>> 
>> en:
>>  brand: McDaniel Archives
>>   title: McDaniel College Archives Catalog
>>   home: Home
>>   welcome_message: HEY HEY HEY! !
>> and restarting the server, I get the following fatal error message in the 
>> log:
>>  I18n::InvalidLocaleData (can not load translations from 
>> /opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml: 
>> #> (/opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml):
>>  mapping values are not allowed here at line 3 column 8>
>> ​Any suggestions would be greatly appreciated.
>> 
>>   - Janet
>> 
>> ---------
>> Janet Hack
>> Science and Online Technologies Librarian
>> Hoover Library | McDaniel College
>> 2 College Hill | Westminster, MD 21157-4390
>> 410-857-2283 | jh...@mcdaniel.edu <mailto:jh...@mcdaniel.edu>
>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>> > <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
>> of Majewski, Steven Dennis (sdm7g) > <mailto:sd...@virginia.edu>>
>> Sent: Friday, November 22, 2019 3:02 PM
>> To: Archivesspace Users Group 
>> > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Subject: Re: [Archivesspace_Users_Group] need help customizing text in 
>> ArchivesSpace
>>  
>> 
>> 
>>> On Nov 22, 2019, at 2:49 PM, Blake Carver >> <mailto:blake.car...@lyrasis.org>> wrote:
>>> 
>>> I think that doc is out of date, this might be more update:
>>> https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md
>>>  
>>> <https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md>
>>> 
>>>  
>> 
>> 
>> Although, that doc has an error in the whitespace/indentation of the 
>> example. “brand:”  should be less indented.  — Steve.  
>> 
>> 
>>> 
>>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>>> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>

Re: [Archivesspace_Users_Group] need help customizing text in ArchivesSpace

2019-12-09 Thread Majewski, Steven Dennis (sdm7g)
There shouldn’t be a text value after ‘brand:’   
The value of en.brand is the hash of the following values, so that 
en.brand.title, for example, maps to a value.  
If you take out that text it should work: 

en:
 brand:
  title: McDaniel College Archives Catalog
  home: Home
  welcome_message: HEY HEY HEY! !


Error message is a bit confusing, but it’s trying to say it can’t assign 
mappings of title, home, welcome_message, to en.brand because it already has a 
string value of “McDaniel Archives” .


> On Dec 9, 2019, at 1:34 PM, Janet Hack  wrote:
> 
> So, I finally got some time to get back to this and still can't get it to 
> work.
> 
> After updating the en.yml file located at plugins/local/public/locales/ to 
> the following:
> 
> en:
>  brand: McDaniel Archives
>   title: McDaniel College Archives Catalog
>   home: Home
>   welcome_message: HEY HEY HEY! !
> and restarting the server, I get the following fatal error message in the log:
>  I18n::InvalidLocaleData (can not load translations from 
> /opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml: 
> # (/opt/archivesspace/archivesspace-2.7.0/plugins/local/public/locales/en.yml): 
> mapping values are not allowed here at line 3 column 8>
> ​Any suggestions would be greatly appreciated.
> 
>   - Janet
> 
> -
> Janet Hack
> Science and Online Technologies Librarian
> Hoover Library | McDaniel College
> 2 College Hill | Westminster, MD 21157-4390
> 410-857-2283 | jh...@mcdaniel.edu <mailto:jh...@mcdaniel.edu>
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of 
> Majewski, Steven Dennis (sdm7g) 
> Sent: Friday, November 22, 2019 3:02 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] need help customizing text in 
> ArchivesSpace
>  
> 
> 
>> On Nov 22, 2019, at 2:49 PM, Blake Carver > <mailto:blake.car...@lyrasis.org>> wrote:
>> 
>> I think that doc is out of date, this might be more update:
>> https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md
>>  
>> <https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md>
>> 
>>  
> 
> 
> Although, that doc has an error in the whitespace/indentation of the example. 
> “brand:”  should be less indented.  — Steve.  
> 
> 
>> 
>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>> > <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
>> of Majewski, Steven Dennis (sdm7g) > <mailto:sd...@virginia.edu>>
>> Sent: Friday, November 22, 2019 2:24 PM
>> To: Archivesspace Users Group 
>> > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Subject: Re: [Archivesspace_Users_Group] need help customizing text in 
>> ArchivesSpace
>>  
>> One thing to check:  the spaces and indentation in .yml files are 
>> significant, and you can’t mix tabs(*)  with spaces, so you should make sure 
>> that you haven’t accidentally inserted a tab when editing.  You can edit the 
>> file in place for testing, but for normal production, I advise copying the 
>> values you want to change into plugins/local/public/locales/en.yml and 
>> editing them there.  But again, you have to be careful to preserve .yml 
>> hierarchy. 
>> 
>> You may also eventually want to try copying some of the shared view 
>> templates into plugins/local/public/views/shared/   and editing those. 
>> It’s easier to manage upgrades if you keep your changes in plugins 
>> directories.  
>> 
>> (*) In fact, googling this, I see it doesn’t like tabs at all. Must be only 
>> spaces. 
>> 
>> 
>> — Steve M. 
>> 
>> 
>> 
>>> On Nov 22, 2019, at 1:50 PM, Janet Hack >> <mailto:jh...@mcdaniel.edu>> wrote:
>>> 
>>> Greetings,
>>> 
>>> we are new to ArchivesSpace and are trying to change the wording on our 
>>> public-facing pages https://archivesspace.mcdaniel.edu/ 
>>> <https://archivesspace.mcdaniel.edu/>. We want to change the header title 
>>> from the standard "ArchivesSpace Public Interface" and we would like to put 
>>> in a custom welcome message. I have tried editing the en.yml file following 
>>> the instructions at 
>>> https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/
>>>  
>>> <https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/>
&

Re: [Archivesspace_Users_Group] OCLC Digital Collection Gateway

2019-12-03 Thread Majewski, Steven Dennis (sdm7g)

Not at all a solution to the original posters problem, but I was thinking of 
proposing that in a future release, we just get rid of the separate OAI server, 
and server OAI from  public-url/oai .

Some sites are already doing that — I assume thru apache or other proxy server. 
( I think that’s what Lyrasis is doing for the sites they manage. I wish I had 
thought of that obvious option before setting up a separate VHOST for OAI.  )

The existing OAI server is only proxying data from the backend server anyway. 

Proxying to the PUI would make configuration simpler, and would have the side 
benefit of a consistent OAI endpoint for all public sites. 

— Steve M. 


> On Dec 3, 2019, at 2:02 PM, Seth Shaw  wrote:
> 
> Side note now that Steve pointed out that port 8081 does work, I recommend 
> changing the PUI port to "80", the default web port, so users don't need to 
> add the 8081 port to access your site.
> 



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] OCLC Digital Collection Gateway

2019-12-03 Thread Majewski, Steven Dennis (sdm7g)
I can’t access that URL, although if I change it to port 8081, I can see the 
PUI welcome page. 
Is port 8082 behind a firewall ? 
I thing the error message is to be taken literally: URL is inaccessible. 

— Steve M. 




> On Dec 3, 2019, at 1:42 PM, Thomas San Filippo 
>  wrote:
> 
> Hi folks,
> 
> Has anyone successfully run an OAI-PMH harvest of their ArchivesSpace via 
> OCLC's Digital Collection Gateway? Everything *seems* to be set up correctly 
> in our config file, but we fail the third test in the DCG interface:
> 
> SUCCESS: Testing URL Uniqueness
> SUCCESS: Testing URL Validity
> FAILED: Testing Availability
> SKIPPED: Testing OAI Support
> SKIPPED: Testing DC Format Support
> SKIPPED: Testing OCLC DC Format Support
> SKIPPED: Testing List Sets
> SKIPPED: Testing Set Uniqueness
> SKIPPED: Testing List Records
> SKIPPED: Testing Actionable URL Identifier
> I think we may have a problem with our base URL. I'm using 
> http://archives.wheatoncollege.edu:8082 
>  , but pretty much anything I try 
> passes the first two tests and fails the third. The troubleshooting 
> information given for that test is:
> 
> Testing Availability: The OAI-­‐PMH Base URL is currently inaccessible. It is 
> possible that the repository is currently down or that it is simply not 
> reachable by the Gateway. Double-­‐check the spelling of the URL and make 
> sure it has not been mistyped or pasted incorrectly.
> 
> 
> 
> -- 
> Thomas San Filippo 
> Systems and Educational Technology Liaison 
> 
> Pronouns: he/him/his; they/them/their(s) 
> 
> Madeleine Clark Wallace Library 
> , G34 
> Wheaton College  
> 26 E. Main Street, Norton, MA 02766  
> (508) 286-5601  
> Twitter: @WallaceLibrary  | Instagram: 
> /wallacelibrary  | Facebook: 
> wheatoncollege  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] need help customizing text in ArchivesSpace

2019-11-22 Thread Majewski, Steven Dennis (sdm7g)


> On Nov 22, 2019, at 2:49 PM, Blake Carver  wrote:
> 
> I think that doc is out of date, this might be more update:
> https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md
>  
> <https://github.com/archivesspace/tech-docs/blob/master/customization/locales.md>
> 
>  


Although, that doc has an error in the whitespace/indentation of the example. 
“brand:”  should be less indented.  — Steve.  


> 
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of 
> Majewski, Steven Dennis (sdm7g) 
> Sent: Friday, November 22, 2019 2:24 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] need help customizing text in 
> ArchivesSpace
>  
> One thing to check:  the spaces and indentation in .yml files are 
> significant, and you can’t mix tabs(*)  with spaces, so you should make sure 
> that you haven’t accidentally inserted a tab when editing.  You can edit the 
> file in place for testing, but for normal production, I advise copying the 
> values you want to change into plugins/local/public/locales/en.yml and 
> editing them there.  But again, you have to be careful to preserve .yml 
> hierarchy. 
> 
> You may also eventually want to try copying some of the shared view templates 
> into plugins/local/public/views/shared/   and editing those. 
> It’s easier to manage upgrades if you keep your changes in plugins 
> directories.  
> 
> (*) In fact, googling this, I see it doesn’t like tabs at all. Must be only 
> spaces. 
> 
> 
> — Steve M. 
> 
> 
> 
>> On Nov 22, 2019, at 1:50 PM, Janet Hack > <mailto:jh...@mcdaniel.edu>> wrote:
>> 
>> Greetings,
>> 
>> we are new to ArchivesSpace and are trying to change the wording on our 
>> public-facing pages https://archivesspace.mcdaniel.edu/ 
>> <https://archivesspace.mcdaniel.edu/>. We want to change the header title 
>> from the standard "ArchivesSpace Public Interface" and we would like to put 
>> in a custom welcome message. I have tried editing the en.yml file following 
>> the instructions at 
>> https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/
>>  
>> <https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/>
>>  with no success. 
>> 
>> Any assistance would be greatly appreciated. Please feel free to contact me 
>> off-list.
>> 
>>   - Janet
>> 
>> -
>> Janet Hack
>> Science and Online Technologies Librarian
>> Hoover Library | McDaniel College
>> 2 College Hill | Westminster, MD 21157-4390
>> 410-857-2283 | jh...@mcdaniel.edu 
>> <mailto:jh...@mcdaniel.edu>___
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group@lyralists.lyrasis.org 
>> <mailto:Archivesspace_Users_Group@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@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] need help customizing text in ArchivesSpace

2019-11-22 Thread Majewski, Steven Dennis (sdm7g)
One thing to check:  the spaces and indentation in .yml files are significant, 
and you can’t mix tabs(*)  with spaces, so you should make sure that you 
haven’t accidentally inserted a tab when editing.  You can edit the file in 
place for testing, but for normal production, I advise copying the values you 
want to change into plugins/local/public/locales/en.yml and editing them there. 
 But again, you have to be careful to preserve .yml hierarchy. 

You may also eventually want to try copying some of the shared view templates 
into plugins/local/public/views/shared/   and editing those. 
It’s easier to manage upgrades if you keep your changes in plugins directories. 
 

(*) In fact, googling this, I see it doesn’t like tabs at all. Must be only 
spaces. 


— Steve M. 



> On Nov 22, 2019, at 1:50 PM, Janet Hack  wrote:
> 
> Greetings,
> 
> we are new to ArchivesSpace and are trying to change the wording on our 
> public-facing pages https://archivesspace.mcdaniel.edu/ 
> . We want to change the header title 
> from the standard "ArchivesSpace Public Interface" and we would like to put 
> in a custom welcome message. I have tried editing the en.yml file following 
> the instructions at 
> https://archivesspace.github.io/archivesspace/user/customizing-text-in-archivesspace/
>  
> 
>  with no success. 
> 
> Any assistance would be greatly appreciated. Please feel free to contact me 
> off-list.
> 
>   - Janet
> 
> -
> Janet Hack
> Science and Online Technologies Librarian
> Hoover Library | McDaniel College
> 2 College Hill | Westminster, MD 21157-4390
> 410-857-2283 | jh...@mcdaniel.edu 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] importing EAD files

2019-11-22 Thread Majewski, Steven Dennis (sdm7g)
Marks diagnosis is correct. 
I would just add that additional information as to what is missing is in those 
error messages, although they are admittedly difficult to interpret:


==
veteran_city_guard.xml
==
!!
IMPORT ERROR
!!
The following errors were found:
dates : one or more required (or enter a Title)
title : must not be an empty string (or enter a Date)
 For JSONModel(:archival_object): 
 #"archival_object", 
"external_ids"=>[], "subjects"=>[], "linked_events"=>[], "extents"=>[], 
"lang_materials"=>[], "dates"=>[], "external_documents"=>[], 
"rights_statements"=>[], "linked_agents"=>[], "component_id"=>"Volumes", 
"is_slug_auto"=>true, "restrictions_apply"=>false, "ancestors"=>[], 
"instances"=>[], "notes"=>[], 
"uri"=>"/repositories/import/archival_objects/import_3abfb4c6-3934-4c90-b318-45fe088421a1",
 "level"=>"series", 
"resource"=>{"ref"=>"/repositories/import/resources/import_0e5faef2-0da7-44dd-a606-301b1e990ca3"},
 "publish"=>true}>
In : 
 c01 class=cdata level=series ... /c01 
!!

If you can read thru the escaped characters, at the end it’s saying the date or 
title is missing from: 
However, date and title is the archivesspace schema tags for what is missing, 
not the missing EAD element. 
( Validation of the data is done on the JSON schema after XML parsing, not on 
the EAD XML . ) 

If you fix only that and import again, you’ll get an error on the next c01 
series.  
And if you fix both and try again, you’ll get a somewhat longer and more 
confusing error message: 

http://test.archivesspace.org/staff/jobs/375 
 

But again, it helps to just look first at the top and bottom of the message. 

The following errors were found:
id_0 : Property is required but was missing

That one is a little harder to interpret — you have to know that id’s in 
ArchivesSpace have 4 parts and id_0 is the first part,
and understand that what’s missing from the EAD is a  . 

And if you skip to the bottom, it’s telling you the error is in the  
element, which is exactly true — you have to interpret is loosely saying it’s 
missing from the topmost resource , so actually /ead/archdesc/ 


In : 
 ead class=cdata relatedencoding=MARC21 ... 
/ead 


There is also a clue in the middle part of the error message which in this case 
is indicating the the error is in a resource 

For JSONModel(:resource): 

Where in the first example, the error was in an archival_object, which is a 
child of the top level resource. 


So unfortunately, you really have to understand some ArchivesSpace internals to 
map those import errors into what needs to be changed in the EAD XML.  

I was looking for the EAD Import/Export mappings file online, but couldn’t find 
where the links to it have been moved in Wiki. 
That document would help with seeing the mappings between EAD elements and 
ASpace JSON schema values. 


BTW: That initial result you posted where there was no error, but no resulting 
resource was most likely a result of not setting the import type, as Miloche 
suggested. MARCXML is the default if you don’t change it. It didn’t actually 
verify that the file was MARCXML, but it didn’t match any MARCXML tags in your 
EAD file.  We probably ought to check to see if the top level element matches 
what’s expected. 


BTW2: Import worked for me on test site once I added those missing elements:
http://test.archivesspace.org/resources/veteran_city_guard_of_hartford_collection
 




— Steve M. 




> On Nov 22, 2019, at 11:43 AM, Custer, Mark  wrote:
> 
> Jennifer,
>  
> Thanks, this helps a lot!
>  
> It looks like there are couple of required elements missing from this file 
> for ArchivesSpace to be able to import it.  Though your file is valid EAD, 
> ArchivesSpace requires all resources to have things like a title, date, 
> extent, as well as a distinct unitid element (which this file is missing).  
> So, you’d need to add a unitid element, like so:
>  
> 1861-1946
> Distinct Call Number
> 
> 20 linear feet
>   “linear_feet” with an underscore, otherwise ArchivesSpace will create a 
> duplicate linear feet value in the extent dropdown list, since the ASpace EAD 
> importer uses the database values of those controlled value lists rather than 
> the translation values à
> 
>  
>  
> Additionally, all of the lower-level components must have, at the very least, 
> a title OR a date. 
>  
> In this case, it looks like all of your series have “unitid” elements instead 
> of “unittitle” elements.  But if you change this for all of your series:
>  
> 
>   
>

Re: [Archivesspace_Users_Group] Finding Aid PDF Error

2019-11-05 Thread Majewski, Steven Dennis (sdm7g)
Yes — your logo image is pretty large. The easiest hack might be to edit and 
downsize the image file. 


The staff Postscript export uses Apache FOP. 
If you have a computer in which you can install a FOP processor and Saxon ( or 
if you can run Oxygen XML Editor ) 
You can debug the PDF output outside of ArchivesSpace, which can sometime be 
easier, especially if you’re trying
To identify if the problems is with the EAD export or the FOP transform. 

In this case, the problem is confined between the logo image size and the FOP 
transform. 
The FOP XSL Stylesheet is:  archivesspace/stylesheets/as-ead-pdf.xsl
So if you don’t want to edit the image, you can try hacking the FOP xsl file. 

I’m not very expert on FOP, but I’m guessing this is the part you would want to 
change. 
Maybe changing those content width/height values would do it. 
See what happens if you change “75%” to “50%” 

  



  







> On Nov 5, 2019, at 3:49 PM, June L Power  wrote:
> 
> Thanks Steve.
>  
> I’m running version v2.6.0 and creating the PDF from the staff interface. I 
> am unable to create them from the public side.  I’m trying to figure this out 
> with no real IT support, but with IT controlling server file access. So they 
> sent me the .xsl file and told me to edit it to fix the problem and send it 
> back to them to load to server.  
>  
> I’ve attached a sample of what it is doing right now. There is a logo image 
> there and it is pretty large.
>  
> June
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>  <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> On Behalf 
> Of Majewski, Steven Dennis (sdm7g)
> Sent: Tuesday, November 5, 2019 3:38 PM
> To: Archivesspace Users Group 
>  <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
> Subject: Re: [Archivesspace_Users_Group] Finding Aid PDF Error
>  
>  
> What version of ArchivesSpace are you running, and is this PDF produced from 
> the Staff interface of the PUI ? 
> Also: have you added a custom logo image ? 
> ( I have seen some problems in the past if your custom logo is much larger 
> that the default image. ) 
>  
> — Steve M. 
>  
> 
> 
> On Nov 5, 2019, at 1:17 PM, June L Power  <mailto:june.po...@uncp.edu>> wrote:
>  
> I am new to using ASpace and have been looking through the documentation 
> trying to find a resolution for this error.
>  
> The collection information text is overlapping the repository text. The 
> repository text is later repeated. How can I remove the repository text from 
> this page of the generated PDF?
>  
> TIA! 
>  
> 
> June Power, MLIS
> Director, Special Collections and Archives
> Mary Livermore Library
> The University of North Carolina at Pembroke
> P.O. Box 1510
> Pembroke, NC  28372
>  
> 910.521.6369
> 910.521.6547 (fax)
> june.po...@uncp.edu <mailto:june.po...@uncp.edu>
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@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@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Finding Aid PDF Error

2019-11-05 Thread Majewski, Steven Dennis (sdm7g)

What version of ArchivesSpace are you running, and is this PDF produced from 
the Staff interface of the PUI ? 
Also: have you added a custom logo image ? 
( I have seen some problems in the past if your custom logo is much larger that 
the default image. ) 

— Steve M. 


> On Nov 5, 2019, at 1:17 PM, June L Power  wrote:
> 
> I am new to using ASpace and have been looking through the documentation 
> trying to find a resolution for this error.
>  
> The collection information text is overlapping the repository text. The 
> repository text is later repeated. How can I remove the repository text from 
> this page of the generated PDF?
>  
> TIA! 
>  
> 
> June Power, MLIS
> Director, Special Collections and Archives
> Mary Livermore Library
> The University of North Carolina at Pembroke
> P.O. Box 1510
> Pembroke, NC  28372
>  
> 910.521.6369
> 910.521.6547 (fax)
> june.po...@uncp.edu 
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Issue after updating to Aspace v2.7.0 -- "translation missing:"

2019-11-05 Thread Majewski, Steven Dennis (sdm7g)

The first obvious question is: does it work properly with the standard 
locales/en.yml instead of the custom one ? 

“Translation missing” points to a problem with one or more of the locales yml 
files. 

It’s usually better to add locales changes to local plugin than to edit the 
applications locales file. 


— Steve M. 


> On Nov 5, 2019, at 3:13 PM, Gadsby, Eric T.  wrote:
> 
> Good Afternoon,
> 
> After updating to 2.7.0 the staff interface now shows titles and headings as 
> “translation missing:*”.   Has anyone seen this and know what might cause it?
> 
> In addition to using a custom config we use custom:
> 
> plugins/local/public/views/layout_head.html.erb
> 
> locales/en.yml
> Thank you for your help!
> 
>  
>  
>  
>     
> Eric T. Gadsby
> IT Operations Specialist | Albert S. Cook Library
> —
> P: 410-704-3340 
> egad...@towson.edu   |  libraries.towson.edu 
> 
> —
> Pronouns: he/him/his
> 
> Confidentiality Notice: This message may contain information that is 
> confidential, privileged, proprietary, or otherwise legally exempt from 
> disclosure. If you are not the intended recipient, you are notified that you 
> are not authorized to read, print, copy or disseminate this message, any part 
> of it, or any attachments. If this message has been sent to you in error, 
> please notify the sender by replying to this transmission, or by calling 
> Albert S. Cook Library at 410-704-3340. 
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


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

2019-11-01 Thread Majewski, Steven Dennis (sdm7g)


> On Nov 1, 2019, at 3:06 PM, Kara Hart  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  > wrote:
> Nice – looks good. Thanks!
> 
>  
> 
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
>  > On Behalf 
> Of James Bullen
> Sent: Tuesday, October 29, 2019 1:05 PM
> To: Archivesspace Users Group 
>  >
> 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  > 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
> 
> h2This is a test/h2
> 
> pThis is always a test/p
> 
> pTests are what I do./p
> 
> h3here is a heading/h3
> 
> pThis is always a test/p
> 
> pTests are what I do./p
> 
> h3here is a heading/h3
> 
> pThis is always a test/p
> 
> pTests 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-boun...@lyralists.lyrasis.org 
>  
>  > On Behalf 
> Of Andrew Morrison
> Sent: Tuesday, October 29, 2019 10:55 AM
> To: Archivesspace Users Group 
>  >
> 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  > 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 
> 
>  
> 
> Maybe it can be a useful starting point.
> 
>  
> 
>  
> 
> Cheers,
> 
> James
> 
>  
> 
>  
> 
> 
> 
> 
> 
> On Oct 28, 2019, at 3:52 PM, Kara Hart  > 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 
> 

Re: [Archivesspace_Users_Group] Error? - Stanford upgrade from 1.5.4 to 2.6.0

2019-10-16 Thread Majewski, Steven Dennis (sdm7g)

Error messages/images are too compressed or small to read. Just a blur.  Can 
you resend or else transcribe ?  — Steve M.


> On Oct 16, 2019, at 2:52 PM, Michael G Olson  wrote:
> 
> Hi everyone,
> 
> Here at Stanford Libraries we just ran an upgrade from 1.5.4 to version 2.6.0 
> and noticed some odd behavior we’d like to validate with our peers.  We 
> received no error messages while running the upgrade.  That said, for one of 
> our repositories (we have many) we’ve noticed that by clicking on the 
> resource tree we get an error message.  I’m speculating here but my guess is 
> that the extent for this resources were not defined in such a way the 
> application knows the relationship between parent and child.  Here is the 
> error message we’re seeing.
> 
> .
> 
> For this particular example here is how our extents had been entered in 
> application.
> 
> 
> 
> My questions are has anyone seen this sort of behavior before?  Is this 
> something we can fix in the upgraded application or do we need to implement a 
> fix before the upgrade.  Any insights anyone has on this issue would be much 
> appreciated!
> 
> Michael
> 
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Slow searches in Staff webapp.

2019-09-20 Thread Majewski, Steven Dennis (sdm7g)

We’ve had some issues with certain searches in the staff interface ( v2.6.0 ) 
and I wonder if anyone else has observed this. 

We were getting proxy errors on some searches from the Staff web app. 
We are adjusting the proxy timeouts in apache to get around this, however, 
finding that some searches really do take too long. 
I’ve found a pattern in the failing searches and I think I’ve discovered two 
separate issues. 


First of all — the problem isn’t actually with the SOLR search, which returns 
quickly, 
But with formatting the results — specifically the ‘Found In’ column where it 
needs to collect the ancestors titles to show the items place in the hierarchy.
Searches that have only top level resources in the first page of results return 
quickly as there is no ancestors to display.
Searches with archival_objects in results take longer.  Top_container results 
appear to be the slowest, as there may be multiple resources in the list. 

Rendering _context.html.erb for top_containers maybe 5-10x slower worst case 
than rendering top level resources:

https://github.com/archivesspace/archivesspace/blob/master/frontend/app/views/search/_context.html.erb
 


I haven’t seen a similar issue with PUI searches which seem to use only SOLR, 
while the staff webapp makes multiple backend API calls that are probably doing 
SQL access. 
( Which leads me to think that this ancestor field ought to be cached in SOLR 
for the Staff search to avoid these worst case search events. )


The 2nd issue seems to be that our production server is significantly slower at 
this than test machines. 
This appears to be a greater factor than can be explained by the greater  load 
on production server.
I suspect, but haven’t yet proven, that the difference is due to using a 
central MySql server for production but using a local MySql server on test 
machines. 

This seems to add a similar order of magnitude slowdown to search results.   
So maybe worst case difference = 10 * 10 = 100x slower.  But not seeing that 
large a difference on average. 

These are mostly guesses from observing logs — I’m adding some instrumentation 
to make a more definitive diagnosis.  

— Steve Majewski



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Unable to view or edit resource record/tree

2019-09-16 Thread Majewski, Steven Dennis (sdm7g)
If it was just the PUI, I would guess it was an indexing problem, but that 
“Oops” error, to me,
looks like it’s having a problem with retrieving resource tree information from 
the backend. 

Not too long ago, there was a thread on this mailing list with the subject:  
"Retrieving tree info via API (what are "waypoints”?)”
You might take a look at that thread and see if you can do a backend API query 
to fetch the resource root and it’s waypoints. 

Except that the “affecting all resources” sounds like something more global.  

What is in the log files when this happens ? 

— Steve M. 


> On Sep 16, 2019, at 3:06 PM, Zachary L Pelli  wrote:
> 
> We’re running 2.5.2. On the staff interface, clicking Edit or View on any top 
> level resource record gives this error: “Oops! We're having trouble fetching 
> this tree. Please try refreshing the page.” On the PUI, you can view the 
> top-level record, but the “Collection Organization” tree is blank. This issue 
> seems to be affecting all resources.
>  
> Regards,
>  
> Zach Pelli
> Digital Collections Infrastructure Developer
> Seton Hall University Libraries
> 973.275.2046
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Archivesspace dropping https in Staff UI

2019-08-30 Thread Majewski, Steven Dennis (sdm7g)


> On Aug 30, 2019, at 10:55 AM, Kara Hart  wrote:
> 
> I've tried these three different settings.  
> 
> AppConfig[:frontend_proxy_url] = "https://archivesstaff.wellesley.edu 
> "
> AppConfig[:public_proxy_url] = "https://archives.wellesley.edu 
> "
> 
> AppConfig[:frontend_proxy_url] = proc { "https://archivesstaff.wellesley.edu 
> " }
> AppConfig[:public_proxy_url] = proc { "https://archives.wellesley.edu 
> " }
> 
> AppConfig[:frontend_proxy_url] = proc { 
> AppConfig[:https://archivesstaff.wellesley.edu 
> ] }
> AppConfig[:public_proxy_url] = proc { 
> AppConfig[:https://archives.wellesley.edu ] }
> 
> The last broke AS launching, which makes sense.  I think the default is to 
> use AppConfig[:frontend_url]
> which is AppConfig[:frontend_url] = "http://localhost:8080 
> " by default.  
> 

The “:” indicates a symbol in Ruby, which is a special kind of string constant
https://reactive.io/tips/2009/01/11/the-difference-between-ruby-symbols-and-strings
 


And   'AppConfig[:https://archivesstaff.wellesley.edu 
] ‘ is bad Ruby syntax unless quoted like 
 'AppConfig[:"https://archivesstaff.wellesley.edu 
”] 
But it likely not something you want anyway unless you have assigned something 
to that value previously.  


> I wonder if that is it.  Because before we made this change the link to the 
> staff interface from the public interface was http://localhost:8080 
>  and never rendered.  I wonder if there's another 
> apache setting I need for localhost?
> 

You don’t really want localhost for any of the proxy URLs. 
Localhost is fine for the URLs that are used internally, for example for the 
frontend or PUI to communicate with the backend. 
Unless you have set things up for multiple frontends on different hosts to talk 
to a single backend host, all of the services are
Running on the same host, and it’s the localhost.  But “localhost” doesn’t 
export.  If you send a localhost link to the browser,
It means, in the context of the browser, the same host the browser is running 
on, not the host the other service is on. 
So the code that adds the PUI link from the staff web app doesn’t add it if the 
proxy URL points to  “localhost". 




> 
> ~~~ Kara S. Hart 
> Systems Librarian - Library & Technology Services - Wellesley College
> 
> 
> On Fri, Aug 30, 2019 at 9:04 AM Trevor Thornton  > wrote:
> I think these are the settings in config.rb that make that work correctly 
> (from the documentation):
> AppConfig[:frontend_proxy_url] = "https://staff.myarchive.org 
> "
> AppConfig[:public_proxy_url] = "https://public.myarchive.org 
> "
> 
> But we have something like this:
> AppConfig[:frontend_proxy_url] = proc { "https://staff.myarchive.org 
> " }
> AppConfig[:public_proxy_url] = proc { "https://public.myarchive.org 
> " }
> with the URL wrapped in proc { }. So try both and see if it helps. If the 
> proc { } thing works then the documentation might need to be updated.
> 
> On Fri, Aug 30, 2019 at 8:47 AM Kara Hart  > wrote:
> Hi everyone, 
> We just built a new server with openjdk 1.8.0_212; Apache/2.4.6; 5.7.26 
> MySQL; CentOS Linux release 7.6.1810.
> I migrated the database from a 2.5.1 version and forced a full re-index by 
> deleting the data directory contents. At the same time we installed 
> certificates to start to serve the PUI and Staff UI over https. My Systems 
> staff added the settings to the apache config file and I edited the config.rb 
> file and entered the lines as suggested in the https setup documentation 
> .
>  
> 
> I'm having a problem with the AS not keeping https on the staff side when you 
> click to view or edit records.  I can search and get a list of result records 
> in the AS staff UI and navigate around, but when I click on a record to edit 
> or view I'm getting a requested resource is not found on server error. 
> 
> EX: a link to a record  
> https://archivesstaff.wellesley.edu/resolve/edit?uri=/repositories/2/resources/51
>  
> 
> should redirect to 
> https://archivesstaff.wellesley.edu/resources/51#tree::archival_object_15295 
> 
> but instead I get routed to insecure 
> http://archivesstaff.wellesley.edu/resources/51/edit 
> 

[Archivesspace_Users_Group] Proc {} in config.rb. [was: Archivesspace dropping https in Staff UI]

2019-08-30 Thread Majewski, Steven Dennis (sdm7g)

No proc {} wrapper needed for a literal string. 

The proc is creating a code block or procedure that will be run to get the 
value, and it’s purpose is to defer assignment, 
Typically where the AppConfig assignment is based on another value from 
AppConfig. 
That way, if a variable is changed from it’s default in config.rb, the 
dependent variable will also be changed. 

For example, from config-defaults.rb:  

AppConfig[:db_max_connections] = proc { 20 + (AppConfig[:indexer_thread_count] 
* 2) }


I have used proc {} wrapped around assignments in my config.rb , but I’m not 
sure that usage is even necessary:
Now that I think about it, it may only be needed in config-defaults to pick up 
changes added to config.rb . 
Once config.rb is being executed, there is already an AppConfig created with 
those defaults, and as long as 
your additions to config.rb are sequential, I don’t think the proc matters 
most* of the time. 


(*)  ‘most of the time’ : 

Where I have needed it is in adding: 

AppConfig[:hostname] = { Socket.gethostname }
# … 
AppConfig[:public_proxy_url] = proc { "http://#{AppConfig[:hostname]}:8081” }

To use actual host names instead of localhost for proxy urls.
But I believe that is mostly needed to defer execution until initialization has 
imported Socket module,
Because elsewhere I also assign AppConfig[:environment] to either :production 
or :development 
And use that in conditionals within my config.rb . 
( if :production, then it’s using assigned VHOST names and https: in those 
proxy settings instead of AppConfig[:hostname] ) 


So I’m thinking I was under the influence of some fuzzy thinking about the 
initialization process when I wrote my config.rb code. 
It all works as is, but now that I try to reason about it, it’s a bit off! 

— Steve.



> On Aug 30, 2019, at 9:03 AM, Trevor Thornton  wrote:
> 
> I think these are the settings in config.rb that make that work correctly 
> (from the documentation):
> AppConfig[:frontend_proxy_url] = "https://staff.myarchive.org 
> "
> AppConfig[:public_proxy_url] = "https://public.myarchive.org 
> "
> 
> But we have something like this:
> AppConfig[:frontend_proxy_url] = proc { "https://staff.myarchive.org 
> " }
> AppConfig[:public_proxy_url] = proc { "https://public.myarchive.org 
> " }
> with the URL wrapped in proc { }. So try both and see if it helps. If the 
> proc { } thing works then the documentation might need to be updated.
> 
> On Fri, Aug 30, 2019 at 8:47 AM Kara Hart  > wrote:
> Hi everyone, 
> We just built a new server with openjdk 1.8.0_212; Apache/2.4.6; 5.7.26 
> MySQL; CentOS Linux release 7.6.1810.
> I migrated the database from a 2.5.1 version and forced a full re-index by 
> deleting the data directory contents. At the same time we installed 
> certificates to start to serve the PUI and Staff UI over https. My Systems 
> staff added the settings to the apache config file and I edited the config.rb 
> file and entered the lines as suggested in the https setup documentation 
> .
>  
> 
> I'm having a problem with the AS not keeping https on the staff side when you 
> click to view or edit records.  I can search and get a list of result records 
> in the AS staff UI and navigate around, but when I click on a record to edit 
> or view I'm getting a requested resource is not found on server error. 
> 
> EX: a link to a record  
> https://archivesstaff.wellesley.edu/resolve/edit?uri=/repositories/2/resources/51
>  
> 
> should redirect to 
> https://archivesstaff.wellesley.edu/resources/51#tree::archival_object_15295 
> 
> but instead I get routed to insecure 
> http://archivesstaff.wellesley.edu/resources/51/edit 
> 
> with error "Not Found The requested URL /resources/51 was not found on 
> this server."
> If I change the last url to https, manually, it does render the edit page. 
> 
> Any idea with is going on or of a setting I'm missing somewhere? 
> Thanks, 
> 
> Kara
> 
> 
> ~~~ Kara S. Hart 
> Systems Librarian - Library & Technology Services - Wellesley College
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 
> 
> 
> -- 
> Trevor Thornton
> Applications Developer, Digital Library Initiatives
> North Carolina State University Libraries
> 

Re: [Archivesspace_Users_Group] Querying OAI-PMH

2019-08-28 Thread Majewski, Steven Dennis (sdm7g)
I could be wrong, but oai_ead payload is the only way I know of getting 
hierarchical info out of OAI. 
You can request   Files or Subseries sets, but I don’t know how you would link 
them from the info provided by OAI. 
But maybe I don’t understand your question. 
Can you describe what you’ve tried that hasn’t worked ? 
OAI’s not really a query protocol. Pretty much designed for one question: 
What’s new? 

— Steve M. 



> On Aug 28, 2019, at 12:40 PM, Kirill Batyuk  wrote:
> 
> Hi Steven,
>  
> metadataPrefix allows for modifying the metadata to preferred schema. I am 
> trying to figure out stanza for querying a specific set of records. I need to 
> pull a list of Files from a Sub-group. But, been struggling with it for a few 
> days.
>  
> Kirill.
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  On Behalf Of 
> Majewski, Steven Dennis (sdm7g)
> Sent: Wednesday, August 28, 2019 12:20 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Querying OAI-PMH
>  
>  
> Does requesting metadataPrefix=oai_ead give you what you want ? 
>  
>  
> 
> 
>> On Aug 28, 2019, at 12:15 PM, Kirill Batyuk > <mailto:kbat...@whoi.edu>> wrote:
>>  
>> Hello,
>>  
>> I’m trying to query OAI for the list of Files within the Sub-series. Does 
>> anyone know a proper OAI stanza to return the results?
>> 
>> Thank you,
>>  
>> Kirill Batyuk
>> Systems Librarian
>> MBLWHOI Library
>> Data Library and Archives
>> Woods Hole Oceanographic Institution
>> 508-289-2850
>> kbat...@whoi.edu <mailto:kbat...@whoi.edu>
>> mblwhoilibrary.org <http://mblwhoilibrary.org/> --- whoi.edu 
>> 
>> ORCID <http://orcid.org/-0003-0240-2209>
>>  
>> ___
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group@lyralists.lyrasis.org 
>> <mailto:Archivesspace_Users_Group@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@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Querying OAI-PMH

2019-08-28 Thread Majewski, Steven Dennis (sdm7g)

Does requesting metadataPrefix=oai_ead give you what you want ? 



> On Aug 28, 2019, at 12:15 PM, Kirill Batyuk  wrote:
> 
> Hello,
>  
> I’m trying to query OAI for the list of Files within the Sub-series. Does 
> anyone know a proper OAI stanza to return the results?
> 
> Thank you,
>  
> Kirill Batyuk
> Systems Librarian
> MBLWHOI Library
> Data Library and Archives
> Woods Hole Oceanographic Institution
> 508-289-2850
> kbat...@whoi.edu 
> mblwhoilibrary.org  --- whoi.edu 
> 
> ORCID 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF

2019-07-26 Thread Majewski, Steven Dennis (sdm7g)
Not yet sure my diagnosis was correct. Looks like there is an xml_clean!()  
Function:

https://github.com/archivesspace/archivesspace/blob/master/backend/app/lib/reports/report_generator.rb#L104
 
<https://github.com/archivesspace/archivesspace/blob/master/backend/app/lib/reports/report_generator.rb#L104>


That gets called in the view template for PDF output:
https://github.com/archivesspace/archivesspace/blob/master/backend/app/views/reports/report_content.erb#L1-L4
 
<https://github.com/archivesspace/archivesspace/blob/master/backend/app/views/reports/report_content.erb#L1-L4>


So we need to investigate further and see if it’s working as intended. 
( meanwhile: I’m getting MariaDB errors trying to run reports… [other thread] )

— Steve. 





> On Jul 26, 2019, at 5:08 PM, Zhang, Bin  wrote:
> 
> Thanks Steven and Blake!  Now can someone with power fix this soon?
>  
> ---
> Bin Zhang
> Digital Information Services Librarian
> Library Systems & IT Services, University Library
> California State University, Sacramento
> +1 (916) 278-5664 | bzh...@csus.edu <mailto:bzh...@csus.edu>
> Zoom: https://csus.zoom.us/my/ <https://csus.zoom.us/my/bzhang>bzhang 
> <https://csus.zoom.us/my/bzhang>
>  
>  
>  
> From:  on behalf of 
> "Majewski, Steven Dennis (sdm7g)" 
> Reply-To: Archivesspace Group 
> 
> Date: Friday, July 26, 2019 at 10:14 AM
> To: Archivesspace Group 
> Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession 
> Report in PDF
>  
> v2.6.0 added a fix for the dreaded unescaped ampersands in EAD export ( and 
> PDF export from staff interface, which generates EAD and transforms to PDF, 
> where malformed XML in the export stage is the usually problem when PDF 
> export fails. ),
>  
> https://github.com/archivesspace/archivesspace/commit/18f2f5100e8aa4510c61158a9accf279fb60e895
>  
> <https://github.com/archivesspace/archivesspace/commit/18f2f5100e8aa4510c61158a9accf279fb60e895>
>  
>  
>  but I don’t think it will fix this issue in the report generator. 
>  
> I think adding some code to this clean_invalid_xml_characters() function to 
> detect and escape unescaped ampersands might be the place to fix it:
>  
> https://github.com/archivesspace/archivesspace/blob/master/backend/app/lib/reports/report_generator.rb#L126-L136
>  
> <https://github.com/archivesspace/archivesspace/blob/master/backend/app/lib/reports/report_generator.rb#L126-L136>
>  
>  
>  
> — Steve. 
>  
> 
> 
>> On Jul 26, 2019, at 1:03 PM, Blake Carver > <mailto:blake.car...@lyrasis.org>> wrote:
>>  
>> What version are you running? There's a bunch of fixes in the new version 
>> for the dreaded ampersands!
>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>> > <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
>> of Zhang, Bin mailto:bzh...@csus.edu>>
>> Sent: Friday, July 26, 2019 12:31 PM
>> To: Archivesspace Users Group 
>> > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession 
>> Report in PDF
>>  
>> Thanks Blake!  We do have “&” in accession records (in title and various 
>> other fields).  It’s going to be a lot of work to replace all of them.  Is 
>> this something the software can look for and take care of?  We were able to 
>> get the same report in other formats with no problem (JSON, RTF, HTML). 
>>  
>> -- 
>> Bin
>>  
>> From: > <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
>> of Blake Carver mailto:blake.car...@lyrasis.org>>
>> Reply-To: Archivesspace Group 
>> > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Date: Thursday, July 25, 2019 at 2:15 PM
>> To: Archivesspace Group > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession 
>> Report in PDF
>>  
>>  
>> "The entity name must immediately follow the '&' in the entity reference."
>>  
>> That makes me think there's an ampersand in that record and it's choking on 
>> it when it tries to make the PDF.
>>  
>> Is there anything in there with ampersands? Like "J Automotive" or 
>> something?
>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>> > <mailto:archivesspace_users_gro

[Archivesspace_Users_Group] Mariadb errors from reports: "portion"

2019-07-26 Thread Majewski, Steven Dennis (sdm7g)

Anyone else using MariaDB ? 

We’re running mysql on our production servers, but I’m running a current 
version of Maria-DB on my development laptop. 

While investigating the unescaped ampersand in reports issue, I discovered I’m 
getting errors running some reports. 
Resource List Report says:

Generating report
Java::ComMysqlJdbcExceptionsJdbc4::MySQLSyntaxErrorException: You have an error 
in your SQL syntax; check the manual that corresponds to your MariaDB server 
version for the right syntax to use near 'portion,
number as extent_number,
extent_type_id as extent_type,
contai' at line 2


And by trying that select statement in the command line, it appears that 
“portion” must now be a keyword in MariaDB.

This generates an error:
MariaDB [archivesspace]> select portion_id as portion from extent;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that 
corresponds to your MariaDB server version for the right syntax to use near 
'portion from extent' at line 1


But this works:
MariaDB [archivesspace]> select portion_id as `portion` from extent;
+-+
| portion |
+-+
| 924 |
| 924 |
| 924 |
| 924 |
| 924 |
| 924 |



https://github.com/archivesspace/archivesspace/blob/master/reports/custom/extent_subreport.rb#L17
 



“Portion” no listed here:
https://mariadb.com/kb/en/library/reserved-words/ 


But this list in source code is canonical source:
https://github.com/MariaDB/server/blob/10.5/sql/lex.h#L474 









smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF

2019-07-26 Thread Majewski, Steven Dennis (sdm7g)
v2.6.0 added a fix for the dreaded unescaped ampersands in EAD export ( and PDF 
export from staff interface, which generates EAD and transforms to PDF, where 
malformed XML in the export stage is the usually problem when PDF export fails. 
),

https://github.com/archivesspace/archivesspace/commit/18f2f5100e8aa4510c61158a9accf279fb60e895
 



 but I don’t think it will fix this issue in the report generator. 

I think adding some code to this clean_invalid_xml_characters() function to 
detect and escape unescaped ampersands might be the place to fix it:

https://github.com/archivesspace/archivesspace/blob/master/backend/app/lib/reports/report_generator.rb#L126-L136
 




— Steve. 


> On Jul 26, 2019, at 1:03 PM, Blake Carver  wrote:
> 
> What version are you running? There's a bunch of fixes in the new version for 
> the dreaded ampersands!
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of Zhang, 
> Bin 
> Sent: Friday, July 26, 2019 12:31 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession 
> Report in PDF
>  
> Thanks Blake!  We do have “&” in accession records (in title and various 
> other fields).  It’s going to be a lot of work to replace all of them.  Is 
> this something the software can look for and take care of?  We were able to 
> get the same report in other formats with no problem (JSON, RTF, HTML). 
>  
> -- 
> Bin
>  
> From:  on behalf of 
> Blake Carver 
> Reply-To: Archivesspace Group 
> 
> Date: Thursday, July 25, 2019 at 2:15 PM
> To: Archivesspace Group 
> Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession 
> Report in PDF
>  
>  
> "The entity name must immediately follow the '&' in the entity reference."
>  
> That makes me think there's an ampersand in that record and it's choking on 
> it when it tries to make the PDF.
>  
> Is there anything in there with ampersands? Like "J Automotive" or 
> something?
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of Zhang, 
> Bin 
> Sent: Thursday, July 25, 2019 4:26 PM
> To: Archivesspace Group 
> Subject: [Archivesspace_Users_Group] FW: Unable to create Accession Report in 
> PDF
>  
> We are having problem creating Accession Report in PDF format.  All other 
> formats (JSON, CSV, RTF) are working, just not the PDF format.  I have 
> attached log below.
>  
> Any help is greatly appreciated.
>  
> Bin
>  
> Log
> Follow Log
> Generating report
> 
> Can't load the XML resource (using TRaX transformer). 
> org.xml.sax.SAXParseException; lineNumber: 316990; columnNumber: 95; The 
> entity name must immediately follow the '&' in the entity reference.
> 
> org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(org/xhtmlrenderer/resource/XMLResource.java:191)
> 
> org.xhtmlrenderer.resource.XMLResource.load(org/xhtmlrenderer/resource/XMLResource.java:71)
> 
> org.xhtmlrenderer.swing.NaiveUserAgent.getXMLResource(org/xhtmlrenderer/swing/NaiveUserAgent.java:211)
> 
> org.xhtmlrenderer.pdf.ITextRenderer.loadDocument(org/xhtmlrenderer/pdf/ITextRenderer.java:134)
> 
> org.xhtmlrenderer.pdf.ITextRenderer.setDocument(org/xhtmlrenderer/pdf/ITextRenderer.java:149)
> 
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> 
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
> 
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
> 
> RUBY.generate_pdf(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/reports/report_generator.rb:54)
> 
> RUBY.generate(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/reports/report_generator.rb:26)
> 
> RUBY.run(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/reports_runner.rb:39)
> 
> data.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(data/archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> 
> data.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> 
> RUBY.block in 
> 

Re: [Archivesspace_Users_Group] proxy rewriting gone awry

2019-07-23 Thread Majewski, Steven Dennis (sdm7g)
You might also try accessing the public web app directly at port 8081, not 
going thru the proxy. 
You may have to temporarily change your firewall settings, if that port isn’t 
served to the outside. 
If the public webapp works properly on it’s own, the the problem is with 
proxying. 

— Steve. 


> On Jul 23, 2019, at 9:29 AM, Blake Carver  wrote:
> 
> I'd start by looking in the logs (Both Apache and ArchivesSpace), any errors 
> in there?
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  on behalf of 
> Kimberli Kelmor 
> Sent: Tuesday, July 23, 2019 9:18 AM
> To: archivesspace_users_group@lyralists.lyrasis.org 
> 
> Subject: [Archivesspace_Users_Group] proxy rewriting gone awry
>  
> All of a sudden today the public link to the repositories is broken. The 
> public can list the repositories, but when they click on a link it gets a 404 
> not found.
> 
>  The url for the list of repositories is website.edu/public/repositories 
>  -- this works
>   The url for one of the repositories is website.edu/repositories/2 
>  -- this does not work
> 
> If I manually make it website.edu/public/repositories/2 
>  -- this works for the actual 
> content, but the images are broken.
> 
> I'm new to all this, but is something messing up the proxy settings or is 
> that barking up the wrong tree?
> 
> Everything (config.rb and apache conf.d) is set up per the 'running 
> archivesspace under a prefix' documentation.
> 
> Running version 2.6.0 -- but that has been running for about a week with no 
> problem.
> 
> Any help greatly appreciated!
> Kim
> 
> -- 
> Kimberli M. Kelmor
> Head of Law Library Technology
> Georgetown University Law Library
> kk1...@georgetown.edu 
> 202-662-9158
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Retrieving tree info via API (what are "waypoints"?)

2019-07-23 Thread Majewski, Steven Dennis (sdm7g)
AH! Thanks 
I hadn’t needed to drill down to deeper levels on what I was initially using 
this endpoint for, so I didn’t catch onto the use of /tree/node?node_uri= 
Sounds right! 

— Steve. 


> On Jul 23, 2019, at 2:22 PM, Trevor Thornton  wrote:
> 
> First of all, great documentation (in the code, API documentation less so but 
> we're working on that) 
> 
> To close the loop on this thread (for anyone still interested):
> For what I'm doing I need the container info, which is included in the 
> .../tree/... responses. Basically I'm re-creating a version of the AS 
> resource tree to provide a browsable view of a resource hierarchy in another 
> application. So the process will be something like this (for a resource with 
> URI  /repositories/1/resources/123):
> Call  /repositories/1/resources/123/tree/root to get the resource-level data 
> and its children (up to 200)
> If the value for "waypoints" in the response is greater than 1, call 
> /repositories/1/resources/123/tree/waypoints=n for each additional 
> waypoint (n = 1 through # of waypoints - 1) to get the rest of the children
> Then for each child record with other children, I'll provide a link to see 
> the next level, which will call 
> /repositories/1/resources/123/tree/node_uri=[URI OF THE RECORD THAT WAS 
> CLICKED]
> (NOTE: node_uri is a required parameter for this endpoint but that's not 
> mentioned in API the documentation)
> This provides a response similar to the .../tree/root endpoint but with data 
> for the archival object record instead of the resource
> Repeat step 2 if there is more than one waypoint at this level, including the 
> current node URI as parent_id in the GET params
> Repeat steps 3 & 4 until you get to the end
> I *think* this is close to right.
> 
> Thanks again for your help!
> 
> On Tue, Jul 23, 2019 at 12:51 PM Majewski, Steven Dennis (sdm7g) 
> mailto:sd...@virginia.edu>> wrote:
> 
> I believe for the next level of archival_objects, you have to get 
> /repositories/$REPO/archival_objects/$ID/children , but check the API docs.
> 
> 
> Note that there is also a GET 
> /repositories/$REPO/resources/$ID/ordered_records method that gives you the 
> whole hierarchy, but minimal info about each resource:  { ref: 
> display_string:, depth:, level: } 
> 
> I don’t think I knew about that one the first time I was wrestling with this 
> sort of task. 
> If you’re doing backend API and not worried about real time display update, 
> it might make more sense to walk the output ordered_records 
> If you want more complete info on resource children. 
> 
> 
> — Steve. 
> 
> 
>> On Jul 23, 2019, at 12:11 PM, Trevor Thornton > <mailto:trtho...@ncsu.edu>> wrote:
>> 
>> Just found that file in the repo before I saw your message and I think I 
>> understand now - thanks!
>> 
>> So, if you're looking at a node below the root (an ArchivalObject) that has 
>> >200 children, you would hit the ".../tree/waypoint" endpoint however many 
>> times and include "parent_node" in the GET params with the ArchivalObject 
>> URI, right?
>> 
>> On Tue, Jul 23, 2019 at 11:57 AM Majewski, Steven Dennis (sdm7g) 
>> mailto:sd...@virginia.edu>> wrote:
>> 
>>> So the next question is how do you make the subsequent calls to retrieve 
>>> the next 200, etc.?
>> 
>> 
>> 
>> You call  /repositories/$repo/resources/$id/tree/waypoint?offset=$N  23 
>> times. 
>> ( You already got the first batch in .precomputed_waypoints in the call to 
>> /ress/root  ) 
>> 
>> 
>> I found the documentation note in the source I was looking for: 
>> https://github.com/archivesspace/archivesspace/blob/master/backend/app/model/large_tree.rb
>>  
>> <https://github.com/archivesspace/archivesspace/blob/master/backend/app/model/large_tree.rb>
>> 
>> 
>> # What's the big idea?
>> #
>> # ArchivesSpace has some big trees in it, and sometimes they look a lot like 
>> big
>> # sticks.  Back in the dark ages, we used JSTree for our trees, which in 
>> general
>> # is perfectly cromulent.  We recognized the risk of having some very large
>> # collections, so dutifully configured JSTree to lazily load subtrees as the
>> # user expanded them (avoiding having to load the full tree into memory right
>> # away).
>> #
>> # However, time makes fools of us all.  The JSTree approach works fine if 
>> your
>> # tree is fairly well balanced, but that's not what things look like in the 
>> real
>> # world.  Some trees have a single root node and tens of thousands of records
>> # directly

Re: [Archivesspace_Users_Group] Retrieving tree info via API (what are "waypoints"?)

2019-07-23 Thread Majewski, Steven Dennis (sdm7g)

I believe for the next level of archival_objects, you have to get 
/repositories/$REPO/archival_objects/$ID/children , but check the API docs.


Note that there is also a GET /repositories/$REPO/resources/$ID/ordered_records 
method that gives you the whole hierarchy, but minimal info about each 
resource:  { ref: display_string:, depth:, level: } 

I don’t think I knew about that one the first time I was wrestling with this 
sort of task. 
If you’re doing backend API and not worried about real time display update, it 
might make more sense to walk the output ordered_records 
If you want more complete info on resource children. 


— Steve. 


> On Jul 23, 2019, at 12:11 PM, Trevor Thornton  wrote:
> 
> Just found that file in the repo before I saw your message and I think I 
> understand now - thanks!
> 
> So, if you're looking at a node below the root (an ArchivalObject) that has 
> >200 children, you would hit the ".../tree/waypoint" endpoint however many 
> times and include "parent_node" in the GET params with the ArchivalObject 
> URI, right?
> 
> On Tue, Jul 23, 2019 at 11:57 AM Majewski, Steven Dennis (sdm7g) 
> mailto:sd...@virginia.edu>> wrote:
> 
>> So the next question is how do you make the subsequent calls to retrieve the 
>> next 200, etc.?
> 
> 
> 
> You call  /repositories/$repo/resources/$id/tree/waypoint?offset=$N  23 
> times. 
> ( You already got the first batch in .precomputed_waypoints in the call to 
> /ress/root  ) 
> 
> 
> I found the documentation note in the source I was looking for: 
> https://github.com/archivesspace/archivesspace/blob/master/backend/app/model/large_tree.rb
>  
> <https://github.com/archivesspace/archivesspace/blob/master/backend/app/model/large_tree.rb>
> 
> 
> # What's the big idea?
> #
> # ArchivesSpace has some big trees in it, and sometimes they look a lot like 
> big
> # sticks.  Back in the dark ages, we used JSTree for our trees, which in 
> general
> # is perfectly cromulent.  We recognized the risk of having some very large
> # collections, so dutifully configured JSTree to lazily load subtrees as the
> # user expanded them (avoiding having to load the full tree into memory right
> # away).
> #
> # However, time makes fools of us all.  The JSTree approach works fine if your
> # tree is fairly well balanced, but that's not what things look like in the 
> real
> # world.  Some trees have a single root node and tens of thousands of records
> # directly underneath it.  Lazy loading at the subtree level doesn't save you
> # here: as soon as you expand that (single) node, you're toast.
> #
> # This "large tree" business is a way around all of this.  It's effectively a
> # hybrid of trees and pagination, except we call the pages "waypoints" for
> # reasons known only to me.  So here's the big idea:
> #
> #  * You want to show a tree.  You ask the API to give you the root node.
> #
> #  * The root node tells you whether or not it has children, how many 
> children,
> #and how many waypoints that works out to.
> #
> #  * Each waypoint is a fixed-size page of nodes.  If the waypoint size is set
> #to 200, a node with 1,000 children would have 5 waypoints underneath it.
> #
> #  * So, to display the records underneath the root node, you fetch the root
> #node, then fetch the first waypoint to get the first N nodes.  If you 
> need
> #to show more nodes (i.e. if the user has scrolled down), you fetch the
> #second waypoint, and so on.
> #
> #  * The records underneath the root might have their own children, and 
> they'll
> #have their own waypoints that you can fetch in the same way.  It's nodes,
> #waypoints and turtles the whole way down.
> #
> # All of this interacts with the largetree.js code in the staff and public
> # interfaces.  You open a resource record, and largetree.js fetches the root
> # node and inserts placeholders for each waypoint underneath it.  As the user
> # scrolls towards a placeholder, the code starts building tracks ahead of the
> # train, fetching that waypoint and rendering the records it contains.  When a
> # user expands a node to view its children, that process repeats again (the 
> node
> # is fetched, waypoint placeholders inserted, etc.).
> #
> # The public interface runs the same code as the staff interface, but with a
> # small twist: it fetches its nodes and waypoints from Solr, rather than from
> # the live API.  We hit the API endpoints at indexing time and store them as
> # Solr documents, effectively precomputing all of the bits of data we need 
> when
> # displaying trees.
> 
> 
> 
> 
> 
>> On Jul 23, 2019, at 11:08 AM, Trevor Thornton > <mailto:

Re: [Archivesspace_Users_Group] Retrieving tree info via API (what are "waypoints"?)

2019-07-23 Thread Majewski, Steven Dennis (sdm7g)

> So the next question is how do you make the subsequent calls to retrieve the 
> next 200, etc.?



You call  /repositories/$repo/resources/$id/tree/waypoint?offset=$N  23 times. 
( You already got the first batch in .precomputed_waypoints in the call to 
/ress/root  ) 


I found the documentation note in the source I was looking for: 
https://github.com/archivesspace/archivesspace/blob/master/backend/app/model/large_tree.rb
 
<https://github.com/archivesspace/archivesspace/blob/master/backend/app/model/large_tree.rb>


# What's the big idea?
#
# ArchivesSpace has some big trees in it, and sometimes they look a lot like big
# sticks.  Back in the dark ages, we used JSTree for our trees, which in general
# is perfectly cromulent.  We recognized the risk of having some very large
# collections, so dutifully configured JSTree to lazily load subtrees as the
# user expanded them (avoiding having to load the full tree into memory right
# away).
#
# However, time makes fools of us all.  The JSTree approach works fine if your
# tree is fairly well balanced, but that's not what things look like in the real
# world.  Some trees have a single root node and tens of thousands of records
# directly underneath it.  Lazy loading at the subtree level doesn't save you
# here: as soon as you expand that (single) node, you're toast.
#
# This "large tree" business is a way around all of this.  It's effectively a
# hybrid of trees and pagination, except we call the pages "waypoints" for
# reasons known only to me.  So here's the big idea:
#
#  * You want to show a tree.  You ask the API to give you the root node.
#
#  * The root node tells you whether or not it has children, how many children,
#and how many waypoints that works out to.
#
#  * Each waypoint is a fixed-size page of nodes.  If the waypoint size is set
#to 200, a node with 1,000 children would have 5 waypoints underneath it.
#
#  * So, to display the records underneath the root node, you fetch the root
#node, then fetch the first waypoint to get the first N nodes.  If you need
#to show more nodes (i.e. if the user has scrolled down), you fetch the
#second waypoint, and so on.
#
#  * The records underneath the root might have their own children, and they'll
#have their own waypoints that you can fetch in the same way.  It's nodes,
#waypoints and turtles the whole way down.
#
# All of this interacts with the largetree.js code in the staff and public
# interfaces.  You open a resource record, and largetree.js fetches the root
# node and inserts placeholders for each waypoint underneath it.  As the user
# scrolls towards a placeholder, the code starts building tracks ahead of the
# train, fetching that waypoint and rendering the records it contains.  When a
# user expands a node to view its children, that process repeats again (the node
# is fetched, waypoint placeholders inserted, etc.).
#
# The public interface runs the same code as the staff interface, but with a
# small twist: it fetches its nodes and waypoints from Solr, rather than from
# the live API.  We hit the API endpoints at indexing time and store them as
# Solr documents, effectively precomputing all of the bits of data we need when
# displaying trees.





> On Jul 23, 2019, at 11:08 AM, Trevor Thornton  wrote:
> 
> Thanks, Steve. That makes sense, and I tested with a resource with >1000 top 
> level children and I see that only 200 of them are included, which 
> corresponds to the value for "waypoint_size" in the response:
> 
> {  
>"child_count":4780,
>"waypoints":24,
>"waypoint_size":200
> ...
> 
> So the next question is how do you make the subsequent calls to retrieve the 
> next 200, etc.?
> 
> On Tue, Jul 23, 2019 at 10:52 AM Majewski, Steven Dennis (sdm7g) 
> mailto:sd...@virginia.edu>> wrote:
> I believe the rationale of the waypoints was that initially, it was expected 
> that resource children/ archival objects would fall into a more balanced tree 
> structure, but it turned out that there were many flat hierarchies with 
> hundreds of top level children, and getting all of the children at once was 
> not working very efficiently. So with they waypoint calls, you may only be 
> getting some of the children, but the display can start populating the tree 
> display while making additional calls for the rest. 
> 
> I may have some postman examples and internal notes around somewhere: I’ll 
> see what I can dig out. 
> 
> — Steve. 
> 
> 
>> On Jul 23, 2019, at 9:05 AM, Trevor Thornton > <mailto:trtho...@ncsu.edu>> wrote:
>> 
>> Hi everybody-
>> 
>> I'm building a service using these API endpoints (or I think I am):
>> [:GET] /repositories/:repo_id/resources/:id/tree/root 
>> <http://archivesspace.github.io/archivesspace/api

Re: [Archivesspace_Users_Group] Retrieving tree info via API (what are "waypoints"?)

2019-07-23 Thread Majewski, Steven Dennis (sdm7g)
I believe the rationale of the waypoints was that initially, it was expected 
that resource children/ archival objects would fall into a more balanced tree 
structure, but it turned out that there were many flat hierarchies with 
hundreds of top level children, and getting all of the children at once was not 
working very efficiently. So with they waypoint calls, you may only be getting 
some of the children, but the display can start populating the tree display 
while making additional calls for the rest. 

I may have some postman examples and internal notes around somewhere: I’ll see 
what I can dig out. 

— Steve. 


> On Jul 23, 2019, at 9:05 AM, Trevor Thornton  wrote:
> 
> Hi everybody-
> 
> I'm building a service using these API endpoints (or I think I am):
> [:GET] /repositories/:repo_id/resources/:id/tree/root 
> 
> [:GET] /repositories/:repo_id/resources/:id/tree/node 
> 
> 
> These incorporate the concept of "waypoints", which I admit that I'm not 
> familiar with in this context, and it isn't explained very well in the 
> documentation. This is what I have to work with (these are elements included 
> in the API response):
> child_count – the number of immediate children
> waypoints – the number of “waypoints” those children are grouped into
> waypoint_size – the number of children in each waypoint
> precomputed_waypoints – a collection of arrays (keyed on child URI) in the 
> same format as returned by the ’/waypoint’ endpoint. Since a fetch for a 
> given node is almost always followed by a fetch of the first waypoint, using 
> the information in this structure can save a backend call.
> Can anyone explain what exactly waypoints are and how they are different from 
> children? In the examples I've seen, the "precomputed_waypoints" element in 
> the response looks like a convoluted way (an array value of the lone element 
> in an object, which is itself the value of the lone element in another 
> object) to provide the children nodes of the given node (or root). What's the 
> difference?
> 
> Thanks,
> Trevor
> 
> -- 
> Trevor Thornton
> Applications Developer, Digital Library Initiatives
> North Carolina State University Libraries
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] OAI returns unpublished agent

2019-06-10 Thread Majewski, Steven Dennis (sdm7g)

Is this an issue with all  OAI metadata payloads: DC,MARC, EAD ? Or with only 
one ? 

And does it produce something different in the OAI payload compared to 
exporting from the staff interface ? 
For example, oai_ead metadata payload vs EAD export with include unpublished 
FALSE. 


— Steve M. 


> On Jun 10, 2019, at 10:12 AM, Michelle Paquette  wrote:
> 
> Hi all,
> 
> Has anyone else run into this issue with unpublished agents being returned by 
> the OAI service? https://archivesspace.atlassian.net/browse/ANW-906 
>  Due to privacy concerns 
> we cannot enable OAI-PMH harvesting if unpublished agents are included in the 
> returned data. We're using version 2.5.2. If this in an important issue for 
> you or is preventing your institution from enabling OAI, please let me know,
> 
> Michelle
> 
> -- 
> Michelle Paquette
> Metadata & Technical Services Archivist
> Special Collections
> Smith College
> 413-585-7029
> mpaque...@smith.edu 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> ( 



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] A more forgiving version of oai-harvest & public OAI feeds

2019-05-17 Thread Majewski, Steven Dennis (sdm7g)

We’ve added a column to the ASpace PUI in the Wild document for OAI feeds:
https://docs.google.com/spreadsheets/d/1IVDp_tN6swURAZr0o-OG5pHwQiZP2oTwnp436WYaB9w/edit#gid=0
 
<https://docs.google.com/spreadsheets/d/1IVDp_tN6swURAZr0o-OG5pHwQiZP2oTwnp436WYaB9w/edit#gid=0>

And added the feeds I’ve been using and a few others I’ve discovered. 

Then I discovered a whole bunch of OAI feeds found by appending /oai to the PUI 
URL in the above document. 


https://archivessearch.bsu.edu/oai
https://beloitarchives.lyrasistechnology.org/oai
https://archives.caldwell.edu/oai
https://collections.archives.caltech.edu/oai
https://archives.baltimorecarmel.org/oai
https://archivesspace.case.edu/oai
https://archives.colgate.edu/oai
https://archives.depaul.edu/oai
https://archives.dom.edu/oai
https://archives.elon.edu/oai
https://fortworthlibrary.lyrasistechnology.org/oai
https://archives.library.fau.edu/oai
https://archives.fgcu.edu/oai
https://archives.fiu.edu/oai
https://archives.lib.fsu.edu/oai
https://gvsu.lyrasistechnology.org/oai
https://archives.hamilton.edu/oai
https://archivesspace.hws.edu/oai
https://ial.lyrasistechnology.org/oai
https://aspace.lib.jmu.edu/oai
https://kinkaid.lyrasistechnology.org/oai
https://archives.mercyhurst.edu/oai
https://emmas-lib.mit.edu/oai
https://archives.multco.us/oai
https://nmu.lyrasistechnology.org/oai
https://opspecialcollections.lyrasistechnology.org/oai
https://aspace.libraries.psu.edu/public/oai
https://specialcollections.pequotlibrary.org/oai
https://archives.pueblolibrary.org/oai
https://catalog.sos.ri.gov/oai
https://scplarchives-public.lyrasistechnology.org/oai
https://sdarchives.lyrasistechnology.org/oai
https://archives.tntech.edu/oai
https://aspace.organhistoricalsociety.org/oai
https://monticello-archiveguides.lyrasistechnology.org/oai
https://archives.colorado.edu/oai
https://archivescatalog.udayton.edu/oai
https://findingaids.libraries.uc.edu/oai
https://archives.nebraska.edu/oai
https://archives.unf.edu/oai
https://archivesspace.library.nd.edu/oai
https://archives.library.upike.edu/oai
https://specialcollections.usm.edu/oai
https://archives.vmfa.museum/oai
https://wcu.lyrasistechnology.org/oai
https://archives.yale.edu/oai



> On Apr 19, 2019, at 7:17 PM, Majewski, Steven Dennis (sdm7g) 
>  wrote

> 
> My current collection of feeds is: 
> 
> export VT=https://aspace.lib.vt.edu:8082/ <https://aspace.lib.vt.edu:8082/>
> export VMFA=https://archives.vmfa.museum/oai 
> <https://archives.vmfa.museum/oai>
> export JMU=https://aspace.lib.jmu.edu/oai <https://aspace.lib.jmu.edu/oai>
> export VCU=https://archives.library.vcu.edu/oai 
> <https://archives.library.vcu.edu/oai>
> export UVA=https://archives-oai.lib.virginia.edu 
> <https://archives-oai.lib.virginia.edu/>
> 
> 
> If you submit your public ArchivesSpace OAI endpoint URLs as reply to this 
> thread, I will collect them to put on the Wiki somewhere. 
> 
> 
> — Steve Majewski
> 
> 
> 
> 
> 
> 
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Issue after patching server

2019-04-26 Thread Majewski, Steven Dennis (sdm7g)
Any problems in the earliest part of the log file, when ArchivesSpace is 
staring up ? 

For the PUI problem, I would usually think deleting the files in 
archivesspace/data/indexer_pui_state/ to trigger a reindex might be what is 
needed, but if you’re locked out of Staff login, something else is clearly 
wrong. 

Can you access the backend api ? 

— Steve Majewski


> On Apr 26, 2019, at 8:50 AM, Neal, Rick  wrote:
> 
> Good morning,
>  
> I patched my AS test server yesterday and rebooted.  Afterward, ArchivesSpace 
> is experiencing issues without being able to list its repositories in the 
> Public interface.  I also cannot log in to my user account in the Staff 
> interface.  
>  
> I am running version 2.5.0.  The log output is at the bottom of this email.
>  
> Any help will be greatly appreciated as I need to patch the production server 
> and won’t even try that until I figure this out.
>  
> Have a great day and a wonderful weekend!
>  
> Rick Neal
>  
>  
>  
> 
>  
>  
> It ‘feels’ like some kind of database issue but I don’t see it in the log.
>  
>  
>  
> 
> ArchivesSpace.out output:
>  
> Apr 26, 2019 8:36:30 AM org.apache.solr.core.SolrCore execute
> INFO: [collection1] webapp= path=/select 
> params={csv.escape=\=0=AND=repo_sort+asc=-exclude_by_default:true=publish:true=100=primary_type:repository=edismax=four_part_id^3+title^2+finding_aid_filing_title^2+fullrecord=four_part_id^4=true="=json=true}
>  hits=3 status=0 QTime=69
> Apr 26, 2019 8:38:03 AM org.apache.solr.request.UnInvertedField 
> INFO: UnInverted multi-valued field 
> {field=subjects,memSize=13067,tindexSize=54,time=3,phase1=3,nTerms=34,bigTerms=0,termInstances=50,uses=0}
> Apr 26, 2019 8:38:03 AM org.apache.solr.request.UnInvertedField 
> INFO: UnInverted multi-valued field 
> {field=published_agents,memSize=4288,tindexSize=0,time=0,phase1=0,nTerms=0,bigTerms=0,termInstances=0,uses=0}
> Apr 26, 2019 8:38:03 AM org.apache.solr.core.SolrCore execute
> INFO: [collection1] webapp= path=/select 
> params={facet.field=repository=primary_type=subjects=published_agents=\=0=AND=((types:("subject")+OR+(types:("classification")+OR+(types:("accession")+OR+(types:("repository")+OR+(types:("resource")+OR+(types:("agent")+OR+(types:("digital_object")+OR+(types:("archival_object"))=-exclude_by_default:true=publish:true==10=(publish:(true)+AND+(types:(pui)+AND+((fullrecord:(the)=100=true="=0=json=true}
>  hits=0 status=0 QTime=80
>  
>  
> ~
> Rick Neal
> Library Applications and Systems Administrator
> Boatwright Memorial Library
> University of Richmond, VA 23173
>  
> rn...@richmond.edu 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] A more forgiving version of oai-harvest & public OAI feeds

2019-04-19 Thread Majewski, Steven Dennis (sdm7g)

I have a fork of python oai-harvest program that is more forgiving of XML 
parser errors which are typically coming from unescaped ampersands in 
ArchivesSpace notes text or in query strings embedded in URLs.  It will also 
recover from other XML errors I’ve seen in the wild from ArchivesSpace exports, 
like undeclared namespaces or undefined character entities. 

Typically, how it handles and recovers from errors is to drop the node ( text, 
attribute, element ) that doesn’t parse correctly, so for example “Jones & 
Smith” will become “Jones Smith” , or “AT” may be output as “AT” , so the 
data will be incorrect, however you will get well formed EAD output, and what’s 
more important, the harvester will continue harvesting to completion instead of 
raising an XMLParser exception and quiting. 

The program will log recoverable errors in case you want to notify the upstream 
feed so they can fix their resources.
( Although I believe a fix for the unescaped ampersand issue may be in the next 
ArchivesSpace release. ) 


I have submitted a pull request upstream, but in the mean time you can install 
it will pip or pip3 with this command:

pip3 install git+https://github.com/sdm7g/oai-harvest.git@fix-pyoai 
https://github.com/sdm7g/oai-harvest.git@fix-pyoai>

( fix-pyoai branch is required. ) 

This version of the program has added another optional argument:  —recover that 
enables that parser option. 

For example ( where $URL= url of public OAI endpoint ):

oai-harvest -p oai_ead -s collection --subdirs-on ':' —recover $URL 


Or what is better, use the oai-reg program to create a registry database of 
feeds so you can use “all” instead of a specific URL and also do incremental 
harvesting. ( The registry database stores the date and time of last harvest. ) 

The —subdirs-on ‘:’ option in not required, but it will split the OAI 
identifiers on both ‘:’ and ‘/‘ , and result in a directory tree starting at 
$PWD/oai/ instead of a flat collection of files. 


My current collection of feeds is: 

export VT=https://aspace.lib.vt.edu:8082/
export VMFA=https://archives.vmfa.museum/oai
export JMU=https://aspace.lib.jmu.edu/oai
export VCU=https://archives.library.vcu.edu/oai
export UVA=https://archives-oai.lib.virginia.edu


If you submit your public ArchivesSpace OAI endpoint URLs as reply to this 
thread, I will collect them to put on the Wiki somewhere. 


— Steve Majewski









smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Importing from AT to AS - File Versions left unpublished

2019-04-19 Thread Majewski, Steven Dennis (sdm7g)


> On Apr 19, 2019, at 11:37 AM, mmcde...@bowdoin.edu wrote:
> 
> Greetings all
> We are in the process of moving from Archivists Toolkit to ArchiveSpace. I’ve 
> been experimenting with using the AT migration plugin and everything seems to 
> be working fine, but…
> When we export an EAD file from ArchivesSpace and convert it to an html web 
> page, the EAD file contains limited information about the DAOs attached to a 
> resource.
> It seems that when the resources are imported from AT the digital objects are 
> set to ‘published’, but the individual File Versions in the DAOs are not set 
> to ‘published’ – that field seems to be null instead of ‘true’ or ‘false’
> I tried just running an SQL query to set all of those file version 
> ‘published’ fields to true… and that value shows up in the staff interface, 
> but when I export the EAD I am still getting the DAO information as if the 
> file versions are unpublished. I need to go into each digital object 
> individually and re-save it for the change in the file version status to take 
> effect.
> I tried the ‘Publish All’ option for the resource but that didn’t seem to 
> make the export function see the file versions as published.


Changing values directly in SQL bypasses the step where a reindex of that 
resource is triggered after editing and saving it, 
So there is a mismatch between the values in MySQL DB and the PUI SOLR index. 
Manually re-saving it triggers the reindex. 

Instead of manually saving each one, you can trigger a complete reindex by 
deleting the files in archivesspace/data/indexer_pui_state and 
archivesspace/data/indexer_state and restarting the server.  This is something 
that should always(*) be done if you are going behind the usual system checks 
by making changes directly in MySQL DB. 

[ (*) I’m sure there are a few cases where it doesn’t matter, but safer to 
reindex if you’re not sure.  ] 



> If I check the ‘include unpublished’ option in the EAD export function, I get 
> the right DAO information, but I also get a bunch of other unpublished 
> information in the EAD that displays in odd places in the converted HTML page.
>  
> We’ve tried creating digital objects in ArchiveSpace and the file versions 
> are set to published there – so this would be a one time solution to fix the 
> resources exported from Archivists Toolkit.
> Is there something I can do in the export plugin that would set this value by 
> default?
> Or is there a way I can force ArchivesSpace to batch publish the file 
> versions? Or to notice the externally set published status?
> Thank you for any thoughts on this…
>  
> Mike McDermott
> Bowdoin College Library
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] ArchivesSpace/OAI/EAD exports in the wild.

2019-04-15 Thread Majewski, Steven Dennis (sdm7g)
Forwarding the results of this test to the list, as it may be useful in 
determining where to devote attention to fixing EAD export errors.  Test was 
harvesting 2500+ resources from 5 sites using their ArchivesSpace OAI feeds. ( 
As part of setting up automatic harvesting of records for Virginia Heritage. ) 

I’ve been using modified version Python oai-harvest. The standard version you 
get from ‘pip install’ will stop harvesting when it encounters an error in the 
feed. I am in the process of trying to push patches to fix this upstream to 
both oai-harvest and pyoai python modules.  ( Ask me for more info, if you 
don’t want to wait and want to patch these yourself locally. )

—


After making some modifications to the OAI-harvester to recover from XML 
parsing errors, I was able to harvest 2500+ EAD files from  UVA, VT, JMU, VCU & 
VMFA  ArchivesSpace OAI feeds. Below are the sorts of errors encountered, 
preceded by the number of occurrences of that error. I don’t have a count on 
how many resources produced errors, but there are frequently multiple errors in 
a file. ( All of the TAG_NAME_MISMATCH errors are from the same file, and 
likely produced by the same malformed element tag. And I suspect all of those 
UNDECLARE_ENTITY errors are from the same file as well. ) 

The good news is that the vast majority of errors are produced by unescaped 
ampersands, and I have seen commits that appear to address this issue in the 
next release.  ( Currently, using the recover=True option on the XML parser in 
the OAI harvester, has the effect of just dropping the “&” in the output EAD. 
And typically, in the other cases, some offending or undefined element or 
entity is being dropped on output to produce valid XML output. ) 

And it would appear that all of the errors originate from mixed content note 
fields. 

Perhaps this can be fixed by having  ArchivesSpace  attempt to parse mixed 
content fields as XML fragments before accepting them. Then bad mixed content 
fields can be manually fixed before resource can be saved or updated. 

This does not address EAD validation errors — just XML parser errors from 
malformed XML. 

I haven’t done a massive validation test on this sample yet, but from previous 
test, the majority of validation errors I’ve seen produced from ASpace EAD 
exports ( when well formed ) have been attribute name errors. Typically 
container attributes are being translated thru the locales and have embedded 
spaces. I would probably be better to export attributes using the internal 
names rather than locales. 


   2 NAMESPACE:NS_ERR_UNDEFINED_NAMESPACE: Namespace prefix ns2 for actuate on 
extref is not defined
   3 NAMESPACE:NS_ERR_UNDEFINED_NAMESPACE: Namespace prefix ns2 for href on 
extref is not defined
   2 NAMESPACE:NS_ERR_UNDEFINED_NAMESPACE: Namespace prefix ns2 for show on 
extref is not defined
   1 PARSER:ERR_DOCUMENT_END: Extra content at the end of the document
  58 PARSER:ERR_ENTITYREF_SEMICOL_MISSING: EntityRef: expecting ';'
   1 PARSER:ERR_GT_REQUIRED: Couldn't find end of Start Tag span line 20
   1 PARSER:ERR_NAME_REQUIRED: error parsing attribute name
  33 PARSER:ERR_NAME_REQUIRED: xmlParseEntityRef: no name
   1 PARSER:ERR_SPACE_REQUIRED: attributes construct error
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: ListRecords 
line 1 and record
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: OAI-PMH 
line 1 and ListRecords
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: abstract 
line 20 and span
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: archdesc 
line 2 and did
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: did line 3 
and abstract
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: ead line 2 
and archdesc
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: metadata 
line 1 and ead
   1 PARSER:ERR_TAG_NAME_MISMATCH: Opening and ending tag mismatch: record line 
1 and metadata
   1 PARSER:ERR_UNDECLARED_ENTITY: Entity 'aacute' not defined
   1 PARSER:ERR_UNDECLARED_ENTITY: Entity 'ecircne' not defined
   2 PARSER:ERR_UNDECLARED_ENTITY: Entity 'uuml' not defined



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] FYI: Custom reports

2019-04-05 Thread Majewski, Steven Dennis (sdm7g)
Yes. So the sub reports that are the building blocks exist in current releases 
in reports/custom/ , but the ‘build a custom report’ templates and facility has 
not been released, pending figuring out that resource problem. 

But if you can’t wait for this to be solved and you really need a custom 
report, my example was to show that it’s fairly easy to extend the existing 
reports using those existing custom sub-report modules.  (Testing can then be 
done on a non production server before copying changes to production and 
restarting.) 

— Steve. 


> On Apr 5, 2019, at 12:00 PM, Carbone, Maura  wrote:
> 
> Oh, interesting, is that the ‘proof of concept’ UI thing we saw awhile back? 
> Where you could build a report in the UI?
>  
> -Maura
>  
> From:  on behalf of 
> "Majewski, Steven Dennis (sdm7g)" 
> Reply-To: Archivesspace Users Group 
> 
> Date: Friday, April 5, 2019 at 11:56 AM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] FYI: Custom reports
>  
> My understanding is that the intention was that you could arbitrarily combine 
> or add sub reports by selecting them in the web app custom report generator, 
> however in testing it was discovered that some combinations were a real 
> resource hog and could crash.  
> I’m not sure if that meant that just the reports crashed or the whole web app 
> crashed, or if the rest of the system was unresponsive until the report 
> finished. 
> But it required at least more investigation to discover the scope of the 
> problem. 
>  
> — Steve. 
> 
> 
>> On Apr 5, 2019, at 11:41 AM, Carbone, Maura > <mailto:maura.carb...@yale.edu>> wrote:
>>  
>> Hi Steven,
>>  
>> “A number of custom sub reports are available in 
>> https://github.com/archivesspace/archivesspace/tree/master/reports/custom 
>> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Ftree%2Fmaster%2Freports%2Fcustom=02%7C01%7Cmaura.carbone%40yale.edu%7Ca39c995d31e44cbcc71d08d6b9df33c5%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636900765640324460=9PKz8xWA9%2BmuSHge%2FbhVFcsFHBaNKqBlGpIbjQx5la4%3D=0>,
>>  but the facility to create custom reports has not yet been released.  ( 
>> Reasons for this was discussed on the call. ) “
>>  
>> Sadly, I wasn’t able to make the call and I didn’t see this information in 
>> the community notes. What were the resons?
>>  
>> Thanks!
>> Maura
>>  
>> From: > <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
>> of "Majewski, Steven Dennis (sdm7g)" > <mailto:sd...@virginia.edu>>
>> Reply-To: Archivesspace Users Group 
>> > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Date: Wednesday, April 3, 2019 at 5:18 PM
>> To: Archivesspace Users Group 
>> > <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
>> Subject: [Archivesspace_Users_Group] FYI: Custom reports
>>  
>> Followup to my comments on todays Reports call: 
>> https://archivesspace.atlassian.net/wiki/spaces/ADC/pages/834994187/2019-04-03+UAC+Reports+Open+Call
>>  
>> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchivesspace.atlassian.net%2Fwiki%2Fspaces%2FADC%2Fpages%2F834994187%2F2019-04-03%2BUAC%2BReports%2BOpen%2BCall=02%7C01%7Cmaura.carbone%40yale.edu%7Ca39c995d31e44cbcc71d08d6b9df33c5%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636900765640334465=uc%2B59DyExqIFmbfG5x9wTi36KElD5vlujHV1NyPSeow%3D=0>
>>  
>> A number of custom sub reports are available in 
>> https://github.com/archivesspace/archivesspace/tree/master/reports/custom 
>> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Ftree%2Fmaster%2Freports%2Fcustom=02%7C01%7Cmaura.carbone%40yale.edu%7Ca39c995d31e44cbcc71d08d6b9df33c5%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636900765640344474=TjpyTd2UV7f00cLg0QpQPMJnRiaAZNWp5%2FUaqtwSIio%3D=0>,
>>  but the facility to create custom reports has not yet been released.  ( 
>> Reasons for this was discussed on the call. ) 
>>  
>> I found it was quite easy to add one of these custom sub reports to existing 
>> reports. 
>> We wanted to add the collections_management_subreport to the 
>> resources_list_report and the accession_report. 
>>  
>> This was a pretty trivial set of changes to implement:
>>  
>> https://github.com/archivesspace/archivesspace/compare/master...uvalib:collmgmt_subreports
>>  
>> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fcompare%2Fmaster..

Re: [Archivesspace_Users_Group] FYI: Custom reports

2019-04-05 Thread Majewski, Steven Dennis (sdm7g)
My understanding is that the intention was that you could arbitrarily combine 
or add sub reports by selecting them in the web app custom report generator, 
however in testing it was discovered that some combinations were a real 
resource hog and could crash. 
I’m not sure if that meant that just the reports crashed or the whole web app 
crashed, or if the rest of the system was unresponsive until the report 
finished. 
But it required at least more investigation to discover the scope of the 
problem. 

— Steve. 

> On Apr 5, 2019, at 11:41 AM, Carbone, Maura  wrote:
> 
> Hi Steven,
>  
> “A number of custom sub reports are available in 
> https://github.com/archivesspace/archivesspace/tree/master/reports/custom 
> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Ftree%2Fmaster%2Freports%2Fcustom=02%7C01%7Cmaura.carbone%40yale.edu%7Ca22e968b2e20472db2b108d6b879f303%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636899231258966189=jeTYskQzuE15Wfl9MJgSi0ektkVxUKkxRPfNpCd6ktk%3D=0>,
>  but the facility to create custom reports has not yet been released.  ( 
> Reasons for this was discussed on the call. ) “
>  
> Sadly, I wasn’t able to make the call and I didn’t see this information in 
> the community notes. What were the resons?
>  
> Thanks!
> Maura
>  
> From:  on behalf of 
> "Majewski, Steven Dennis (sdm7g)" 
> Reply-To: Archivesspace Users Group 
> 
> Date: Wednesday, April 3, 2019 at 5:18 PM
> To: Archivesspace Users Group 
> 
> Subject: [Archivesspace_Users_Group] FYI: Custom reports
>  
> Followup to my comments on todays Reports call: 
> https://archivesspace.atlassian.net/wiki/spaces/ADC/pages/834994187/2019-04-03+UAC+Reports+Open+Call
>  
> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchivesspace.atlassian.net%2Fwiki%2Fspaces%2FADC%2Fpages%2F834994187%2F2019-04-03%2BUAC%2BReports%2BOpen%2BCall=02%7C01%7Cmaura.carbone%40yale.edu%7Ca22e968b2e20472db2b108d6b879f303%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636899231258956181=f3p68mV3YsE%2Byt3QsT5AtTgtGXQILJ0RCaNc5ObOR2I%3D=0>
>  
> A number of custom sub reports are available in 
> https://github.com/archivesspace/archivesspace/tree/master/reports/custom 
> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Ftree%2Fmaster%2Freports%2Fcustom=02%7C01%7Cmaura.carbone%40yale.edu%7Ca22e968b2e20472db2b108d6b879f303%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636899231258966189=jeTYskQzuE15Wfl9MJgSi0ektkVxUKkxRPfNpCd6ktk%3D=0>,
>  but the facility to create custom reports has not yet been released.  ( 
> Reasons for this was discussed on the call. ) 
>  
> I found it was quite easy to add one of these custom sub reports to existing 
> reports. 
> We wanted to add the collections_management_subreport to the 
> resources_list_report and the accession_report. 
>  
> This was a pretty trivial set of changes to implement:
>  
> https://github.com/archivesspace/archivesspace/compare/master...uvalib:collmgmt_subreports
>  
> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fcompare%2Fmaster...uvalib%3Acollmgmt_subreports=02%7C01%7Cmaura.carbone%40yale.edu%7Ca22e968b2e20472db2b108d6b879f303%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636899231258976202=EKnmvekVQ8qevLVOFs2gYavmOJ7wSwq0uUD55LAd5Dg%3D=0>
>  
> https://github.com/archivesspace/archivesspace/compare/master...uvalib:collmgmt_subreports.patch
>  
> <https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fcompare%2Fmaster...uvalib%3Acollmgmt_subreports.patch=02%7C01%7Cmaura.carbone%40yale.edu%7Ca22e968b2e20472db2b108d6b879f303%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636899231258976202=93aekmY0PG9PgcZxg%2FjEaa9VjAi4XlAIrvVdII5NAwQ%3D=0>
>  
> And if some of the proper defaults like additions to the locales files were 
> added to the distribution, it would have been only two one-line additions. 
>  
> Adds these fields to the reports if a collection management record exists: 
>  
> collection_management_subreport:
>   processing_funding_source: Funding Source
>   processing_hours_total: Total Hours
>   processing_plan: Processing Plan
>   processing_priority: Processing Priority
>   processing_status: Processing Status
>   processors: Processors
>   rights_determined: Rights Determined?
>  
>  
> Reports, like plugins, do not require a new build: you can just drop modified 
> reports into archivesspace/reports/ directories and restart to take effect. 
>  
>  
> We have also added a custom report on users and permission groups, which is 
> very handy due

[Archivesspace_Users_Group] FYI: Custom reports

2019-04-03 Thread Majewski, Steven Dennis (sdm7g)
Followup to my comments on todays Reports call: 
https://archivesspace.atlassian.net/wiki/spaces/ADC/pages/834994187/2019-04-03+UAC+Reports+Open+Call
 


A number of custom sub reports are available in 
https://github.com/archivesspace/archivesspace/tree/master/reports/custom 
, 
but the facility to create custom reports has not yet been released.  ( Reasons 
for this was discussed on the call. ) 

I found it was quite easy to add one of these custom sub reports to existing 
reports. 
We wanted to add the collections_management_subreport to the 
resources_list_report and the accession_report. 

This was a pretty trivial set of changes to implement:

https://github.com/archivesspace/archivesspace/compare/master...uvalib:collmgmt_subreports
 


https://github.com/archivesspace/archivesspace/compare/master...uvalib:collmgmt_subreports.patch
 


And if some of the proper defaults like additions to the locales files were 
added to the distribution, it would have been only two one-line additions. 

Adds these fields to the reports if a collection management record exists: 

collection_management_subreport:
  processing_funding_source: Funding Source
  processing_hours_total: Total Hours
  processing_plan: Processing Plan
  processing_priority: Processing Priority
  processing_status: Processing Status
  processors: Processors
  rights_determined: Rights Determined?


Reports, like plugins, do not require a new build: you can just drop modified 
reports into archivesspace/reports/ directories and restart to take effect. 


We have also added a custom report on users and permission groups, which is 
very handy due to the limited staff web app view of users.  I’ve submitted a 
pull request to add this to the next release. 

https://github.com/archivesspace/archivesspace/pull/1502 


https://github.com/archivesspace/archivesspace/pull/1502/files 




— Steve Majewski











smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Error when creating PDF Finding Aid Export

2019-03-29 Thread Majewski, Steven Dennis (sdm7g)
Yes: that unescaped ampersand is the likely the problem.  

I don’t think they have to be escaped everywhere, but having the text wrapped 
in  triggers it being parsed as mixed content rather than just text, so 
inside the  tags, the serializer is expecting valid XML text() . 

When having problems with the Staff interface PDF output, it’s often a good 
idea to export as EAD and validate the XML output to locate the source of the 
problems. 

— Steve. 

> On Mar 29, 2019, at 1:37 PM, Busch, Ed  wrote:
> 
> We are doing Print Resource to PDF for a Resource that fails during the 
> background job execution. The errors that appear are below.
> Any suggestions on pinpointing what is causing the problem? I’m wondering if 
> it’s this component line
> Betty MacDowell Resource Files for Publication:  render="italic">Michigan Women: First & Founders as it’s the first use 
> of & that isn’t  Grasping at straws.
>  
> Thanks!
>  
> Ed
>  
> Generating PDF for Michigan Women's Studies Association records 
> org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 49129; The 
> entity name must immediately follow the '&' in the entity reference.
> net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:379)
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
> RUBY.parse(/usr/local/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/xml.rb:28)
> RUBY.XML(/usr/local/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/processor.rb:58)
> RUBY.XML(/usr/local/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/xml.rb:10)
> RUBY.to_fo(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:32)
> RUBY.to_pdf(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:38)
> RUBY.block in 
> run(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:45)
> usr.local.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.request_context.open(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
> RUBY.run(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
> usr.local.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(usr/local/archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> usr.local.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> RUBY.block in 
> start_background_thread(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)
> java.lang.Thread.run(java/lang/Thread.java:748)
>  
>  
>  
> Ed Busch, MLIS
> Acting Director
> Electronic Records Archivist
> Michigan State University Archives
> Conrad Hall
> 943 Conrad Road, Room 101
> East Lansing, MI 48824
> 517-884-6438
> busch...@msu.edu 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Discontinuing use of "levels of description" labels?

2019-03-08 Thread Majewski, Steven Dennis (sdm7g)
In EAD, the hierarchy is fixed, but one of the advantages of linked data is 
that the elements are movable and reusable in other contexts. We’re not really 
taking advantage of that currently in ArchivesSpace, but for the future I think 
it makes sense to think about those use cases and whether level-of-description 
might be useful if the archival object is removed from its context.  ( For 
example, organizing artificial or virtual collections from subsets or multiple 
archival collections for exhibits or other display purposes — whether that’s 
done in ArchivesSpace or by another tool importing info from ArchivesSpace. ) 

I will also note that we are currently integrating Aeon with ArchivesSpace — 
currently in testing and not yet in production here, so we don’t have a lot of 
experience yet, but I think it may be useful to have level-of-description 
included in those requests (another instance where you are seeing the info 
removed from it’s context) and we are considering filtering request so that 
only the lowest level items are units that can be requested ( although this can 
be perhaps better implemented just by looking at whether the item has children. 
)


— Steve. 


> On Mar 8, 2019, at 2:29 PM, Jordon Steele  wrote:
> 
> Hi all,
>  
> This is more of an archival description question, but I’m not a member of 
> that listserv, so I figured it would be easier to ping some of you about this 
> for advice since I wager there’s a lot of overlap.
>  
> We have not-infrequent discussions around here about what “level of 
> description” label to assign to an archival component at a given level, i.e. 
> collection, series, file, item, etc. But because our data is already 
> structured in hierarchical relationships via EAD/JSON, there’s no real need 
> to “tell the computer” what level this is since these labels aren’t the way 
> computers understand context and hierarchy, the nesting of data is.
>  
> Once I realized this, I often made the case that these level-of-description 
> labels are useful for stylesheets, i.e. tell a stylesheet with level=series 
> to make it all caps and bold, level=file should be red, etc. But the ASpace 
> PUI doesn’t/doesn’t need to style levels in this manner for the hierarchy to 
> be easily understood.
>  
> So we’re considering discontinuing use of the “level of description” field in 
> ASpace. But am I missing an important value of this field? Thanks!
>  
> Best,
>  
> Jordon
>  
> Jordon Steele
> Hodson Curator of the University Archives
> Sheridan Libraries
> Johns Hopkins University
> 3400 N Charles St
> Baltimore, MD 21218
> jste...@jhu.edu 
> 410-516-5493
> he/him/his
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Import Data Errors

2019-01-29 Thread Majewski, Steven Dennis (sdm7g)

I believe all of the dsc components must have either a unittitle or unitdate. 


> On Jan 29, 2019, at 12:16 PM, Ryan Flahive  wrote:
> 
> Morning Folks,
>  
> I’m new to this group as my ArchiveSpace server was just set up a couple days 
> ago.
>  
> Due to circumstances too lengthy to describe here, I am manually building 
> this database from exported EAD files from my Archivist’s Toolkit system. My 
> first few imports were successful, but then a few failed due to these errors:
>  
> Date: one or more required (or enter a Title)
> Title: must not be an empty string (or enter a Date)
>  
> These records have titles and dates. Can anyone shed some light on how I 
> resolve this issue? Feel free to email me with suggestions!
>  
> Thanks!
>  
> Ryan S. Flahive
> Archivist
> INSTITUTE OF AMERICAN INDIAN ARTS
> 83 Avan Nu Po Road, Santa Fe, NM 87508
> P. 505-424-2392
> E. rflah...@iaia.edu 
> www.iaia.edu  
>  
> IAIA's Mission: To empower creativity and leadership in Native arts and 
> cultures through higher education, lifelong learning, and outreach.
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] # of Collection Mgmt records not matching # of Accession records

2019-01-14 Thread Majewski, Steven Dennis (sdm7g)

I noticed, while researching this issue, that there is no  .dat file in my 
archivesspace/data/inderer_state directly named container_management. 
Perhaps that info is kept in corresponding resource files, however, I see that 
there is a primary_type in Solr records for container_management.
Which makes me suspicious that there is something missing in the codebase to 
keep these records in sync.  ( I’m on 2.5.x, so I don’t know what would be 
different in 2.3.x )  It also makes me question if you did a complete reindex ( 
i.e. delete ALL of data/indexer_state/* and data/solr_index/ and restart ) or 
partial, as that might make a difference here. Usually, deleting the 
indexer_state files in enough, but I’m suspicious here. 

I suggest you open the Solr web console to ArchivesSpace — usually at port 
8090, unless you have changed the default, and enter:
primary_type: collection_management in the Query console.
Look first at response.numFound, which from your description, I expect doesn’t 
match the number returned from SQL query. 
Then you might drill down to inspect if there are duplicate records with the 
same parent_id, or if there are id # returned in the solr query that have been 
deleted from SQL. What else you might look at depends on what clues you 
initially see. 


BTW: I found it very simple to add collection_management_subreports to 
accession_report and resource_list_report in 2.5.x, 
However, I think the reports subsystem was very different in 2.3.x. And that 
would still only give you the records that are in SQL, not the ones that 
aren’t, which seems to be the problem. 

— Steve Majewski



> On Jan 14, 2019, at 10:51 AM, McPhee, Laurel  wrote:
> 
> Hi Blake,
>  
> The MySQL tables show:
>  
> mysql> select count(*) from accession;
> +--+
> | count(*) |
> +--+
> | 2702 |
> +--+
> 1 row in set (0.01 sec)
>  
> mysql> select count(*) from collection_management;
> +--+
> | count(*) |
> +--+
> | 2695 |
> +--+
> 1 row in set (0.00 sec)
>  
> Without knowing much about what that means, my hunch is that our “real” 
> number of records is correct, or just off by a mere handful. But for some 
> reason we’re seeing lots of junk appear in the staff interface filters and 
> view. Any insights? (and sorry for confusion on my originally reported 
> numbers, I meant to type we had 2,700 accessions, not 2,600. So the number in 
> the tables is exactly what we expect to see there).
>  
> Laurel
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  On Behalf Of Blake 
> Carver
> Sent: Friday, January 11, 2019 8:21 AM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] # of Collection Mgmt records not 
> matching # of Accession records
>  
> If you look in the actual MySQL tables, what's the counts?
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
>  > on behalf 
> of McPhee, Laurel mailto:lmcp...@ucsd.edu>>
> Sent: Friday, January 11, 2019 10:59:11 AM
> To: Archivesspace Users Group
> Subject: [Archivesspace_Users_Group] # of Collection Mgmt records not 
> matching # of Accession records
>  
> Hi all, and happy Friday.
>  
> We’re attempting to troubleshoot a strange problem. I’d appreciate knowing if 
> anyone else has this issue, or has any suggestions. Our database analyst has 
> started looking into it, but it’s a puzzler.
>  
> We have 2,600 accession records. As far as I know, the Collection Mgmt 
> subtable has a 1-to-1 relationship with the Accession table. However, if I 
> filter a search on Collection Mgmt (BrowseàCollection Mgmt) over 3,600 
> records display. A careful search through the results shows that often (not 
> always!) when we update the processing status on an accession, using the 
> little pull-down menu, a “ghost” collection management record lingers on, and 
> will appear in search results sets within Collection Management. So one 
> accession record, although it looks perfectly correct and updated in the 
> accession record staff view, will have two collection management records, one 
> showing “processed” and one showing “unprocessed” if you search for that same 
> record in the Collection Mgmt browse feature.
>  
> We thought a purge of our deleted records and a re-index might fix this. But, 
> the plot thickens: at the end of the day yesterday, when we purged our 
> deleted records and reindexed in our test instance, the Collection Mgmt table 
> now shows over 4,000 results! It’s like it made the problem WORSE. Instead of 
> duplicate ghosts, we now have triplicate ghosts. Does anyone else have this 
> problem with a numbers mis-match between Coll Mgmt and Accessions?
>  
> I can’t replicate it in the Sandbox because the problem doesn’t seem to 
> happen with “new” accession records. If I make a new test accession record, 
> the 

Re: [Archivesspace_Users_Group] Anyone making use of Harvard's aspace-import-excel plugin?

2019-01-08 Thread Majewski, Steven Dennis (sdm7g)
We have been using the plugin routinely. 
We did recently  have some problems when we tried it on a very large 
spreadsheet ( > 2000 rows )

It seemed to me that when the web app appeared to have finished  importing the 
spreadsheet, it was really still processing in the background for a long time. 
( hours! ) That made it appear that it didn’t completely work. We then tried to 
delete and redo again, which caused even more problems. Or It might be that the 
archival_objects are created but not yet indexed. (*) 
So I would suggest first doing import on a test server, and to wait a long time 
for the job to complete. 
When we redid it again, on production, waiting overnight for completion, we got 
everything but a couple of rows. 
We didn’t spend any more time trying to locate the exact error on those rows — 
we just added the missing values manually. 
So I’m not 100% sure of my diagnosis and description of the problem. 
But even with the manual fixup, it still saved a lot of time on the other 2000 
archival objects! 

But if you’re seeing issues with 100+ lines, perhaps we need to implement some 
post import QA check to verify that everything imported correctly. 

(*) In one case, we tried to delete archival_objects after what appeared to be 
an unsuccessful import, however after some were deleted, more continued to 
appear, and the 2nd attempt to import hit errors trying to recreate still 
existing records. 


— Steve Majewski


> On Jan 8, 2019, at 6:12 PM, Emily Pyers  wrote:
> 
> Link to it in GitHub here: 
> https://github.com/harvard-library/aspace-import-excel 
> 
>  
> We’re really excited about it (the 80% rule!) and have implemented it on our 
> test system (v2.4.0).  We’ve been testing it and it’s mostly working fine, 
> until we attempt to load spreadsheets that have more than around 100 lines. 
> Attempts to load spreadsheets over this size are resulting in job timeouts 
> and overall system slowdowns, and we’ve tested pretty thoroughly – it doesn’t 
> seem to be an issue with the data.  Our tech team have reviewed the system 
> logs, but are unable to pinpoint the source of the problem.
>  
> I was hoping someone out there might be able to confirm that a) they have 
> successfully used the plugin to load spreadsheets greater than 100 lines 
> (since this seems to be a point of scepticism for some of our internal 
> stakeholders), and that b) if you might be able to point us towards any 
> potential areas of investigation?
>  
> I would be so appreciative for any help on this!
>  
> Cheers,
>  
> Emily 
> 
> Emily Pyers | Metadata & Archival Systems Specialist | Collection Development 
> & Description 
> In the office Monday, Wednesday - Friday 9.30am-3pm
> State Library Victoria | 328 Swanston Street | Melbourne VIC 3000 
> T +61 3 8664 7368 | epy...@slv.vic.gov.au  
> slv.vic.gov.au 
> 
>     
> 
>  
> 
>  
>   
>  
> This message and any attachment is intended only for the use of the Addressee 
> and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are 
> not the intended recipient, you are hereby notified that any dissemination of 
> this communication is strictly prohibited. If you have received this 
> communication in error, please delete all copies of the message and its 
> attachments and notify the sender immediately. Thank you. 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] ArchLight Documentation

2019-01-07 Thread Majewski, Steven Dennis (sdm7g)


ArcLight project on GitHub:  https://github.com/sul-dlss/arclight 


ArcLight is a Ruby/Rails+Solr Gem for searching and displaying finding aids. 
The display is somewhat similar in style to ArchivesSpace Public User 
Interface, but ArcLight is only for serving published finding aids — it has 
none of the authoring and management capability of the ArchivesSpace staff 
interface.  ArcLight imports EAD finding aids and indexes the pieces in Solr 
for fast retrieval, so it doesn’t have to parse an entire XML finding aid on 
each access.  

If all of your finding aids are in ArchivesSpace, there is not much to be 
gained from ArcLight over the ArchivesSpace PUI. 
However, if you’ve got legacy EAD finding aids that you cannot yet import into 
ArchivesSpace, or you are trying to build a union catalog with other 
institutions, then exporting EAD from different systems is probably the only 
common denominator.  

We are currently using XTF  https://xtf.cdlib.org , 
https://github.com/cdlib/xtf.git   for 
displaying EAD finding aids online, however that technology stack has gotten a 
little long in the tooth, so we’ve been evaluating ArcLight as a replacement. 
My evaluation was based on the initial MVP release, which was a while ago, so 
they may have fixed some of the issues since then. The main issue I ran into 
was that ArcLight, like ArchivesSpace, had some restrictions and limitation on 
the EAD that it would import, particularly on the  values. I made an 
attempt to override and fix this, but it was not completely successful, so I 
had to resort to preprocessing the EAD to transform it to ArcLight’s 
restrictions. ( ArcLight uses eadid value to link all of the sub records  
together in Solr index, so fixing this issue was less trivial than making some 
other mods to the application or EAD import process. I will likely make another 
attempt to dig deeper into this problem when I have the time. ) 

Several Virginia Heritage http://vaheritage.org  
members are also ArchivesSpace members and we have been testing using the 
ArchivesSpace OAI endpoints as a feed into our current XTF implementation, and 
if we do migrate to ArcLight, we will use the same method to feed updates. (  
https://github.com/bloomonkey/oai-harvest.git 
 ) 

I had initially thought there might be some way to manage the entire union 
catalog in ArchivesSpace, but my experience with managing an ArchivesSpace 
instance with 4 different library repositories convinced me that trying to do 
the same for a much larger group would not be practical. There might be other 
ways to build a searchable union catalog of ArchivesSpace instances ( merging 
Solr records, for example ) however they would all require access to 
ArchivesSpace backend or Solr service, which are both likely to be restricted 
or firewalled. 

— Steve Majewski 


> On Jan 7, 2019, at 5:38 AM, Harm Jager  wrote:
> 
> Hello fellow Archivesspace users, 
> 
> We are sending this mail out to you because we are currently in the process 
> of doing research in to the best way to use the user-interface of 
> Archivesspace. We would like to use the user-interface not only to present 
> our finding-aids but also those of other institutions in the Netherlands that 
> are complementary to our finding-aids and if possible provide extra 
> information surrounding these Finding-Aids
> 
> This brings me to our point. Namely the fact that we recently heard of 
> ArchLight and someone said that would be a good fit for us and our objectives 
> with the staff-interface. We are looking to expand our knowledge when it 
> comes to ArcLight. Using Google to find Archlight brings us to a couple of 
> DuraSpace pages, but that’s it.
> 
> Therefore I share the following question/request. Does anyone of you have any 
> experience with ArchLight and if so could you share with us your 
> documentation surrounding ArchLight? We would like to know as much as 
> possible about ArchLight before we start to fiddle around with it. Any links 
> or documents would be greatly appreciated.
> 
> Thank you very much for helping us along.
> 
> Greetings,
> 
> Harm Jager
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] PUI question: external indexing of container list tree link text

2019-01-04 Thread Majewski, Steven Dennis (sdm7g)

I would suggest crawling the OAI endpoint for indexing, but linking to the PUI 
record.
oai_ead metadata just EAD in an OAI wrapper, and has the complete resource 
tree. 
The problem with that is that not everyone may have configured OAI or made it 
public. 

But yes: that’s a problem with progressive web apps: all of the data you want 
indexed isn’t in the page. 
I wonder if there is a way thru google webmaster console or sitemaps to 
configure this sort of action, i.e.
Use this other URL to index this resource. 

— Steve Majewski



> On Jan 4, 2019, at 9:59 AM, Rees, John (NIH/NLM) [E]  
> wrote:
> 
> Hi all,
>  
> I administer a finding aids aggregation service that in part scrapes 
> HTML-source code as a data input and I am looking for some advice/start a 
> conversation.
>  
> Several of our contributing repositories with this data type moved to 
> ArchivesSpace in 2018 and we are not able to crawl ASpace’s 
> collection_organization#tree source which seems to be the only organized view 
> of container list data. As many of you probably know these are coded as URIs 
> in the HTML-source and are only rendered as visible text at runtime via 
> javascript and css in the browser.
>  
> Our crawler cannot translate these HTML-source URIs into text that it can 
> index. The only workaround we’ve been able to find is indexing the PDF view, 
> but not everyone implements this feature. Additionally, our crawler sometimes 
> times out on large PDFs as it can take ASpace a while to generate them at 
> runtime.
>  
> I’m also wondering if PUI implementers have noticed any issues with other 
> search engines having difficulty indexing their PUI content at a 
> full-document level?
>  
> I searched the Jira backlog and PUI Enhancements wikispace and did not find 
> anything specifically addressing this use case.
>  
> Thanks,
> John
>  
>  
> John P. Rees
> Archivist and Digital Resources Manager
> History of Medicine Division
> National Library of Medicine
> 301-827-4510
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Specifying Physical Location in Resource Records

2018-12-06 Thread Majewski, Steven Dennis (sdm7g)

Resources/Archival_objects/Accessions can have a container Instance, which will 
link to a top_container that can link to a Location.

Look at: "Managing Containers…/Managing Top Containers/Creating a Top 
Container” in the online manual. 

It may be a bit confusing that the staff interface has create menus items for 
most objects, but the option to create a top container, I believe, only appears 
when you create an instance. 

— Steve Majewski. 




> On Dec 6, 2018, at 12:43 PM, Dan Kammer  wrote:
> 
> Hello Everyone,
>  
> We are new to ArchivesSpace and I have a very basic question that I have not 
> been able to find an answer to in the manual nor the screencasts:
>  
> We have created location records for our archives stacks/sections/shelves, 
> but how do we link these location records to resource records?  We are not 
> seeing any way to do this.  I have expected there to be a way to choose a 
> location when creating each resource record, but does it work in a different 
> way?  
>  
> Thank you for any assistance you can provide.
>  
> Dan
>  
> --
> Dan Kammer
> Library Director
> Stephens College
> (573) 876-7273
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] 2.5 install issue

2018-11-12 Thread Majewski, Steven Dennis (sdm7g)

Oops. My error. 8082 is OAI port, not PUI.  
Not sure how far back OAI support was initially added. 

> On Nov 12, 2018, at 2:02 PM, Majewski, Steven Dennis (sdm7g) 
>  wrote:
> 
> 
> The default ports haven’t changed. 
> Blake transposed digits in his email to 8028, but the error message says 
> 8082, which is the default port for public webapp. 
> Default port numbers are in common/config/config-defaults.rb:
> 
> https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L22-L48
>  
> <https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L22-L48>
> 
> 
> AppConfig[:backend_url] = "http://localhost:8089 <http://localhost:8089/>"
> AppConfig[:frontend_url] = "http://localhost:8080 <http://localhost:8080/>"
> AppConfig[:public_url] = "http://localhost:8081 <http://localhost:8081/>"
> AppConfig[:oai_url] = "http://localhost:8082 <http://localhost:8082/>"
> AppConfig[:solr_url] = "http://localhost:8090 <http://localhost:8090/>"
> AppConfig[:indexer_url] = "http://localhost:8091 <http://localhost:8091/>"
> AppConfig[:docs_url] = "http://localhost: <http://localhost:/>"
> 
> 
> 
> 
>> On Nov 12, 2018, at 1:53 PM, Neal, Rick > <mailto:rn...@richmond.edu>> wrote:
>> 
>> Blake,
>> 
>> What port did it run on before 2.5?
>> 
>> Rick
>> 
>> Sent from my iPhone
>> 
>> On Nov 12, 2018, at 11:39 AM, Blake Carver > <mailto:blake.car...@lyrasis.org>> wrote:
>> 
>>>>> WARNING: FAILED SelectChannelConnector@0.0.0.0 
>>>>> <mailto:SelectChannelConnector@0.0.0.0>:8082: java.net.BindException: 
>>>>> Address already in use
>>> 
>>> Something is running on port 8028 already so ArchivesSpace can't start up 
>>> since that's being used now.
>>> 
>>> 
>>> 
>>> 
>>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>>> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>>> >> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf 
>>> of Neal, Rick mailto:rn...@richmond.edu>>
>>> Sent: Monday, November 12, 2018 11:30:07 AM
>>> To: Archivesspace Users Group
>>> Subject: [Archivesspace_Users_Group] 2.5 install issue
>>> 
>>> Good morning,
>>> 
>>> I successfully upgraded our version of ArchiveSpace on my test server to 
>>> version 2.5 with no issues.
>>> 
>>> I am now trying to replicate it on my production server.
>>> 
>>> After my upgrade I restarted the service and the staff and public 
>>> interfaces won’t display in a browser although the backend does:
>>> 
>>> { "databaseProductName": "MySQL", "databaseProductVersion": "5.1.73", 
>>> "ruby_version": "2.3.0", "host_os": "linux", "host_cpu": "x86_64", "build": 
>>> "java1.7", "archivesSpaceVersion": "v2.5.0" }
>>> 
>>> 
>>> The archivesspace.out log had this in it:  A trace file has been written to 
>>> the following location: /tmp/aspace_diagnostic_1542039282.txt
>>> 
>>> That file mentions that an address is already in use.  (I append it to the 
>>> bottom).
>>> 
>>> I did not use the new config.rb file because I use virtualhosts to give 
>>> unique urls for ArchivesSpace to use.  The only thing in my config.rb file 
>>> that is uncommented is the line for database access.  I have been using it 
>>> this way for years now and there was no issue with the recent  test server 
>>> upgrade.
>>> 
>>> I appreciate whatever advice you have.
>>> 
>>> Rick
>>> 
>>> ~~~
>>> 
>>> I see this in the archivesspace.out file
>>> 
>>> Nov 12, 2018 11:14:42 AM org.eclipse.jetty.server.handler.ContextHandler 
>>> callContextInitialized
>>> INFO: started 
>>> o.e.j.w.WebAppContext{/,file:/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8082-oai.war-_-any-/webapp/},/usr/local/archivesspace/wars/oai.war
>>> Nov 12, 2018 11:14:42 AM org.eclipse.jetty.util.component.AbstractLifeCycle 
>>> setFailed
>>> WARNING: FAILED SelectChannelConnector@0.0.

Re: [Archivesspace_Users_Group] 2.5 install issue

2018-11-12 Thread Majewski, Steven Dennis (sdm7g)

The default ports haven’t changed. 
Blake transposed digits in his email to 8028, but the error message says 8082, 
which is the default port for public webapp. 
Default port numbers are in common/config/config-defaults.rb:

https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L22-L48
 



AppConfig[:backend_url] = "http://localhost:8089;
AppConfig[:frontend_url] = "http://localhost:8080;
AppConfig[:public_url] = "http://localhost:8081;
AppConfig[:oai_url] = "http://localhost:8082;
AppConfig[:solr_url] = "http://localhost:8090;
AppConfig[:indexer_url] = "http://localhost:8091;
AppConfig[:docs_url] = "http://localhost:;




> On Nov 12, 2018, at 1:53 PM, Neal, Rick  wrote:
> 
> Blake,
> 
> What port did it run on before 2.5?
> 
> Rick
> 
> Sent from my iPhone
> 
> On Nov 12, 2018, at 11:39 AM, Blake Carver  wrote:
> 
 WARNING: FAILED SelectChannelConnector@0.0.0.0:8082: 
 java.net.BindException: Address already in use
>> 
>> Something is running on port 8028 already so ArchivesSpace can't start up 
>> since that's being used now.
>> 
>> 
>> 
>> 
>> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>>  on behalf of Neal, 
>> Rick 
>> Sent: Monday, November 12, 2018 11:30:07 AM
>> To: Archivesspace Users Group
>> Subject: [Archivesspace_Users_Group] 2.5 install issue
>> 
>> Good morning,
>> 
>> I successfully upgraded our version of ArchiveSpace on my test server to 
>> version 2.5 with no issues.
>> 
>> I am now trying to replicate it on my production server.
>> 
>> After my upgrade I restarted the service and the staff and public interfaces 
>> won’t display in a browser although the backend does:
>> 
>> { "databaseProductName": "MySQL", "databaseProductVersion": "5.1.73", 
>> "ruby_version": "2.3.0", "host_os": "linux", "host_cpu": "x86_64", "build": 
>> "java1.7", "archivesSpaceVersion": "v2.5.0" }
>> 
>> 
>> The archivesspace.out log had this in it:  A trace file has been written to 
>> the following location: /tmp/aspace_diagnostic_1542039282.txt
>> 
>> That file mentions that an address is already in use.  (I append it to the 
>> bottom).
>> 
>> I did not use the new config.rb file because I use virtualhosts to give 
>> unique urls for ArchivesSpace to use.  The only thing in my config.rb file 
>> that is uncommented is the line for database access.  I have been using it 
>> this way for years now and there was no issue with the recent  test server 
>> upgrade.
>> 
>> I appreciate whatever advice you have.
>> 
>> Rick
>> 
>> ~~~
>> 
>> I see this in the archivesspace.out file
>> 
>> Nov 12, 2018 11:14:42 AM org.eclipse.jetty.server.handler.ContextHandler 
>> callContextInitialized
>> INFO: started 
>> o.e.j.w.WebAppContext{/,file:/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8082-oai.war-_-any-/webapp/},/usr/local/archivesspace/wars/oai.war
>> Nov 12, 2018 11:14:42 AM org.eclipse.jetty.util.component.AbstractLifeCycle 
>> setFailed
>> WARNING: FAILED SelectChannelConnector@0.0.0.0:8082: java.net.BindException: 
>> Address already in use
>> 
>> This is the complete aspace_diagnostic_1542032577.txt file
>> 
>> "cpu_count": 2,
>> "exception": {
>>   "msg": "Address already in use",
>>   "backtrace": [
>> "sun.nio.ch.Net.bind0(Native Method)",
>> "sun.nio.ch.Net.bind(sun/nio/ch/Net.java:463)",
>> "sun.nio.ch.Net.bind(sun/nio/ch/Net.java:455)",
>> 
>> "sun.nio.ch.ServerSocketChannelImpl.bind(sun/nio/ch/ServerSocketChannelImpl.java:223)",
>> 
>> "sun.nio.ch.ServerSocketAdaptor.bind(sun/nio/ch/ServerSocketAdaptor.java:74)",
>> 
>> "org.eclipse.jetty.server.nio.SelectChannelConnector.open(org/eclipse/jetty/server/nio/SelectChannelConnector.java:182)",
>> 
>> "org.eclipse.jetty.server.AbstractConnector.doStart(org/eclipse/jetty/server/AbstractConnector.java:311)",
>> 
>> "org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(org/eclipse/jetty/server/nio/SelectChannelConnector.java:260)",
>> 
>> "org.eclipse.jetty.util.component.AbstractLifeCycle.start(org/eclipse/jetty/util/component/AbstractLifeCycle.java:59)",
>> 
>> "org.eclipse.jetty.server.Server.doStart(org/eclipse/jetty/server/Server.java:283)",
>> 
>> "org.eclipse.jetty.util.component.AbstractLifeCycle.start(org/eclipse/jetty/util/component/AbstractLifeCycle.java:59)",
>> "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:606)",
>> 
>> "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:438)",
>> 
>> "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:302)",
>> "launcher.launcher.invokeOther148:start(launcher/launcher.rb:92)",
>> "launcher.launcher.start_server(launcher/launcher.rb:92)",
>> 
>> 

Re: [Archivesspace_Users_Group] Error when trying to add Event Type

2018-10-29 Thread Majewski, Steven Dennis (sdm7g)

You could also try adding an enum value from the backend API and see if you get 
a more specific error message directly from the backend. 

— Steve Majewski


> On Oct 29, 2018, at 12:20 PM, Majewski, Steven Dennis (sdm7g) 
>  wrote:
> 
> 
>> On Oct 29, 2018, at 11:07 AM, Busch, Ed  wrote:
>> 
>> Hi-
>> 
>> Nothing showing up in the log regarding the create event type error. System 
>> info report says the log level is set to debug. Any other ideas?
>> 
>> Not sure if this is related, but I noticed that when I am logged as me (with 
>> admin priv), I can't access the system_info page: I get Unable to access 
>> Page. When I log in as the actual Admin user, I can access the page.
>> 
> 
> Not related. System info controller is checking that user = “admin” instead 
> of checking that user has admin privileges, which would probably be a better 
> choice. 
> 
> Any clues at all in the log?  Can you post a snippet from around the time of 
> the submit ? 
> 
> 
> — Steve Majewski
> 
> 
> 
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Error when trying to add Event Type

2018-10-29 Thread Majewski, Steven Dennis (sdm7g)

> On Oct 29, 2018, at 11:07 AM, Busch, Ed  wrote:
> 
> Hi-
> 
> Nothing showing up in the log regarding the create event type error. System 
> info report says the log level is set to debug. Any other ideas?
> 
> Not sure if this is related, but I noticed that when I am logged as me (with 
> admin priv), I can't access the system_info page: I get Unable to access 
> Page. When I log in as the actual Admin user, I can access the page.
> 

Not related. System info controller is checking that user = “admin” instead of 
checking that user has admin privileges, which would probably be a better 
choice. 

Any clues at all in the log?  Can you post a snippet from around the time of 
the submit ? 


— Steve Majewski






smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] External ID

2018-09-21 Thread Majewski, Steven Dennis (sdm7g)

We’ve used this config feature for so long (since v1.4.*) that I had forgotten 
it was necessary to turn it on to see external_ids. 

My advice, in earlier threads,  to use the EAD mapping between multiple unitids 
and external_ids for some issues must have seemed somewhat confusing if anyone 
tried it without also having that feature enabled. 


— Steve Majewski


> On Sep 21, 2018, at 2:23 PM, Majewski, Steven Dennis (sdm7g) 
>  wrote:
> 
> 
> AppConfig[:show_external_ids] = true 
> 
> will allow you to view and edit existing external ids in staff interface, but 
> it doesn’t allow you to create them.
> Ours are added either from EAD import or via backend API. 
> 
> I had once forked changes in an older version to  allow creating them from 
> the staff webapp.
> If I’m remembering correctly, the required changes touched too many modules 
> and were not localized, so it didn’t seem practical to maintain them in a 
> plugin.
> 
> If there is interest in adding this feature to the core code, I could review 
> that branch and see if it could be merged into current code base. That code 
> still followed that config setting, so edit option was not visible unless set 
> to true. 
> 
> — Steve Majewski
> 
> 
>> On Sep 21, 2018, at 1:14 PM, Kennedy, Nancy > <mailto:kenne...@si.edu>> wrote:
>> 
>> Has anyone tried to set up the external id field so that a user can create 
>> (or edit) an external_id via the staff UI?  Is that possible?
>>  
>> Nancy Kennedy
>> Smithsonian Institution
>> kenne...@si.edu <mailto:kenne...@si.edu>
>>  
>> ___
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group@lyralists.lyrasis.org 
>> <mailto:Archivesspace_Users_Group@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@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] External ID

2018-09-21 Thread Majewski, Steven Dennis (sdm7g)

AppConfig[:show_external_ids] = true 

will allow you to view and edit existing external ids in staff interface, but 
it doesn’t allow you to create them.
Ours are added either from EAD import or via backend API. 

I had once forked changes in an older version to  allow creating them from the 
staff webapp.
If I’m remembering correctly, the required changes touched too many modules and 
were not localized, so it didn’t seem practical to maintain them in a plugin.

If there is interest in adding this feature to the core code, I could review 
that branch and see if it could be merged into current code base. That code 
still followed that config setting, so edit option was not visible unless set 
to true. 

— Steve Majewski


> On Sep 21, 2018, at 1:14 PM, Kennedy, Nancy  wrote:
> 
> Has anyone tried to set up the external id field so that a user can create 
> (or edit) an external_id via the staff UI?  Is that possible?
>  
> Nancy Kennedy
> Smithsonian Institution
> kenne...@si.edu 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Publish All workflows

2018-09-13 Thread Majewski, Steven Dennis (sdm7g)

Yes: I think publish/publish-all was a design error that has caused much 
confusion for users. 
First, “publish” is a verb that’s being used as an attribute. It should have 
been “public” . 
And the “publish all” button, which is a verb, just made if more confusing. 

In most cases, for most libraries, public is a better default. 
If public was the default and the checkbox was “internal” , there would be less 
need for a button to change the status of all children to “publish” . ( Maybe 
there is a way to make the defaults for different records configurable, or make 
the defaults for different kinds of notes different. ) 

But there is still a use case for a “publish” (as a verb) button, that would 
trigger PUI indexing and perhaps some other actions. 
As it works currently, incomplete records that are correctly marked to be 
public go out to the PUI and OAI endpoints. 
Changing the finding aid status to complete does not trigger any action. 

So perhaps there should be a “publish” button that changes finding aid status, 
creates an event record that indicates that the resource was published, and 
triggers PUI indexing. 


— Steve Majewski


> On Sep 13, 2018, at 9:54 AM, Kennedy, Nancy  wrote:
> 
> Thanks, Noah, Brian. 
>  
> Noah – re: “we keep track of the publication status of a finding aid using 
> the Finding Aid Status field” .  We do the same thing, using Finding Aid 
> Status to drive the EAD export.
>  
> Using FA Status has worked pretty well… except that screen labels like 
> “publish?” leads to some (I’d say legitimately!) confused users.  Especially 
> when there is, say, a network slow down and people try to troubleshoot by 
> clicking on lots of inviting buttons… like “publish all”.  We try to train 
> everyone on what “Publish?” checkbox means, but it’s easy to confuse.
>  
> I’ve considered relabeling the ‘’Publish?” field to something like ‘External 
> Audience’ … but I don’t want to move us far afield form the core 
> archivesspace code/documentation. If I change the display label, my users 
> will understand that we mean audience and not status .  The problem is 
> changing labels means our views will drift away from the main core 
> archivesspace documentation, screencasts etc.  And the term ‘publish” appears 
> in many places. Label translation seems like a band aid (and not a very good 
> one).   A 2nd element specific to audience would probably be much better than 
> a label change.
>  
> Nancy
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  On Behalf Of Brian 
> Thomas
> Sent: Thursday, September 13, 2018 9:22 AM
> To: 'Archivesspace Users Group' 
> 
> Subject: Re: [Archivesspace_Users_Group] Publish All workflows
>  
> Hi all,
> I cannot speak to Noah’s questions re how to keep track of published vs. 
> unpublished elements as I am more on the techy side here in electronic 
> records v. the processing side. But I wanted to voice an agreement with Nancy 
> that having an internal audience only checkbox that blocks publication would 
> be a good enhancement. That way one can in a fell swoop still publish all 
> things intended for the public, without having to go back and unpublish all 
> the things that should not have been.
> Thanks,
>  
> Brian Thomas
> Electronic Records Specialist
> Texas State Library and Archives Commission
> 1201 Brazos Street
> Austin, TX 78701
> PH: (512) 475-3374
> e-mail: btho...@tsl.texas.gov 
> tsl.texas.gov 
> 
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
>  > On Behalf 
> Of Noah Huffman
> Sent: Thursday, September 13, 2018 8:10 AM
> To: Archivesspace Users Group 
>  >
> Subject: Re: [Archivesspace_Users_Group] Publish All workflows
>  
> Hi Nancy,
>  
> We ran into a similar problem to the one you describe—folks accidentally 
> clicking “publish all” when a resource record contained some archival objects 
> that should remain unpublished.
>  
> To try to prevent this, we have a general local practice that if a resource 
> record contains any archival objects that should remain unpublished (internal 
> only), then we make a note of that in the Repository Processing Note field. 
> The Repository Processing Note is an internal-only field and fairly easy to 
> review before clicking “publish all.”  We also have some scripts that batch 
> export EADs and publish all at the same time.  Those scripts will print out 
> the content of the Repository Processing Note field and require confirmation 
> before proceeding.  This isn’t a fail-proof solution, but has helped mitigate 
> the problem of publishing things we didn’t intend to publish. We’re also not 
> currently using the ASpace PUI, so we have at least some mediation before 
> publishing records as EAD.
>  
> RE: the audience vs. publish 

Re: [Archivesspace_Users_Group] Moving AS to another server?

2018-09-12 Thread Majewski, Steven Dennis (sdm7g)

You should check the logs/archivesspace.out log file when you start server to 
see if it starts up without error. 
Error message from startup may more clearly point to the problem — error 
message from failed GET is already another step removed from the original 
problem.  

You might also look at file ownership and permissions in archivesspace/data/ 
and elsewhere. 

If you’ve copied file tree from one server to another, owner of that temp 
directory may be different from user who is running new archivesspace. 

If you don’t find anything obviously wrong, starting from a clean install and 
just copying the config.rb  file from old to new server may be easier and keep 
things more consistent. 


— Steve Majewski



> On Sep 12, 2018, at 5:29 PM, Zhang, Bin  wrote:
> 
> I am trying to find out the steps needed to move an AS instance from one 
> server to another.  Both servers are running the same OS (ubuntu 16.04 LTS) 
> and will be pointing to the same mysql server.  I tried just copy the whole 
> archivesspace directory over.  I changed hostnames in the config.rb file.  Is 
> there anything else I need to do before starting AS?  When I started 
> archivesspace.sh, and went to the site url, I got this in the browser:
>  
> Internal Server Error (500)
> Request Method:
> GET
> Request URL:
> http://hostname.domain:8080/ 
> load error: psych -- java.lang.RuntimeException: BUG: we can not copy 
> embedded jar to temp directory from org/jruby/RubyKernel.java:961:in 
> `require' from 
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/psych_jars.rb:2:in 
> `' from org/jruby/RubyKernel.java:961:in `require' from 
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/psych.rb:1:in `' 
> from org/jruby/RubyKernel.java:961:in `require' from 
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/psych.rb:5:in `' 
> from org/jruby/RubyKernel.java:961:in `require' from 
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/yaml.rb:1:in `' 
> from org/jruby/RubyKernel.java:961:in `require' from 
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/yaml.rb:6:in `' 
> from org/jruby/RubyKernel.java:961:in `require' from 
> /data/archivesspace/gems/gems/railties-5.0.1/lib/rails/application.rb:1:in 
> `' from org/jruby/RubyKernel.java:961:in `require' from 
> /data/archivesspace/gems/gems/railties-5.0.1/lib/rails/application.rb:1:in 
> `' from org/jruby/RubyKernel.java:961:in `require' from 
> /data/archivesspace/gems/gems/railties-5.0.1/lib/rails.rb:1:in `' from 
> org/jruby/RubyKernel.java:961:in `require' from 
> /data/archivesspace/gems/gems/railties-5.0.1/lib/rails.rb:11:in `(root)' from 
> /data/archivesspace/gems/gems/actionpack-5.0.1/lib/action_controller/railtie.rb:1:in
>  `(root)' from 
> /data/archivesspace/gems/gems/actionpack-5.0.1/lib/action_controller/railtie.rb:1:in
>  `' from launcher/launcher.rb:92:in `start_server' from 
> launcher/launcher.rb:168:in `main' from launcher/launcher.rb:261:in `'
> You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.
>  
> Any idea what went wrong?
>  
> Thanks!
> Bin Zhang
> California State University, Sacramento
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Questions about user accounts & permissions

2018-08-03 Thread Majewski, Steven Dennis (sdm7g)

I agree: the best thing in to change password and remove permissions. Although, 
I think it would be safe to delete a user who was not an editor/creator of any 
resources. The last time I tested it, deleting the user unlinked the agent 
records that would identify who made edits or changes. ( And if that person 
left UVA, they would also be removed from our LDAP/whois database, which would 
make connecting a userid to an actual name impossible outside of ArchivesSpace. 
) 

I don’t know if this is already on the list of Staff interface enhancements, 
but perhaps an active/inactive flag that disabled that users login and access, 
but kept the entry for tracking would be a good addition. 

— Steve. 

> On Aug 1, 2018, at 6:39 PM, Custer, Mark  wrote:
> 
> All,
>  
> It sounds like Noah’s suggestion is a really great one! 
>  
> I’d also heed Miloche’s advice about not deleting user records!!!
>  
> Another wrinkle is that whenever you create a user record in ArchivesSpace, a 
> corresponding agent record is created at the same time (those records are 
> also linked, but invisibly essentially, since they’re only linked in the 
> database, and editing one doesn’t change the contents of the other record, of 
> course).  Here’s the kicker:  let’s say you later update that agent record 
> with an LCCN authority ID, link it up to some descriptive records, etc., then 
> if you delete that user record in the staff interface, then the agent record 
> is also deleted silently, which includes all links to any other records!  
> That’s definitely not what someone would expected (and I just tested to 
> confirm that it’s still true in version 2.4.1).  The reverse, thankfully, is 
> not true.  If you try to link an agent record that was created because it’s 
> linked to a user record, then you will get an error in the staff interface 
> telling you that you cannot delete that agent record. Although if the 
> interface allowed you to do that, it would be potentially less disastrous 
> than losing an agent record and all of its links.
>  
> Anyhow, the takeaway, in my opinion, is to never stray from Miloche’s advice 
>  
> Mark
>  
>  
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
> Kottman, Miloche
> Sent: Wednesday, 01 August, 2018 12:34 PM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Questions about user accounts & 
> permissions
>  
> Christie,
>  
> This behavior may have changed in subsequent releases so you may want to 
> experiment …  Ages ago (somewhere in the version 1.2 – 1.3 range) we switched 
> to a Shibboleth sign in system which caused pseudo duplicate users when the 
> Shib username was not the same as the one manually created in ASpace.  So to 
> fix this I naively deleted the username that was created manually in ASpace.  
> Everything worked fine and dandy until we upgraded to a newer version of 
> ASpace.  My IT folks said that this generated a lot of errors and prevented 
> the upgrade until they went in and cleaned up the affected records.  ASpace 
> was trying to link information in fields to users who no longer existed, my 
> guess would be the create/modify information.  Fortunately for us it was 
> early days of our installation so it was only a handful of records.
>  
> So my advice, don’t delete your user records.
>  
> --Miloche
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
>  > On Behalf 
> Of Noah Huffman
> Sent: Wednesday, August 1, 2018 10:29 AM
> To: Archivesspace Users Group 
>  >
> Subject: Re: [Archivesspace_Users_Group] Questions about user accounts & 
> permissions
>  
> Hi Christie,
>  
> I created a new permissions group called “Expired Users” (morbid, I know). 
> That group has no permissions in the system.
>  
> When students/interns/staff leave our employ, I assign their user account to 
> that group. This way I can keep a record of their username and other user 
> details.
>  
> To answer your first question, I believe the “created_by” and 
> “last_modified_by” fields will still retain usernames even if those users are 
> deleted from the system.
>  
> -Noah
>  
> 
> Noah Huffman
> Archivist for Metadata, Systems, and Digital Records
> David M. Rubenstein Rare Book & Manuscript Library
> Duke University | 919-660-5982
> http://library.duke.edu/rubenstein/ 
> 
>  
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> 

[Archivesspace_Users_Group] Finding Air Filing Title sort [was: Yale Library ASpace PUI Usability Testing Final Report + Results]

2018-08-02 Thread Majewski, Steven Dennis (sdm7g)

I usually agree with the notion that you shouldn’t try modifying resources 
directly in MySQL unless you know what you’re doing. 
That’s because, when you’re dealing with linked resources, you need to define 
some complicated views using multiple JOINs in MySQL to follow those linkages 
so that parents and children all get updated properly. The backend API resolves 
these links for you in most cases, so it’s simpler to use the API. 

However, this is one of those cases where you would just be modifying one MySQL 
resource field based on another in the same record, so no extra link resolution 
required. Simpler to update in MySQL and then trigger a Solr reindex. ( Because 
making changed directly in MySQL bypasses the indexer notifications. ) Also a 
lot more efficient if you’ve got a lot of resources. 

— Steve. 



> On Aug 2, 2018, at 2:56 PM, Custer, Mark  wrote:
> 
> That’s actually a really good use case for using the ASpace API.  The Finding 
> Aid Title field could be moved (or duplicated) in the Filing Title field with 
> a sleek script!
>  
>  
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
> Hilton, Adrien
> Sent: Thursday, 02 August, 2018 11:42 AM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Yale Library ASpace PUI Usability 
> Testing Final Report + Results
>  
> Hi Mark, 
>  
> Yeah, legacy practice across Harvard was not to use Finding Aid Filing Title, 
> just Finding Aid Title, which was formatted like, “Last Name, First Name. 
> First Name Last Name papers: Guide.”
>  
> But thanks for the link, that might help us develop a solution.
>  
> Best wishes, 
> Adrien
>  
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
>  > On Behalf 
> Of Custer, Mark
> Sent: Thursday, August 02, 2018 11:00 AM
> To: Archivesspace Users Group 
>  >
> Subject: Re: [Archivesspace_Users_Group] Yale Library ASpace PUI Usability 
> Testing Final Report + Results
>  
> Hi Adrien,
>  
> Right now, the logic for this is the same in the staff interface as it is in 
> the public interface.  If the record is a resource, and if that resource 
> record has a Finding Aid Filing Fitle, then the filing title is what’s used 
> for sorting.  If there’s no filing title, then the resource title is used 
> (not the finding aid title; and I assume that decision was made when ASpace 
> was created since often the finding aid title proper will have things like 
> “Guide to the…” or “Inventory of” etc. at the very beginning). 
>  
> Here’s where that logic happens in the indexer:
>  
> https://github.com/archivesspace/archivesspace/blob/master/indexer/app/lib/indexer_common.rb#L888-L890
>  
> 
>  
> I hope that helps (and I hope the bit about the indexer above is correct, but 
> I’m pretty sure that it is).  But if you put the title as you want it to be 
> sorted in the “finding aid filing title” in the staff interface, then you 
> should be all set.  For instance, the “Bradford Edward Ableson Papers” sorts 
> before “Accelerator Laboratories, Yale University, photographs” in our 
> instance  because we have the following recorded in the Finding Aid Filling 
> Title in the staff interface:  “Ableson (Bradford Edward) Papers”
>  
> Also, I agree that the report that Eve shared looks great!!!
>  
> Mark
>  
>  
>  
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org 
> ] On Behalf 
> Of Hilton, Adrien
> Sent: Thursday, 02 August, 2018 10:29 AM
> To: Archivesspace Users Group 
>  >
> Subject: Re: [Archivesspace_Users_Group] Yale Library ASpace PUI Usability 
> Testing Final Report + Results
>  
> Hi Eve, 
>  
> Congratulations, this looks great!
>  
> A question: your collections browse list is alphabetical by something other 
> than the first word of the title that’s listed, creator last name, for 
> instance. What field are you sorting this 

Re: [Archivesspace_Users_Group] Customization of PUI

2018-07-19 Thread Majewski, Steven Dennis (sdm7g)

Yes. See: 

  
https://github.com/archivesspace/archivesspace/tree/master/public#main-navigation-menu
 


and:

  
https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L476
 



So, for example, we don’t have any classifications / record_groups, so instead 
of having a menu item that shows no results,
we have removed that item by adding this to our config/config.rb : 

AppConfig[:pui_hide][:classifications] = true   # disable from nav-bar 
until it's populated with something


You can change the wording for many of the labels by adding a locales file to 
local public plugin that overrides some of the values set in public en.yml 

See: 
   
https://github.com/archivesspace/archivesspace/blob/master/public/config/locales/en.yml
 

and:
   
https://github.com/archivesspace/archivesspace/blob/master/CUSTOMIZING_THEMING.md#changing-a-few-of-the-text-labels-or-messages
 



— Steve. 



> On Jul 19, 2018, at 8:52 PM, Isabella O'Neill  wrote:
> 
> Is there a solution to customizing the menu bar in the PUI associated with 
> ArchivesSpace version 2.3.2 and higher? We would like to suppress or remove 
> some of the menu options as well change wording in the default labels.   
> 
> Thanks for your help.
> 
> Isabella
> 
> -- 
> Isabella O'Neill
> Head, Special Collections and University Archivist 
> Library and Information Technology
> Bertrand Library
> Bucknell University
> Lewisburg, PA  17837
> (570) 577-3101
> Fax (570) 577-3313
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Resource Template Issue

2018-07-13 Thread Majewski, Steven Dennis (sdm7g)
I believe there is an issue with the three states of the option ( true | false 
| nil ) using a two state indicator to change and display the setting. 
Initially the settings are nil. If you have ever turned them on and then off 
again, the setting will be false.
Nil and false display the same in the UI, but work differently falling thru the 
precedence of global, repo, and user settings. 
Nil falls thru to the next level setting. False stops lookup. 

— Steve. 


> On Jul 13, 2018, at 11:43 AM, Danielle Butler  wrote:
> 
> I had it set in Global, but not Repository specific. It worked once I set it 
> there.
>  
> Thank you for your help!
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
> Busch, Ed
> Sent: Friday, July 13, 2018 10:38 AM
> To: Archivesspace Users Group 
> 
> Subject: Re: [Archivesspace_Users_Group] Resource Template Issue
>  
> Do you have Pre-populate Records? Toggled in the General Settings section of 
> Preferences. It’s under the menu where you login/logoff. 
>  
> Ed Busch
> Electronic Records Archivist
> MSU Archives
> Conrad Hall, Room 101
> 888 Wilson Road
> East Lansing, MI 48824
> 517-884-6438
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
>  
>  > On Behalf 
> Of Danielle Butler
> Sent: Friday, July 13, 2018 11:31 AM
> To: archivesspace_users_group@lyralists.lyrasis.org 
> 
> Subject: [Archivesspace_Users_Group] Resource Template Issue
>  
> Hello all,
>  
> I cannot find what I assume is an obvious answer to this issue in any 
> documentation or previous messages to the list.
>  
> I am having trouble getting a basic resource template to populate in a new 
> resource record. I have created the template, and when I close out of ASpace, 
> and go back into the template, all of the pre-populated information appears, 
> but when a new resource is created the template isn’t applied. Is there a 
> step I am missing?
>  
> This is happening in the Create>Resource function. I am not spawning from an 
> accession.
>  
> Thanks in advance for any help you can provide,
>  
> Danielle Butler, CA | Archivist
> Butler Center for Arkansas Studies | Central Arkansas Library System
> www.butlercenter.org 
> 
> 100 Rock Street
> Little Rock, AR 72201
> 501-320-5724
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] version string

2018-06-25 Thread Majewski, Steven Dennis (sdm7g)

curl to the root of the backend server ( port 8089 by default ) 
( No authentication necessary for “/“ , so you don’t need login credentials. ) 

curl http://localhost:8089/  
{
  "databaseProductName": "MySQL",
  "databaseProductVersion": "5.1.73",
  "ruby_version": "2.3.0",
  "host_os": "linux",
  "host_cpu": "x86_64",
  "build": "java1.7",
  "archivesSpaceVersion": "v2.4.1"
}


> On Jun 25, 2018, at 11:34 AM, Daniel Sprouse  wrote:
> 
> what is the quickest way to pull a version.major-release.minor-release string 
> from archivesspace at the command line?
> Any chance that the version could be added as on option in archivesspace.sh, 
> like having archivesspace.sh[start|status|version|stop|restart] ?
> 
> Daniel Sprouse, Linux Administrator
> Texas State Library & Archives Commission
> G 19.01  tel: 512-463-5482
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Does the API endpoint for PDFs work?

2018-05-16 Thread Majewski, Steven Dennis (sdm7g)


> On May 16, 2018, at 11:51 AM, Celia Caust-Ellenbogen 
> <ccaus...@swarthmore.edu> wrote:
> 
> Thanks, Steve, for the tip! Validating the EAD showed me an unescaped 
> ampersand that was causing the problem.
> 
> I'm worried there might be more culprits like this lurking in our 
> database...does anyone know of an existing script to check for rogue 
> unencoded special characters?
> 
> And I am still curious about the API endpoint for EAD...has anyone used this 
> successfully? Is the problem specific to me or should I create a JIRA ticket?
> 

Yes. I’ve been using it. All of the outstanding issues I’ve seen have been 
content dependent, and are due to that particular content producing malformed 
EAD that fails on the next step. It might be good to collect some examples of 
the different failure modes. 
Two others that I recall seeing ( unfortunately, I don’t have saved examples at 
hand, so just going by memory and missing some details) : 

  If a note contains mixed content, like title or emphasis tags, especially if 
the tag begins an implicit paragraph, it can serialize the output with the tags 
overlapping rather than embedded. 

  If a note or resource is marked published, but some inner note that is 
required to complete the EAD serialization is unpublished, and export 
unpublished is not selected, it can produce EAD that doesn’t validate due to 
the missing element. ( I really wish I could recall or reconstruct the exact 
elements that this occurred on! ) 

If you are trying to script PDF production using the API, it may be better to 
export EAD and and run the other steps ( validation, as-ead-pdf.xsl stylesheet, 
FOP processor ) in the script that is calling the ASpace API. 


— Steve. 



> On Tue, May 15, 2018 at 4:19 PM, Majewski, Steven Dennis (sdm7g) 
> <sd...@virginia.edu <mailto:sd...@virginia.edu>> wrote:
> Try exporting the EAD and validating. 
> There are still some cases where it exports malformed XML in some cases where 
> these is mixed content in a note.
> The staff PDF export, first exports EAD which then goes to the as-ead-pdf.xsl 
> stylesheet and then to the FOP processor. 
> Feeding badly formed XML to the stylesheet will fail, and the error messages 
> don’t seem to be caught. 
> 
> — Steve. 
> 
> 
> 
>> On May 15, 2018, at 4:12 PM, Celia Caust-Ellenbogen <ccaus...@swarthmore.edu 
>> <mailto:ccaus...@swarthmore.edu>> wrote:
>> 
>> This is on 2.3.2. I can print PDFs manually from the PUI but when I try to 
>> automate printing via the API, I get these blank PDFs.
>> 
>> I'm doing all this because I have a particular resource record that is 
>> mysteriously giving me an error message when I try to print a PDF from the 
>> PUI (this one: 
>> http://archives.tricolib.brynmawr.edu/repositories/9/resources/5678 
>> <http://archives.tricolib.brynmawr.edu/repositories/9/resources/5678>) and I 
>> am trying to understand what might be causing the problem.
>> 
>> Thanks in advance for any advice or insight!
>> 
>> On Tue, May 15, 2018 at 3:05 PM, Seth Shaw <seth.s...@unlv.edu 
>> <mailto:seth.s...@unlv.edu>> wrote:
>> What version do you have running? PDF export via API broke with 2.2.0 but 
>> was fixed in 2.3.0.
>> 
>> On Tue, May 15, 2018 at 11:55 AM, Celia Caust-Ellenbogen 
>> <ccaus...@swarthmore.edu <mailto:ccaus...@swarthmore.edu>> wrote:
>> Hello all,
>> 
>> Has anyone had luck using the API endpoint to print a PDF? I am getting 
>> blank PDFs that have appropriate bookmarks (different for each PDF I print, 
>> appropriate headings for the specific resource) but no text in the document. 
>> Am I doing this wrong or does the endpoint not work? 
>> 
>> I noticed the API documentation says "EAD" instead of "PDF" ([:GET] 
>> /repositories/:repo_id/resource_descriptions/:id.pdfDescription: Get 
>> an EAD representation of a Resource) so I suspect this feature may not be 
>> fully developed.
>> 
>> Thanks!
>> Celia
>> 
>> -- 
>> Celia Caust-Ellenbogen 
>> Friends Historical Library of Swarthmore College 
>> <http://swarthmore.edu/friends-historical-library>
>> 610-328-8496
>> ccaus...@swarthmore.edu <mailto:ccaus...@swarthmore.edu>
>> she/her/hers <https://www.mypronouns.org/she-her>
>> 
>> 
>> 
>> ___
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group@lyralists.lyrasis.org 
>> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
>> &

Re: [Archivesspace_Users_Group] Does the API endpoint for PDFs work?

2018-05-15 Thread Majewski, Steven Dennis (sdm7g)
Try exporting the EAD and validating. 
There are still some cases where it exports malformed XML in some cases where 
these is mixed content in a note.
The staff PDF export, first exports EAD which then goes to the as-ead-pdf.xsl 
stylesheet and then to the FOP processor. 
Feeding badly formed XML to the stylesheet will fail, and the error messages 
don’t seem to be caught. 

— Steve. 



> On May 15, 2018, at 4:12 PM, Celia Caust-Ellenbogen  
> wrote:
> 
> This is on 2.3.2. I can print PDFs manually from the PUI but when I try to 
> automate printing via the API, I get these blank PDFs.
> 
> I'm doing all this because I have a particular resource record that is 
> mysteriously giving me an error message when I try to print a PDF from the 
> PUI (this one: 
> http://archives.tricolib.brynmawr.edu/repositories/9/resources/5678 
> ) and I 
> am trying to understand what might be causing the problem.
> 
> Thanks in advance for any advice or insight!
> 
> On Tue, May 15, 2018 at 3:05 PM, Seth Shaw  > wrote:
> What version do you have running? PDF export via API broke with 2.2.0 but was 
> fixed in 2.3.0.
> 
> On Tue, May 15, 2018 at 11:55 AM, Celia Caust-Ellenbogen 
> > wrote:
> Hello all,
> 
> Has anyone had luck using the API endpoint to print a PDF? I am getting blank 
> PDFs that have appropriate bookmarks (different for each PDF I print, 
> appropriate headings for the specific resource) but no text in the document. 
> Am I doing this wrong or does the endpoint not work? 
> 
> I noticed the API documentation says "EAD" instead of "PDF" ([:GET] 
> /repositories/:repo_id/resource_descriptions/:id.pdfDescription: Get 
> an EAD representation of a Resource) so I suspect this feature may not be 
> fully developed.
> 
> Thanks!
> Celia
> 
> -- 
> Celia Caust-Ellenbogen 
> Friends Historical Library of Swarthmore College 
> 
> 610-328-8496
> ccaus...@swarthmore.edu 
> she/her/hers 
> 
> 
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 
> 
> 
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 
> 
> 
> 
> 
> -- 
> Celia Caust-Ellenbogen 
> Friends Historical Library of Swarthmore College 
> 
> 610-328-8496
> ccaus...@swarthmore.edu 
> she/her/hers 
> 
> 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Test server / production server ArchivesSpace question.

2018-05-01 Thread Majewski, Steven Dennis (sdm7g)

The mysqldump is sufficient to restore ArchivesSpace state. 
It will rebuild the solr indexes. That will take a bit longer, but I prefer to 
do a complete clean reindex when cloning production to test. ( There are a 
number of glitches where the first bit of advice is usually to trigger a 
reindex. ) 

The only other state information that isn’t in the mysql database is the log 
info for batch jobs, which is in the data/shared/job_files directories. If 
you’re going to want to access output from old batch processes, you need to 
copy those. 
Typically, I retain those files when updating ArchivesSpace on production, but 
I don’t copy them when cloning production to test. 

— Steve Majewski



> On May 1, 2018, at 10:39 AM, Neal, Rick  wrote:
> 
> Good morning,
>  
> I am having some ArchivesSpace issues and need some advice.
>  
> I have a test instance and a production instance of ArchiveSpace.
>  
> I use version 1.5.1 on both servers.  I use mysql.
>  
> I want to update the test server from the production server.
>  
> A.  I dumped the database with mysqld on the production server.
>  
> B.  I then ran backup.sh on the production server (thinking that I need 
> the index) and got the OUTPUT below at the bottom.  I did not get a zip file 
> created.  I have no idea what happened but I am concerned now that the 
> backup.sh file did something besides simply failing to create a zip file for 
> me to take over to the test sever.  I am concerned that if I restart the 
> service ArchiveSpace will fail.
>  
> C.  I took the database dump and ingested it on the test server.   I 
> stopped and restarted the archivesspace service.  ArchivesSpace doesn’t show 
> up in the browser.  I recovered from a VM backup and have no problems with 
> the test server but of course it did not get updated.
>  
> Questions:
> 1.   How concerned should I be about item B above?  I took the database 
> dump so I have that but I don’t know anything about whether the index is 
> damaged or how to fix it if it is.  Again I am concerned that ArchivesSpace 
> will not come back up if I restart the service.
> 2.   What is the proper process for updating a test instance?
>  
> Thanks for your help
>  
> Rick Neal
> University of Richmond
>  
>  
>  
> OUTPUT
>  
> [root@server scripts]# ./backup.sh --output /dir/backup-20180501.zip
> Loading ArchivesSpace configuration file from path: 
> /dir1/archivesspace/config/config.rb
> Loading ArchivesSpace configuration file from path: 
> /dir1/archivesspace/config/config.rb
> 2018-05-01 10:00:46 -0400: Writing backup to /dir/backup-20180501.zip
> INFO: Previous snapshot status: {"startTime"=>"Tue May 01 10:00:00 EDT 2018", 
> "fileCount"=>42, "status"=>"success", "snapshotCompletedAt"=>"Tue May 01 
> 10:00:00 EDT 2018", "snapshotName"=>nil}; snapshot:
> IOError: No such file or directory
>   create at 
> /dir1/archivesspace/gems/gems/jruby-jars-1.7.21/lib/jruby-stdlib-1.7.21.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:0
> initialize19 at org/jruby/ext/tempfile/Tempfile.java:95
>  new at org/jruby/RubyIO.java:853
> get_tempfile at 
> /dir1/archivesspace/gems/gems/rubyzip-1.0.0/lib/zip/file.rb:410
>   on_success_replace at 
> /dir1/archivesspace/gems/gems/rubyzip-1.0.0/lib/zip/file.rb:401
>   commit at 
> /dir1/archivesspace/gems/gems/rubyzip-1.0.0/lib/zip/file.rb:294
>close at 
> /dir1/archivesspace/gems/gems/rubyzip-1.0.0/lib/zip/file.rb:322
> open at 
> /dir1/archivesspace/gems/gems/rubyzip-1.0.0/lib/zip/file.rb:100
>   __ensure__ at ../launcher/backup/lib/backup.rb:115
>   backup at ../launcher/backup/lib/backup.rb:111
> main at ../launcher/backup/lib/backup.rb:150
>   (root) at ../launcher/backup/lib/backup.rb:154
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Component Unique Identifiers

2018-04-12 Thread Majewski, Steven Dennis (sdm7g)

If I understand what you want correctly:

Copy public/app/views/shared/_idbadge.html.erb into 
plugins/local/public/views/shared/ 
( assuming local plugins are enabled ) and add a line to display 
result.identifier, for example:

$ diff -U 6   public/app/views/shared/_idbadge.html.erb   
plugins/local/public/views/shared/_idbadge.html.erb 
--- public/app/views/shared/_idbadge.html.erb   2018-04-12 14:59:32.0 
-0400
+++ plugins/local/public/views/shared/_idbadge.html.erb 2018-04-12 
14:59:20.0 -0400
@@ -17,12 +17,13 @@
 <%= (props.fetch(:full,false)? '' : '').html_safe %>
   <% if !props.fetch(:full,false) %>
   <%== 
result.display_string %>
   <% else %>
 <%== result.display_string %>
   <% end %>
+  <%= result.identifier %>
 <%= (props.fetch(:full,false)? '' : '').html_safe %>
 

Since that template is shared in several places, that will add the identifier 
to other resource listings as well. 
digital_object listing already shows identifier next to the badge, so it looks 
a bit redundant there. 
If that’s not what you want, then add some qualifier on result.primary_type.
For archival_objects, identifier will display directly beneath the title in the 
‘Collection Organization’ tab of the resource.

— Steve Majewski



> On Apr 12, 2018, at 10:18 AM, Linda Hocking 
>  wrote:
> 
> Good morning,
>  
> We’ve just linked our ArchivesSpace instance to our website and are trying to 
> move our users away from Archon. There’s one major hurdle. We migrated from 
> Archon to ArchivesSpace with the first migration tool, and our only container 
> instances are nonsensical records created by the import.  In most cases, our 
> intellectual description matches up with the  physical location, which means 
> if I can see the series number and folder number I can find the item. I’m 
> hoping to find out whether we can somehow force the public interface to 
> display the component unique identifiers which do not appear when I look at 
> finding aids in the public interface (or in the staff interface without 
> viewing the particular record).
>  
> It’s going to be quite some time before I can modify every finding aid and 
> add containers, so I’m hoping in the meantime there is a temporary fix that 
> doesn’t require me logging into the staff interface (or going back to Archon) 
> every time a patron requests something. I wonder whether other Archon users 
> are having this problem, and would welcome any suggestions. Thank you!
>  
> Linda
>  
> Linda M. Hocking, CA
> Curator of Library & Archives
> Litchfield Historical Society
> P.O. Box 385
> Litchfield, CT 06759
> 860-567-4501
> http://www.litchfieldhistoricalsociety.org 
> 
> archiv...@litchfieldhistoricalsociety.org 
> 
> eboardman.tumblr.com 
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Finding Aid pdf's are blank post AS software update

2018-04-11 Thread Majewski, Steven Dennis (sdm7g)

It’s working for me in v2.3.2, but I believe it was also working in 2.3.1 as 
well. 
However, PDF generation in the staff webapp is dependent on the resource 
producing valid EAD that gets piped to XSLT-FO stylesheet, so if you are having 
problems, it’s a good idea to export EAD first and try to validate the xml. 

I know of some cases where mixed content in a resource note will generate 
invalid EAD. 

— Steve Majewski


> On Apr 10, 2018, at 4:40 PM, Prestinary, Patricia 
>  wrote:
> 
> Hello AS users group,
>  
> I searched the tech support archives and haven’t found this issue posted yet.
>  
> We have been unable to Export Finding Aids pdf’s since the last update 
> (v2.3.1) . The system generates a job and creates a pdf with some of the 
> finding aid data, but most of the pages are blank.
>  
> Does the latest update fix this particular issue? I am hesitant to do any 
> additional updates until we can address this issue.
>  
> Best,
> Patricia
>  
> Patricia Prestinary
> Special Collections Librarian & Archivist
> CSU, Fullerton | Pollak Library | PLS-352
> University Archives & Special Collections
> (657) 278-4751
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Configuring barcode digits?

2018-03-16 Thread Majewski, Steven Dennis (sdm7g)

The generate_accession_identifiers plugin is an example of how to load 
javascript conditionally for a particular controller and action. For your case, 
you probably want to catch the top_containers controller for new and edit 
actions.

https://github.com/archivesspace/archivesspace/blob/master/plugins/generate_accession_identifiers/frontend/views/layout_head.html.erb

<% if controller.controller_name == 'accessions' && controller.action_name == 
'new' %>
  <%= javascript_include_tag 
"#{@base_url}/assets/generate_accession_identifiers.js" %>
<% end %>

Inspecting the form html, the field you want to validate is: $( 
‘input#top_container_barcode_’ ) 

You can google many examples of how to validate forms using jquery.
Here’s one example:

https://formden.com/blog/validate-contact-form-jquery


— Steve M. 


> On Mar 16, 2018, at 11:31 AM, Rachel Aileen Searcy  
> wrote:
> 
> Hello everyone,
> 
> We're interested in configuring the barcode field of the top container record 
> to enforce validation for the number of digits. It looks like this was 
> included in the original development of the container management 
> functionality 
> , 
> but after poking around a bit in the system and available documentation I 
> don't see any further information. If anyone has done this locally, could you 
> be so kind as to tell me how you made this happen?
> 
> Thanks very much (and in the spirit of the season, go raibh maith agat ),
> 
> Rachel Searcy
> Accessioning Archivist, Archival Collections Management
> New York University Libraries
> 212.998.2539 <> | rachel.sea...@nyu.edu  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] customizing PDF output for PUI

2018-03-16 Thread Majewski, Steven Dennis (sdm7g)
You are correct: The PDF generation from the staff and the public interfaces 
are different and use two completely different toolchains. 

Staff:
Resource -> EAD -> xsl -> fop -> PDF

Public:
Resource -> HTML + CSS -> iText -> PDF 


For public code look at:

https://github.com/archivesspace/archivesspace/blob/master/public/app/controllers/pdf_controller.rb
 


https://github.com/archivesspace/archivesspace/blob/master/public/app/models/finding_aid_pdf.rb
 


It is using the rails view templates, but calling the partials manually to 
leave out the usual HTML headers, footers, menus and page decoration that is 
not wanted in the print version and to explicitly include the child content 
inline rather than as links. 

The iText renderer which generates the PDF from HTML+CSS is a Java library in 
common/lib/itext-2.1.7.js2.jar . 
You can google for API details, but you probably don’t need to get that deep in 
the weeds. 

If you are successful in customizing output, please report back, as we don’t 
yet have any documentation on customization process for PDF output from the 
public size. 


— Steve.



> On Mar 16, 2018, at 9:52 AM, Benn Joseph  wrote:
> 
> Hi all,
> We’re on v2.3.0 and are interested in doing some customizations (adding 
> branding, changing font sizes, reordering content) on the PDF output in our 
> ArchivesSpace public interface. However, we can’t seem to find where to make 
> those changes. Can anyone point me to a directory or config file or something 
> along those lines where we can get started? I remember also hearing at one 
> point about there being a plugin that adds the Biographical Note from an 
> Agent record to the PDF output. We’re very interested in this plugin, but I 
> also wonder if we need to be thinking about this too while we consider these 
> customizations.
>  
> We did discover how to make edits to the PDF output in the staff interface, 
> but these seem to be two separate processes. Or maybe they’re not and I’m 
> missing something obvious!
>  
> Thanks,
> --Benn
>  
> Benn Joseph
> Head of Archival Processing
> Northwestern University Libraries
> Northwestern University
> www.library.northwestern.edu 
> benn.jos...@northwestern.edu 
> 847.467.6581
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] error on v2.2.0 PUI print PDF: InvalidAuthenticityToken

2018-03-16 Thread Majewski, Steven Dennis (sdm7g)


Just for the record: we were missing these two lines documented in 
README_HTTPS.md example in our apache config:

   RequestHeader set X-Forwarded-Proto "https"
   ProxyPreserveHost On

After adding those lines it appears to work properly. 

— Steve M.


> On Jan 23, 2018, at 5:46 PM, Majewski, Steven Dennis (sdm7g) 
> <sd...@virginia.edu> wrote:
> 
> 
> Also discovered that PDF print thru SSL proxy does work in Firefox after 
> googling “authenticity token proxy ssl” 
> and seeing title of this Rails issue:
> 
>  CSRF protection prevents some webkit users from submitting forms · Issue 
> #21948 · rails/rails <https://github.com/rails/rails/issues/21948>
> 
> I’ve been seeing the bug in Safari, and you’ve been seeing it in Chrome. 
> Both, I believe, are webkit based.
> 
> Long discussion thread that I haven’t digested yet, so I’m not sure if that 
> is the problem here. 
> That same google search brings up some other issues that may be related to 
> not passing all of the headers thru proxy. 
> 
> https://github.com/rails/rails/issues/22965 
> <https://github.com/rails/rails/issues/22965>
> 
> 
> — Steve M. 
> 
> 
> 
>> On Jan 23, 2018, at 5:15 PM, Majewski, Steven Dennis (sdm7g) 
>> <sd...@virginia.edu <mailto:sd...@virginia.edu>> wrote:
>> 
>> 
>> Thanks. Yes: I’m still seeing the problem. No: no solution so far. 
>> The fact that I was only seeing it on production limited my ability to 
>> debug. 
>> Now that you’ve found it’s linked to SSL proxy, I will try to set up test 
>> machines to reproduce the problem.  
>> 
>> — Steve. 
>> 
>> 
>> 
>>> On Jan 23, 2018, at 4:25 PM, Chelsea Lobdell <clobd...@swarthmore.edu 
>>> <mailto:clobd...@swarthmore.edu>> wrote:
>>> 
>>> Update: we were able to identify that this error was happening only when 
>>> running the application over SSL. Accessing the site over non-SSL allowed 
>>> the print function to work. 
>>> 
>>> - Chelsea
>>> 
>>> ---
>>> Chelsea Lobdell
>>> Library Web Developer/ Swarthmore College
>>> clobd...@swarthmore.edu <mailto:clobd...@swarthmore.edu> / (610)690-6818
>>> 
>>> On Tue, Jan 23, 2018 at 3:45 PM, Chelsea Lobdell <clobd...@swarthmore.edu 
>>> <mailto:clobd...@swarthmore.edu>> wrote:
>>> Hi Aspace! 
>>> 
>>> I saw this post on the user group but was not able to find the thread in my 
>>> email so I apologize for replying off thread. 
>>> 
>>> We are seeing this same error and we are running v.2.2.2 However, the error 
>>> seems to be browser specific as it only happens in Chrome. Here's the log 
>>> output: 
>>> 
>>> Jan 23, 2018 3:32:31 PM 
>>> org.eclipse.jetty.server.handler.ContextHandler$Context log
>>> INFO: W, [2018-01-23T15:32:31.474750 #21127]  WARN -- : 
>>> [e1415e7e-47c5-4776-893f-cb5a7b33a4d9] Can't verify CSRF token authenticity.
>>> 
>>> Jan 23, 2018 3:32:31 PM 
>>> org.eclipse.jetty.server.handler.ContextHandler$Context log
>>> INFO: I, [2018-01-23T15:32:31.478068 #21127]  INFO -- : 
>>> [e1415e7e-47c5-4776-893f-cb5a7b33a4d9] Completed 422 Unprocessable Entity 
>>> in 6ms
>>> 
>>> Jan 23, 2018 3:32:31 PM 
>>> org.eclipse.jetty.server.handler.ContextHandler$Context log
>>> INFO: F, [2018-01-23T15:32:31.485699 #21127] FATAL -- : 
>>> [e1415e7e-47c5-4776-893f-cb5a7b33a4d9]
>>> 
>>> Jan 23, 2018 3:32:31 PM 
>>> org.eclipse.jetty.server.handler.ContextHandler$Context log
>>> INFO: F, [2018-01-23T15:32:31.486567 #21127] FATAL -- : 
>>> [e1415e7e-47c5-4776-893f-cb5a7b33a4d9] 
>>> ActionController::InvalidAuthenticityToken 
>>> (ActionController::InvalidAuthenticityToken):
>>> 
>>> Jan 23, 2018 3:32:31 PM 
>>> org.eclipse.jetty.server.handler.ContextHandler$Context log
>>> INFO: F, [2018-01-23T15:32:31.487220 #21127] FATAL -- : 
>>> [e1415e7e-47c5-4776-893f-cb5a7b33a4d9]
>>> 
>>> Steve, were you ever able to find a solution for this? Has anybody else 
>>> encountered this error when trying to print a PDF of a collection in 
>>> Chrome? 
>>> 
>>> Thanks, 
>>> Chelsea
>>> ---
>>> Chelsea Lobdell
>>> Library Web Developer/ Swarthmore College
>>> clobd...@swarthmore.edu <mailto:clobd...@swarthmore.edu> / (610)690-6818 
>>> <tel:(610)%20690-6818>
>>> _

Re: [Archivesspace_Users_Group] Rails help for font-awesome classes ?

2018-02-21 Thread Majewski, Steven Dennis (sdm7g)

Just to confirm: 

Production version of v2.3.0 downloaded zip file release from github:

gems/gems/font-awesome-sass-4.7.0/

Development gems, downloaded via ./build/run bootstrap:

build/gems/gems/font-awesome-sass-5.0.6.2/

— Steve. 



> On Feb 21, 2018, at 11:08 AM, Fox, Bobbi <bobbi_...@harvard.edu> wrote:
> 
> Hey, Steve,
>  
> Believe me, I feel you :-(
>  
> Cheers,
> Bobbi
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
> Majewski, Steven Dennis (sdm7g)
> Sent: Wednesday, February 21, 2018 11:07 AM
> To: Archivesspace Users Group 
> <archivesspace_users_group@lyralists.lyrasis.org>
> Subject: Re: [Archivesspace_Users_Group] Rails help for font-awesome classes ?
>  
> Thank you, Bobbi. This one had me scratching my head. 
> I hate finding surprises moving changes from test to production. 
>  
> — Steve. 
>  
>  
> On Feb 21, 2018, at 10:49 AM, Fox, Bobbi <bobbi_...@harvard.edu 
> <mailto:bobbi_...@harvard.edu>> wrote:
>  
> Hi,
>  
> Since I’m the one (for my sins) who implemented the use of Font Awesome icons 
>  (https://fontawesome.com <https://fontawesome.com/>) in the PUI, I did a 
> little digging.
>  
> FontAwesome has both changed what they make available as a free icon, and 
> also is deprecating some of their class names. 
>  
> ‘fa-file-image-o’ produced a “light” version of the file-image icon, and is 
> now no longer available as a free icon.  (This is true for any icon that ends 
> in –o)
>  
> Undoubtedly the reason you see it in the production version is due to the 
> fact that the icons were downloaded and packaged up *before* this change on 
> the part of FontAwesome, while your development mode probably did a download 
> more recently.
>  
> I don’t have an immediate solution to getting the old icons into the 
> development mode; sorry!
>  
> I guess I need to file a JIRA on this, as well.
>  
> --Bobbi
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org 
> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>] On Behalf 
> Of Majewski, Steven Dennis (sdm7g)
> Sent: Tuesday, February 20, 2018 7:22 PM
> To: Archivesspace Users Group 
> <archivesspace_users_group@lyralists.lyrasis.org 
> <mailto:archivesspace_users_group@lyralists.lyrasis.org>>
> Subject: [Archivesspace_Users_Group] Rails help for font-awesome classes ?
>  
>  
> I expect that this has something to do with how stylesheet assets are 
> compiled in Rails, but can anyone explain it to me ? 
>  
> Running in development mode, testing changes to digital object views with 
> IIIF plugin, I noticed I was not seeing the font-awesome icon for the 
> 'fa-file-image-o’ class styles.
>  
>  
>  
> After poking around in the browser console and stylesheets, I discovered that 
> by removing the “-o” suffix, it worked again:
>  
>  
>  
>  
> Initially, I thought this may have been a bug introduced in some recent 
> changes to v2.3.0, but git log didn’t show any likely changes and when I 
> deployed my plugin changes to production, they icons were NOT displayed. 
>  
>  
> When I added the “-o” suffix back, they worked on production, but failed 
> running in development. 
> ( development = ./build/run public:devserver ) 
>  
>  
> The badges on the public resource pages use “fa-book” class for citation 
> badge and “fa-file-pdf-o” for print badge.
> Both of those display properly on production site, but the print badge is 
> missing in development mode. 
>  
>  
>  
> BTW: I was attempting to add appropriate icons switched by d_file[‘material’] 
>  
>  
> — Steve Majewski
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@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@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group



smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Rails help for font-awesome classes ?

2018-02-21 Thread Majewski, Steven Dennis (sdm7g)
Thank you, Bobbi. This one had me scratching my head. 
I hate finding surprises moving changes from test to production. 

— Steve. 


> On Feb 21, 2018, at 10:49 AM, Fox, Bobbi <bobbi_...@harvard.edu> wrote:
> 
> Hi,
>  
> Since I’m the one (for my sins) who implemented the use of Font Awesome icons 
>  (https://fontawesome.com <https://fontawesome.com/>) in the PUI, I did a 
> little digging.
>  
> FontAwesome has both changed what they make available as a free icon, and 
> also is deprecating some of their class names. 
>  
> ‘fa-file-image-o’ produced a “light” version of the file-image icon, and is 
> now no longer available as a free icon.  (This is true for any icon that ends 
> in –o)
>  
> Undoubtedly the reason you see it in the production version is due to the 
> fact that the icons were downloaded and packaged up *before* this change on 
> the part of FontAwesome, while your development mode probably did a download 
> more recently.
>  
> I don’t have an immediate solution to getting the old icons into the 
> development mode; sorry!
>  
> I guess I need to file a JIRA on this, as well.
>  
> --Bobbi
>  
> From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
> [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
> Majewski, Steven Dennis (sdm7g)
> Sent: Tuesday, February 20, 2018 7:22 PM
> To: Archivesspace Users Group 
> <archivesspace_users_group@lyralists.lyrasis.org>
> Subject: [Archivesspace_Users_Group] Rails help for font-awesome classes ?
>  
>  
> I expect that this has something to do with how stylesheet assets are 
> compiled in Rails, but can anyone explain it to me ? 
>  
> Running in development mode, testing changes to digital object views with 
> IIIF plugin, I noticed I was not seeing the font-awesome icon for the 
> 'fa-file-image-o’ class styles.
>  
>  
>  
> After poking around in the browser console and stylesheets, I discovered that 
> by removing the “-o” suffix, it worked again:
>  
>  
>  
>  
> Initially, I thought this may have been a bug introduced in some recent 
> changes to v2.3.0, but git log didn’t show any likely changes and when I 
> deployed my plugin changes to production, they icons were NOT displayed. 
>  
>  
> When I added the “-o” suffix back, they worked on production, but failed 
> running in development. 
> ( development = ./build/run public:devserver ) 
>  
>  
> The badges on the public resource pages use “fa-book” class for citation 
> badge and “fa-file-pdf-o” for print badge.
> Both of those display properly on production site, but the print badge is 
> missing in development mode. 
>  
>  
>  
> BTW: I was attempting to add appropriate icons switched by d_file[‘material’] 
>  
>  
> — Steve Majewski
>  
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>


smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Rails help for font-awesome classes ?

2018-02-20 Thread Majewski, Steven Dennis (sdm7g)

I expect that this has something to do with how stylesheet assets are compiled 
in Rails, but can anyone explain it to me ? 

Running in development mode, testing changes to digital object views with IIIF 
plugin, I noticed I was not seeing the font-awesome icon for the 
'fa-file-image-o’ class styles.

 

After poking around in the browser console and stylesheets, I discovered that 
by removing the “-o” suffix, it worked again:

 


Initially, I thought this may have been a bug introduced in some recent changes 
to v2.3.0, but git log didn’t show any likely changes and when I deployed my 
plugin changes to production, they icons were NOT displayed. 


When I added the “-o” suffix back, they worked on production, but failed 
running in development. 
( development = ./build/run public:devserver ) 


The badges on the public resource pages use “fa-book” class for citation badge 
and “fa-file-pdf-o” for print badge.
Both of those display properly on production site, but the print badge is 
missing in development mode. 



BTW: I was attempting to add appropriate icons switched by d_file[‘material’] 


— Steve Majewski




smime.p7s
Description: S/MIME cryptographic signature
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


  1   2   >