Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more fixes to modify PICA+ records #82

Open
9 of 14 tasks
nichtich opened this issue Mar 26, 2023 · 0 comments
Open
9 of 14 tasks

Add more fixes to modify PICA+ records #82

nichtich opened this issue Mar 26, 2023 · 0 comments

Comments

@nichtich
Copy link
Member

nichtich commented Mar 26, 2023

Here path denotes a PICA Path (such as 003@$0), field a field reference (such as dc.creator), value a string value and contents a field content (e.g. $afoo$bbar).

  • pica_update(path, values|contents, [options]) replace or add subfields or fields (deprecates pica_add and pica_set)
  • pica_replace(path, pattern, value) to search and replace in PICA subfield values with regular expression
  • pica_subfields(code,value,code,value...) or pica_subfields(contents) to set subfields of current field(s)
  • pica_annotate([path,] annotation) to set annotation
  • pica_append([path,] value|contents) to add full field(s) or subfield(s) (maybe not needed)
  • pica_sort([path,] schedule) to sort and reduce to known (sub)fields
  • pica_reduce([path,] schedule) to reduce to known (sub)fields (?)

Existing fixes:

  • pica_add(field, path, [options]) : should be depreacted because of order of arguments
  • pica_set(field, path, [options]) : might be depreacted because of order of arguments. Alternative name?
  • pica_keep(path [, path...])
  • pica_remove([path])
  • pica_map(path, field)
  • pica_tag(tag)
  • pica_occurrence(occurrence)
nichtich added a commit that referenced this issue Aug 11, 2023
nichtich added a commit that referenced this issue Aug 11, 2023
nichtich added a commit that referenced this issue Aug 11, 2023
Changelog diff is:

diff --git a/Changes b/Changes
index acd90b2..0860f19 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Changelog for Catmandu-PICA
 
 {{$NEXT}}
+
+1.16 2023-08-11T07:06:23Z
   - Add Fix: pica_update (#82)
 
 1.15 2023-08-09T19:03:38Z
nichtich added a commit that referenced this issue Aug 18, 2023
nichtich added a commit that referenced this issue Aug 18, 2023
Changelog diff is:

diff --git a/Changes b/Changes
index 6e3b16f..d115031 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Changelog for Catmandu-PICA
 
 {{$NEXT}}
+
+1.17 2023-08-18T06:06:33Z
   - Add Fix: pica_append (#82)
 
 1.16 2023-08-11T07:06:23Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant