Re: [Archivesspace_Users_Group] Generate PDF Background job error

2021-06-17 Thread Blake Carver
"Open quote is expected for attribute "href" associated with an  element type  
"a"."

There's some bad HTML in there. I usually export it to EAD and then just search 
for "href" and look for the bad tags, hopefully it's not a record with 1000 
hrefs in there

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Zachary 
L Pelli 
Sent: Thursday, June 17, 2021 4:45 PM
To: ArchivesSpace List (archivesspace_users_group@lyralists.lyrasis.org) 

Subject: [Archivesspace_Users_Group] Generate PDF Background job error

Hello all,

We encountered the error below when running the "Generate PDF" job on a 
particular resource. Short of looking through every single record in the 
resource for the missing ", is there a way to quickly track down the error?

Generating PDF for x
--
Warning: this resource has not been published
--
org.xml.sax.SAXParseException; lineNumber: 189; columnNumber: 110330; Open 
quote is expected for attribute "href" associated with an  element type  "a".
net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:360)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:456)
org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:317)
RUBY.build(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/document_builder.rb:225)
RUBY.to_fo(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:42)
RUBY.to_pdf(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)
RUBY.run(/var/local/archivesspace/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)
var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
RUBY.run(/var/local/archivesspace/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)
var.local.archivesspace.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.invokeOther31:run(var/local/archivesspace/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//var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
RUBY.start_background_thread(/var/local/archivesspace/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:318)
java.lang.Thread.run(java/lang/Thread.java:748)


Regards,

Zach Pelli
Seton Hall University Libraries
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Generate PDF Background job error

2021-06-17 Thread Zachary L Pelli
Hello all,

We encountered the error below when running the "Generate PDF" job on a 
particular resource. Short of looking through every single record in the 
resource for the missing ", is there a way to quickly track down the error?

Generating PDF for x
--
Warning: this resource has not been published
--
org.xml.sax.SAXParseException; lineNumber: 189; columnNumber: 110330; Open 
quote is expected for attribute "href" associated with an  element type  "a".
net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:360)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:456)
org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:317)
RUBY.build(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/document_builder.rb:225)
RUBY.to_fo(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:42)
RUBY.to_pdf(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)
RUBY.run(/var/local/archivesspace/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)
var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
RUBY.run(/var/local/archivesspace/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)
var.local.archivesspace.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.invokeOther31:run(var/local/archivesspace/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//var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
RUBY.start_background_thread(/var/local/archivesspace/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:318)
java.lang.Thread.run(java/lang/Thread.java:748)


Regards,

Zach Pelli
Seton Hall University Libraries
___
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 Background job error

2021-06-17 Thread Seth Shaw
Also, once you download the EAD, the parse error tells you on what line the
error occurred; "189" in this case. The problem may not be *right there*
but that will give you a starting point for your search.

On Thu, Jun 17, 2021 at 1:52 PM Valerie Addonizio 
wrote:

> I second the tip about exporting to EAD as a inroad to the PDF failure.
> The EAD export itself *may* fail, but the logging may be more specific.
>
>
>
> *From:* archivesspace_users_group-boun...@lyralists.lyrasis.org <
> archivesspace_users_group-boun...@lyralists.lyrasis.org> *On Behalf Of *Blake
> Carver
> *Sent:* Thursday, June 17, 2021 4:50 PM
> *To:* Archivesspace Users Group <
> archivesspace_users_group@lyralists.lyrasis.org>
> *Subject:* Re: [Archivesspace_Users_Group] Generate PDF Background job
> error
>
>
>
> "Open quote is expected for attribute "href" associated with an  element
> type  "a"."
>
>
>
> There's some bad HTML in there. I usually export it to EAD and then just
> search for "href" and look for the bad tags, hopefully it's not a record
> with 1000 hrefs in there
> --
>
> *From:* archivesspace_users_group-boun...@lyralists.lyrasis.org <
> archivesspace_users_group-boun...@lyralists.lyrasis.org> on behalf of
> Zachary L Pelli 
> *Sent:* Thursday, June 17, 2021 4:45 PM
> *To:* ArchivesSpace List (archivesspace_users_group@lyralists.lyrasis.org)
> 
> *Subject:* [Archivesspace_Users_Group] Generate PDF Background job error
>
>
>
> Hello all,
>
>
>
> We encountered the error below when running the "Generate PDF" job on a
> particular resource. Short of looking through every single record in the
> resource for the missing ", is there a way to quickly track down the error?
>
>
>
> Generating PDF for x
>
> --
>
> Warning: this resource has not been published
>
> --
>
> org.xml.sax.SAXParseException; lineNumber: 189; columnNumber: 110330; Open
> quote is expected for attribute "href" associated with an  element type
>  "a".
>
>
> net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:360)
>
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
>
>
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:456)
>
>
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:317)
>
>
> RUBY.build(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/document_builder.rb:225)
>
>
> RUBY.to_fo(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:42)
>
>
> RUBY.to_pdf(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)
>
>
> RUBY.run(/var/local/archivesspace/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)
>
>
> var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
>
>
> RUBY.run(/var/local/archivesspace/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)
>
>
> var.local.archivesspace.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.invokeOther31:run(var/local/archivesspace/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//var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
>
>
> var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
>
>
> RUBY.start_background_thread(/var/local/archivesspace/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:318)
>
> java.lang.Thread.run(java/lang/Thread.java:748)
>
>
>
>
>
> Regards,
>
>
>
> Zach Pelli
>
> Seton Hall University Libraries
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
___
Archivess

Re: [Archivesspace_Users_Group] Generate PDF Background job error

2021-06-17 Thread Valerie Addonizio
I second the tip about exporting to EAD as a inroad to the PDF failure. The EAD 
export itself may fail, but the logging may be more specific.

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Blake 
Carver
Sent: Thursday, June 17, 2021 4:50 PM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Generate PDF Background job error

"Open quote is expected for attribute "href" associated with an  element type  
"a"."

There's some bad HTML in there. I usually export it to EAD and then just search 
for "href" and look for the bad tags, hopefully it's not a record with 1000 
hrefs in there

From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of Zachary L Pelli 
mailto:zachary.pe...@shu.edu>>
Sent: Thursday, June 17, 2021 4:45 PM
To: ArchivesSpace List 
(archivesspace_users_group@lyralists.lyrasis.org)
 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Generate PDF Background job error

Hello all,

We encountered the error below when running the "Generate PDF" job on a 
particular resource. Short of looking through every single record in the 
resource for the missing ", is there a way to quickly track down the error?

Generating PDF for x
--
Warning: this resource has not been published
--
org.xml.sax.SAXParseException; lineNumber: 189; columnNumber: 110330; Open 
quote is expected for attribute "href" associated with an  element type  "a".
net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:360)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:456)
org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:317)
RUBY.build(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/document_builder.rb:225)
RUBY.to_fo(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:42)
RUBY.to_pdf(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)
RUBY.run(/var/local/archivesspace/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)
var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
RUBY.run(/var/local/archivesspace/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)
var.local.archivesspace.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.invokeOther31:run(var/local/archivesspace/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//var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
var.local.archivesspace.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(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
RUBY.start_background_thread(/var/local/archivesspace/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:318)
java.lang.Thread.run(java/lang/Thread.java:748)


Regards,

Zach Pelli
Seton Hall University Libraries
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Using diacritics in ArchivesSpace

2021-06-17 Thread McLaughlin, Brianna Jean
Hi everyone,

I'm probably missing a simple solution, but is there another way to use 
diacritics in ArchivesSpace without copy and pasting from another source? I saw 
some conversation about this in the listserv archives ~6 years ago, but most of 
the links are broken.

Thanks!

Bri McLaughlin, she/her/hers
Visiting Metadata Services Librarian
Indiana University
812-856-3321

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


Re: [Archivesspace_Users_Group] Bulk updating instances with new Top Containers linked to multiple resources

2021-06-17 Thread Yatsonsky, Nicole
Hi Dan,

I think I must have misplaced my brain yesterday and it took your email for me 
to rethink how I was looking at the merge feature.

Yes, you're so right-all I have to do is add the new Top Container to one 
instance in each of the subsequent records after it's initially created and 
then can do a merge feature within the Top Containers of that collection now 
instead of individually. The top containers being linked to multiple resources 
through me for a loop at first, but it's of course that simple.

Really can't thank you enough!

-Nicole

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Dan 
Michelson
Sent: Wednesday, June 16, 2021 4:32 PM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Bulk updating instances with new Top 
Containers linked to multiple resources


[This email originated from outside of UNCW]
Hi Nicole,

What aspect of the merge function wouldn't meet your requirements?  I haven't 
used it for dealing with this specific situation, but it seems like it would 
work perfectly.  Either create a new box A to merge into or update one of the 
existing top container records with the appropriate data and merge the others 
into that one.

Dan

On Wed, Jun 16, 2021 at 1:20 PM Yatsonsky, Nicole 
mailto:yatsons...@uncw.edu>> wrote:
Hi all,

We are condensing several boxes from collections into multiple-collection 
boxes. For example, Collection# 1 Box 1, Collection #2 Box 5, and Collection# 
3, Box 10 will now all be in Box A.

Is there a way to simply replace all instances of Box 1 in Collection 1's 
resource record with Box A, maintaining any child information like folder 
numbers in the Instances, without having to individually click on each archival 
object and update the instance?

There aren't enough archival objects to warrant exporting as a CSV, editing the 
file, and then importing it back, but just enough to sometimes make it a hassle 
in certain resource records. Since these new top containers are linked to 
multiple resource records, I'm also wary of it creating duplicates that way.

Essentially it would be helpful if there was basically a way in the Top 
Containers page to "replace" a box with another, though I don't see anything 
like that, and merge isn't exactly what we're looking for.

Thanks!

Nicole Yatsonsky, CA
Special Collections Library Specialist
Randall Library
UNC Wilmington
910.962.3412

"The great use of a life is to spend it for
something that outlasts it."  ~ William James

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


--
Dan Michelson
Project Manager Archivist
Smith College Special Collections

Special Collections is moving into the new Neilson Library and will be closed 
from May 31st until August 30th. All services will be temporarily unavailable. 
We look forward to reopening in the fall, 2021. Additional information can be 
found on our 
website.
___
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 API- detailed documentation?

2021-06-17 Thread Andrew Morrison
I think the idea is that there is a lot of documentation and many 
examples of Solr queries available online, and that's what most people 
use to when searching via the API. You can build AdvancedSearch objects, 
which the backend will convert to Solr queries, but it is more difficult 
and less powerful.



I'm not entirely clear what you are trying to achieve with your 
chained-terms query, but one thing I can suggest is that the square 
brackets aren't needed between agents and :Collinson. That is inside the 
q parameter, hence part of the the Solr query you are telling 
ArchivesSpace to pass on to Solr, and multi-valued fields aren't 
searched any differently than single-value ones in Solr queries.



Dates applicable to the item (rather than the record) are indexed in a 
"dates" multi-valued field in Solr, but without anything to indicate 
which dates have the label "Creation". If, by policy, you only ever 
catalogue creation dates, you could do a Solr range search on that, but 
that would be quite restrictive on cataloguers. Searching the "json" 
field isn't an option (it isn't indexed for starters) but your client 
script could parse it and discard records that don't match your date 
criteria (it depends what you are doing whether that it practical.) 
Probably what I'd do is customize the indexer so that it populates a 
new, dedicated Solr index field just with creation dates. That way, 
after a re-index, you'd be able to do Solr range queries on that. That 
isn't too difficult to set up, in a plug-in, but it has an ongoing 
maintenance cost of having to test it still works every time you upgrade 
ArchivesSpace.



Also, when experimenting with queries in the Solr admin interface, 
remember to select "edismax" because that is the query parser which 
ArchivesSpace uses by default. It doesn't just give more options, but 
also changes the way "q" and "fq" are interpreted (although not 
radically, in most cases.)



Andrew.



On 16/06/2021 16:15, RENTON Scott wrote:

Hi again folks


I'm wondering if anyone has any detailed documentation for the search 
API, with some examples. The git resource is really good, but it 
doesn't go that deeply into search, and I'm trying to write something 
for internal users interfacing with the API.


Issues I'm trying to resolve most directly- chaining terms with 
agents, and working with dates (I can do some of this with the SOLR 
admin panel, but there are some differences between the syntax, and 
I'm falling down there).


Chaining terms:
Running something like this:
search?type[]=archival_object&page= 1&q=language_enum_s:gla AND 
title:Loch AND certainty_enum_s:approximate AND agents[]:Collinson


It all looks good till I get to the agents- where I get some records 
back which don't have that agent. Is there an easy fix there?


Dates:
I'd like to be able to search where a Date of Creation is greater than 
X but less than Y. However, as that field is in the json object 
returned by Search, I don't think I can logically perform that search 
(as I'd basically be wildcard matching a string)- unless there's a way 
to drill into the json?


Any advice gratefully received!

Thanks
Scott

==

Scott Renton

Digital Library Development & Systems

Floor F East

Argyle House

515219

The University of Edinburgh is a charitable body, registered in 
Scotland, with registration number SC005336. Is e buidheann 
carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, 
àireamh clàraidh SC005336.


___
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