projects
/
koha-bibliografija
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(initial)
use agerestriction for 942$u and create index
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 14 Nov 2013 14:17:53 +0000
(15:17 +0100)
committer
Dobrica 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]
patch
|
blob
diff --git a/biblioitems.sql
b/biblioitems.sql
new file mode 100644
(file)
index 0000000..
a857dc6
--- /dev/null
+++ b/
biblioitems.sql
@@ -0,0
+1,4
@@
+update biblioitems set agerestriction = ExtractValue(marcxml,'//datafield[@tag="942"]/subfield[@code="u"]') ;
+
+create index biblioitems_agerestriction on biblioitems(agerestriction) ;
+