Thanks! That seems to have solved the issue.

Previously there seemed to be a couple of problems:

 - some collections had typos (regarding case) in the query string
- I'd used queries of the form "Collection:Linguistics" rather than "980:Linguistics" which seems to have had an affect.

BTW are there any references on working with MARC? We need to start adding more metadata to our records - is there a way we can add arbitrary keyword/value pairs?

Thanks again for your fast and accurate feedback.

Regards,

Adrian.

On 20/06/2013 11:30, Tibor Simko wrote:
On Thu, 20 Jun 2013, amo...@epcc.ed.ac.uk wrote:
After depositing an item and waiting for it to be ingested, a record is
correctly created (and can be accessed via /record/x). However the front
page still reads "Search x records for" and doesn't update to x + 1. In
addition, the record cannot be found via search.

This is an indication that your collection setup does not include this
record among the public ones attached to the Home collection.  For
example, if you go to:

    <https://invenio-demo.cern.ch/record/1/export/hm>

you'll see that this record has 980 $a PICTURE as collection indicator.

Looking at the definition of the Pictures collection, you'll see the
following query:

    980:"PICTURE"

This means that when webcoll wakes up and runs and executes this query,
it finds that the record ID 1 belongs to the Pictures collection, and it
updates the Pictures collection cache accordingly.

And since Pictures is attached under Home collection via Multimedia &
Arts collection, at the end record ID 1 can be find by a search starting
from the Home collection.

                                  * * *

Now in your particular case, this chain can be broken in various steps.
E.g. the record is not created with proper collection tag already, or
the collection it is supposed to be in is defined differently and does
not match its mark up, or the record belongs to a good collection but
not attached under the Home collection tree and so not included in the
default search.

You may want to check for things like:

In [1]: from invenio.search_engine import get_all_collections_of_a_record
In [2]: get_all_collections_of_a_record(1)
Out[2]: ['Pictures', 'Atlantis Institute of Fictive Science', 'Multimedia & 
Arts']

Best regards
--
Tibor Simko



--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Reply via email to