On 11/11/2013 01:50 PM, Theodoros Theodoropoulos wrote:
Hello Esteban,
On 11/11/2013 2:48 μμ, Esteban J. G. Gabancho wrote:
This is happening because this is a virtual field that is not comming
from marc directly.
Running inveniocfg --load-bibfield-conf should solve the problem.
Well, unfortunately it doesn't :(
I even tried truncating PAIR/WORD/PHRASE25 [F/R] indexes and rerun
bibindex, but got the same error.
I was able to reproduce the error in my machine I found what was cousing
it, I atach you a very little patch.
Once you apply it could you please run:
inveniocfg --load-bibfield-conf
dbexec < echo "DELETE FROM bibfmt WHERE format='recjson'"
Cheers,
Esteban.
--
Esteban J. G. Gabancho
Software Engineer
CERN, IT Department, Digital Library Services Section
>From 9f89b1a5bfaeac6ad84f8b3ef37940c6c3ce87fd Mon Sep 17 00:00:00 2001
From: "Esteban J. G. Gabancho" <egaban...@gmail.com>
Date: Mon, 11 Nov 2013 14:21:05 +0100
Subject: [PATCH] BibField: fix number_of_copies field
---
modules/bibfield/etc/atlantis.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/bibfield/etc/atlantis.cfg b/modules/bibfield/etc/atlantis.cfg
index ba9dc12..a2083ea 100644
--- a/modules/bibfield/etc/atlantis.cfg
+++ b/modules/bibfield/etc/atlantis.cfg
@@ -1120,7 +1120,7 @@ _number_of_copies:
calculated:
@parse_first(('recid', 'collection'))
@depends_on(('recid', 'collection.primary'))
- @only_if(('BOOK' in self['collection.primary'],))
+ @only_if(('BOOK' in self.get('collection.primary', []),))
get_number_of_copies(self['recid'])
checker:
check_field_existence(0, 1)
--
1.7.10.4