Skip to content

Docs: updated folder and screenshots for Best Hold Selection Sort Order#2

Open
spmorrison wants to merge 1 commit intomainfrom
images_Best_Hold_Selection_Sort_Order
Open

Docs: updated folder and screenshots for Best Hold Selection Sort Order#2
spmorrison wants to merge 1 commit intomainfrom
images_Best_Hold_Selection_Sort_Order

Conversation

@spmorrison
Copy link
Copy Markdown
Owner

No description provided.

spmorrison pushed a commit that referenced this pull request Aug 9, 2024
Public copy notes are now exported by `marc_export` in the 852
subfield z when the `--items` option is used.

To test:

1. Find some copies with copy notes where pub is true.

2. Export the bibs for these copies via `marc_export` with the
   `--items` option.

3. Check the 852s in the exported file to see that they have no
   subfiled z.

4. Apply the patch/commit, rebuild and install marc_export.

5. Repeat #2.

6. Check the output for the presence of subfield z in the 852 with the
   value from the copy notes from the database.

You can repeat this test with records that have non-public notes and
see that they do not show up in the 852.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
spmorrison pushed a commit that referenced this pull request Aug 9, 2024
Public copy tags are now exported by `marc_export` in the 852
subfield z when the `--items` option is used.

To test:

1. Find some copies with copy tags where pub is true.

2. Export the bibs for these copies via `marc_export` with the
   `--items` option.

3. Check the 852s in the exported file to see that they have no
   subfiled z.

4. Apply the patch/commit, rebuild and install marc_export.

5. Repeat #2.

6. Check the output for the presence of subfield z in the 852 with the
   value from the copy tags from the database. To distinguish from
   public copy notes, the public copy tags will have the tag type
   label and ": " prepended to the value.

The following can be run on the command line as a shortcut for
steps 2 and 5:

    {
    psql <<EOF
    select acn.record
    from asset.call_number acn
    join asset.copy
    on acn.id = copy.call_number
    join asset.copy_tag_copy_map map
    on map.copy = copy.id
    join asset.copy_tag tag
    on tag.id = map.tag
    and tag.pub is true
    where not copy.deleted
    and not acn.deleted
    EOF
    } | marc_export --items --format xml -e UTF-8 > items.xml

Be sure to fill in the appropriate database connection parameters
on the psql line.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
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

Successfully merging this pull request may close these issues.

1 participant