use agerestriction for 942$u and create index
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 14 Nov 2013 14:17:53 +0000 (15:17 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 14 Nov 2013 14:17:53 +0000 (15:17 +0100)
Koha can't use additional fields in biblioitems, so we are reusing
column which we don't use

biblioitems.sql [new file with mode: 0644]

diff --git a/biblioitems.sql b/biblioitems.sql
new file mode 100644 (file)
index 0000000..a857dc6
--- /dev/null
@@ -0,0 +1,4 @@
+update biblioitems set agerestriction = ExtractValue(marcxml,'//datafield[@tag="942"]/subfield[@code="u"]') ;
+
+create index biblioitems_agerestriction on biblioitems(agerestriction) ;
+