[Bug 37486] New: build_oai_sets.pl should be able to work with just one set
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 Bug ID: 37486 Summary: build_oai_sets.pl should be able to work with just one set Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: dcook@prosentient.com.au QA Contact: testopia@bugs.koha-community.org There are times where you just want to rebuild 1 OAI-PMH set, so it would be good to have build_oai_sets.pl use a param like --spec or --set to just work with one set at a time. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|build_oai_sets.pl should be |Selectively populate |able to work with just one |OAI-PMH set by set_id using |set |build_oai_sets.pl -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |dcook@prosentient.com.au |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 --- Comment #1 from David Cook <dcook@prosentient.com.au> --- Created attachment 175286 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175286&action=edit Bug 37486: Only build OAI-PMH set for one set at a time This change adds a "-s" parameter to build_oai_sets.pl, so that you can selectively build OAI-PMH sets. This is useful when you have many sets, and you just need to build or rebuild 1 set. Test plan: 0. Apply the patch 1. Go to http://localhost:8081/cgi-bin/koha/admin/oai_sets.pl 2. Create setA and setB 3. Add mapping for setA: 245$a is equal to Gairm. 4. Add mapping for setB: 245$a is equal to Continuous delivery / 5. In the database, run the following SQL: select * from oai_sets; 6. Identify the ID for setB 7. Run the following command where XXXX is the ID for setB: perl misc/migration_tools/build_oai_sets.pl -v -s XXXX 8. Note that the only data added to the "oai_sets_biblios" table is for setB 9. prove t/db_dependent/OAI/Sets.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- Created attachment 175287 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=175287&action=edit Bug 37486: Tidy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Architecture, internals, |Web services |and plumbing | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisette@bywatersolutions.co | |m Keywords| |no-sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175286|0 |1 is obsolete| | --- Comment #3 from David Nind <david@davidnind.com> --- Created attachment 176287 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176287&action=edit Bug 37486: Only build OAI-PMH set for one set at a time This change adds a "-s" parameter to build_oai_sets.pl, so that you can selectively build OAI-PMH sets. This is useful when you have many sets, and you just need to build or rebuild 1 set. Test plan: 0. Apply the patch 1. Go to http://localhost:8081/cgi-bin/koha/admin/oai_sets.pl 2. Create setA and setB 3. Add mapping for setA: 245$a is equal to Gairm. 4. Add mapping for setB: 245$a is equal to Continuous delivery / 5. In the database, run the following SQL: select * from oai_sets; 6. Identify the ID for setB 7. Run the following command where XXXX is the ID for setB: perl misc/migration_tools/build_oai_sets.pl -v -s XXXX 8. Note that the only data added to the "oai_sets_biblios" table is for setB 9. prove t/db_dependent/OAI/Sets.t Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175287|0 |1 is obsolete| | --- Comment #4 from David Nind <david@davidnind.com> --- Created attachment 176288 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176288&action=edit Bug 37486: Tidy Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Text to go in the| |This enhancement adds an release notes| |"-s" parameter to | |build_oai_sets.pl, so that | |you can selectively build | |OAI-PMH sets. This is | |useful when you have many | |sets, and you just need to | |build or rebuild one set. | |For example, | |misc/migration_tools/build_ | |oai_sets.pl -v -s XXXX | |(where XXXX = the set ID) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 Mathieu Saby <mathsabypro@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathsabypro@gmail.com --- Comment #5 from Mathieu Saby <mathsabypro@gmail.com> --- By the way, and a bit off topic, I discover that there is a weird discrepancy between IFLA definition of UNIMARC 856 field and the use of UNIMARC in France. IFLA defintion : "This field contains the information required to locate the electronic resource described by the record and/or reference files related to the described resource such as thumbnails and content pages" => the 2d indicator can be used to specify the nature of the link In France we are not supposed to use the 2d indicator, and the 856 field is supposed to contain a link to the ressource itself -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 --- Comment #6 from Mathieu Saby <mathsabypro@gmail.com> --- OH it was a comment for an other bug of course! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #176287|0 |1 is obsolete| | Attachment #176288|0 |1 is obsolete| | --- Comment #7 from David Cook <dcook@prosentient.com.au> --- Created attachment 191337 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191337&action=edit Bug 37486: Only build OAI-PMH set for one set at a time This change adds a "-s" parameter to build_oai_sets.pl, so that you can selectively build OAI-PMH sets. This is useful when you have many sets, and you just need to build or rebuild 1 set. Test plan: 0. Apply the patch and koha-plack --restart kohadev 1. Go to http://localhost:8081/cgi-bin/koha/admin/oai_sets.pl 2. Create setA and setB 3. Add mapping for setA: 245$a is equal to Gairm. 4. Add mapping for setB: 245$a is equal to Continuous delivery / 5. In the database, run the following SQL: select * from oai_sets; 6. Identify the ID for setB 7. Run the following command where XXXX is the ID for setB: perl misc/migration_tools/build_oai_sets.pl -v -s XXXX 8. Note that the only data added to the "oai_sets_biblios" table is for setB 9. prove t/db_dependent/OAI/Sets.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #191337|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37486 --- Comment #8 from David Nind <david@davidnind.com> --- Created attachment 192001 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192001&action=edit Bug 37486: Only build OAI-PMH set for one set at a time This change adds a "-s" parameter to build_oai_sets.pl, so that you can selectively build OAI-PMH sets. This is useful when you have many sets, and you just need to build or rebuild 1 set. Test plan: 0. Apply the patch and koha-plack --restart kohadev 1. Go to http://localhost:8081/cgi-bin/koha/admin/oai_sets.pl 2. Create setA and setB 3. Add mapping for setA: 245$a is equal to Gairm. 4. Add mapping for setB: 245$a is equal to Continuous delivery / 5. In the database, run the following SQL: select * from oai_sets; 6. Identify the ID for setB 7. Run the following command where XXXX is the ID for setB: perl misc/migration_tools/build_oai_sets.pl -v -s XXXX 8. Note that the only data added to the "oai_sets_biblios" table is for setB 9. prove t/db_dependent/OAI/Sets.t Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org