-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add identifier search to ArchivesSpace/ATK upload #261
Conversation
066c551
to
fbfcdb7
Compare
|
||
params = tuple(params) | ||
|
||
sql = "SELECT resourceId FROM Resources WHERE ({}) AND resourceLevel in ('recordgrp', 'collection') ORDER BY title".format(clause) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why format in the clause, instead of adding to params?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The params are SQL placeholders; they're not string interpolation, but rather passing parameters to stored procedures. Since this isn't a single value it can't be passed in the params that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, okay. And because this is being considered for an external library you don't want to use an ORM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think so. Converting this to use the ORM would be some extra work, especially since we don't have control over the ATK database structure (and the ATK stuff is happening in a separate database from Archivematica).
Tests for new functionality? |
fbfcdb7
to
9a18d36
Compare
Added ASpace tests. |
👍 |
9a18d36
to
07a8d5b
Compare
Updated to make the search UI clearer. |
07a8d5b
to
7087f1b
Compare
refs #8695
refs #8695
7087f1b
to
f6ac582
Compare
No description provided.