Advertisement
chrissharp123

Untitled

Jun 20th, 2023
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. pod2text Open-ILS/src/support-scripts/authority_control_fields.pl.in
  2. NAME
  3. authority_control_fields.pl - Controls fields in bibliographic records
  4. with authorities in Evergreen
  5.  
  6. SYNOPSIS
  7. "authority_control_fields.pl" [--configuration=*opensrf_core.conf*]
  8. [--refresh] [[--record=*record*[ --record=*record*]]] | [--all] |
  9. [--start_id=*start-ID* --end_id=*end-ID*] |
  10. [--days_back=*number-of-days*]
  11.  
  12. DESCRIPTION
  13. For a given set of records:
  14.  
  15. * Iterate through the list of fields that are controlled fields
  16.  
  17. * Iterate through the list of subfields that are controlled for that
  18. given field
  19.  
  20. * Search for a matching authority record for that combination of field
  21. + subfield(s)
  22.  
  23. * If we find a match, then add a $0 subfield to that field
  24. identifying the controlling authority record
  25.  
  26. * If we do not find a match, then insert a row into an
  27. "uncontrolled" table identifying the record ID, field, and
  28. subfield(s) that were not controlled
  29.  
  30. * Iterate through the list of floating subdivisions
  31.  
  32. * If we find a match, then add a $0 subfield to that field
  33. identifying the controlling authority record
  34.  
  35. * If we do not find a match, then insert a row into an
  36. "uncontrolled" table identifying the record ID, field, and
  37. subfield(s) that were not controlled
  38.  
  39. * If we changed the record, update it in the database
  40.  
  41. OPTIONS
  42. * -c *config-file*, --configuration=*config-file*
  43.  
  44. Specifies the OpenSRF configuration file used to connect to the
  45. OpenSRF router. Defaults to @sysconfdir@/opensrf_core.xml
  46.  
  47. * -r *record-ID*, --record=*record-ID*
  48.  
  49. Specifies the bibliographic record ID (found in the
  50. "biblio.record_entry.id" column) of the record to process. This
  51. option may be specified more than once to process multiple records
  52. in a single run.
  53.  
  54. * -a, --all
  55.  
  56. Specifies that all bibliographic records should be processed. For
  57. large databases, this may take an extraordinarily long amount of
  58. time.
  59.  
  60. * -r, --refresh
  61.  
  62. Specifies that all authority links should be removed from the target
  63. bibliographic record(s). This will effectively rewrite all authority
  64. linking anew.
  65.  
  66. * -s *start-ID*, --start_id=*start-ID*
  67.  
  68. Specifies the starting ID of the range of bibliographic records to
  69. process. This option is ignored unless it is accompanied by the -e
  70. or --end_id option.
  71.  
  72. * -e *end-ID*, --end_id=*end-ID*
  73.  
  74. Specifies the ending ID of the range of bibliographic records to
  75. process. This option is ignored unless it is accompanied by the -s
  76. or --start_id option.
  77.  
  78. * --days_back=*number-of-days*
  79.  
  80. Specifies that only bibliographic records that have been created in
  81. the past few days should be processed. You must specify how many
  82. days back to include. This option is incompatible with the -s and
  83. --start_id options.
  84.  
  85. EXAMPLES
  86. authority_control_fields.pl --start_id 1 --end_id 50000
  87.  
  88. Processes the bibliographic records with IDs between 1 and 50,000 using
  89. the default OpenSRF configuration file for connection information.
  90.  
  91. AUTHOR
  92. Dan Scott <dscott@laurentian.ca>
  93.  
  94. COPYRIGHT AND LICENSE
  95. Copyright 2010-2011 by Dan Scott
  96.  
  97. This program is free software; you can redistribute it and/or modify it
  98. under the terms of the GNU General Public License as published by the
  99. Free Software Foundation; either version 2 of the License, or (at your
  100. option) any later version.
  101.  
  102. This program is distributed in the hope that it will be useful, but
  103. WITHOUT ANY WARRANTY; without even the implied warranty of
  104. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  105. Public License for more details.
  106.  
  107. You should have received a copy of the GNU General Public License along
  108. with this program; if not, write to the Free Software Foundation, Inc.,
  109. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  110.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement