I do not know how to gather this information without querying the
database. Since an embargo can be set via a policy restriction rather than
in metadata, I would be cautious about querying the metadata fields.
Restricted Items SQL
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/query/selfQueryCommon.php#L251-L260
Restricted Bitstream SQL
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/query/selfQueryCommon.php#L295-L314
You can prefix each of these queries with "select * from item i where 1=1 "
as a test.
Terry
On Fri, Feb 6, 2015 at 9:24 AM, Collier, Aaron <[email protected]>
wrote:
> Hey Guillermo,
>
>
>
> I query SOLR to get this data for a validation script that I wrote:
>
>
>
>
> http://localhost:24091/solr/search/select/?q=dc.date.embargountil:*&fl=handle,dc.date.embargountil&rows=1000000&wt=json
>
>
>
> This makes it pretty easy to parse in PHP and do pretty much anything you
> need with the data.
>
>
>
> *From:* Guillermo Esteban Murillo Goussen [mailto:[email protected]]
> *Sent:* Friday, February 06, 2015 9:12 AM
> *To:* DSpace Tech
> *Subject:* [Dspace-tech] Embargoed items
>
>
>
> Hi folks! Quick question: Is there a way to list all the embargoed items
> or I'll have to dive into the database?
>
>
>
> Thanks a lot,
>
>
>
> Guillermo Murillo Goussen
>
> Universidad de Costa Rica
>
> www.kerwa.ucr.ac.cr
>
>
>
> --
>
> La pureza del alma no se pierde sin consentimiento
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette