Thanks, Jay, for inquiring about this.
I think I know what happened.
Long story short: This really did work on 9 November 2018, but we subsequently made a change that inadvertently broke this. I can say this definitively because I backed out the change (locally) and it works again.
We need to put our heads together over here and determine how best to address this. I'll let you know once we have a solution.
Yours,
Kevin
-----Original Message-----
From: Program for Cooperative Cataloging <[log in to unmask]> On Behalf Of Shorten, Jay
Sent: Wednesday, September 04, 2019 10:53 AM
To: [log in to unmask]
Subject: Re: [PCCLIST] Searching for authority records I edited
I tried your query again but somehow
contentSource:http://id.loc.gov/vocabulary/organizations/oku AND cdate GT 2019-08-01 AND cdate LT 2019-08-31
doesn't return a smaller result; just everything I would get with http://id.loc.gov/vocabulary/organizations/oku .
Jay Shorten
Cataloger, Monographs and Electronic Resources Associate Professor of Bibliography Description & Access Department University Libraries University of Oklahoma Co-ordinator, Oklahoma (Tornado) NACO Funnel Co-owner, PERSNAME-L, the list about personal names in bibliographic and authority records [log in to unmask]
-----Original Message-----
From: Program for Cooperative Cataloging <[log in to unmask]> On Behalf Of Ford, Kevin
Sent: 05 November 2018 12:19
To: [log in to unmask]
Subject: Re: [PCCLIST] Searching for authority records I edited
Correction!
Nate and I were looking at the code and both noticed that the contentSource only captures the organization that *created* the resource. (We do nothing with the last 040$d entity/code, which feels like an oversight. We're contemplating how best to address that.)
So this query will only return resources *created by* 'oku' and created between those two dates:
contentSource:http://id.loc.gov/vocabulary/organizations/oku AND cdate GT 2018-10-01 AND cdate LT 2018-11-01
Obviously you can still use 'mdate' to query on resource modification date, but it will be unclear if the organization specified in contentSource also modified the resource.
Apologies for the confusion. You're making us look at the code with fresh eyes, which is ultimately a good thing.
Yours,
Kevin
-----Original Message-----
From: Program for Cooperative Cataloging <[log in to unmask]> On Behalf Of Ford, Kevin
Sent: Monday, November 05, 2018 11:47 AM
To: [log in to unmask]
Subject: Re: [PCCLIST] Searching for authority records I edited
Happy surprise, Jay! You can.
You (and I too, actually) have just found an ID.LOC.GOV easter egg. (This is of surprise to me because I put the code in place originally. That code, however, was designed to serve a different purpose.)
Here's a sample search, it locates all the resources in ID either created by or modified by the organization with code 'oku' and created between 1 Oct 2018 and 1 November 2018.
http://id.loc.gov/search/?q=contentSource%3Ahttp%3A%2F%2Fid.loc.gov%2Fvocabulary%2Forganizations%2Foku+AND+cdate+GT+2018-10-01+AND+cdate+LT+2018-11-01
The actual query in the search box is:
contentSource:http://id.loc.gov/vocabulary/organizations/oku AND cdate GT 2018-10-01 AND cdate LT 2018-11-01
AND=boolean AND
GT=Greater Than
LT=Less Than
To locate a record either created or modified by 'oku' and *modified* between 1 Oct 2018 and 1 November 2018, you can change 'cdate' to 'mdate' in the query, like so:
contentSource:http://id.loc.gov/vocabulary/organizations/oku AND mdate GT 2018-10-01 AND mdate LT 2018-11-01
I know this is a little long, but there is a sizeable caveat that is hinted at above but which should be made clear about what's happening when you perform these searches:
contentSource will return resources that have either been *created by* or *modified by* the specified organization. Said another way, the contentSource is not indexed based on role (creator or modifier of the resource). The creation and modification dates, however, are indexed based on the specific type of date.
Take the second example. That sample search will return resources modified between those two dates, but not necessarily modified by 'oku'. 'oku' may have created the resource, say, in August 2018, and someone at 'txu' modified it on 15 October. It would nevertheless show up in the results.
If this is a wider use case that would be of benefit to others (yes/no?), we can consider indexing the contentSource more specifically. That will help with creating a more targeted search of resources at ID either created by or modified by a specific organization during a defined date range.
We can certainly update the documentation at ID [1] to capture these additional search refinement fields (contentSource is documented, but cdate and mdate are not) and strategies (LT and GT).
All the best,
Kevin
[1] http://id.loc.gov/techcenter/searching.html
-----Original Message-----
From: Program for Cooperative Cataloging <[log in to unmask]> On Behalf Of Shorten, Jay
Sent: Monday, November 05, 2018 10:19 AM
To: [log in to unmask]
Subject: Re: [PCCLIST] Searching for authority records I edited
Is there any way to modify this query to narrow down the date range?
Jay Shorten
Cataloger, Monographs and Electronic Resources Associate Professor of Bibliography Description & Access Department University Libraries University of Oklahoma Co-ordinator, Oklahoma (Tornado) NACO Funnel Co-owner, PERSNAME-L, the list about personal names in bibliographic and authority records [log in to unmask]
-----Original Message-----
From: Program for Cooperative Cataloging <[log in to unmask]> On Behalf Of Kevin Ford
Sent: 2 November 2018 2:22 PM
To: [log in to unmask]
Subject: Re: [PCCLIST] Searching for authority records I edited
It is also possible to search the system based purely on organization code. For example:
http://id.loc.gov/search/?q=contentSource%3Ahttp%3A%2F%2Fid.loc.gov%2Fvocabulary%2Forganizations%2Foku&q=
Yours,
Kevin
|