Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    How to delete a specific record from Primo?

    Article Type: Q&A

    • Product: Primo
    • Product Version: 4
    • Relevant for Installation Type: Dedicated-Direct; Local

    Question

    How to delete a specific record from Primo?

    Answer

    For every Primo Data Source that has records to delete:

    1. Log on to Primo BO server and create a delete file using the template in Additional Information
    2. Replace SOURCERECORDID with the value from control/sourcerecordid of the PNX to be deleted
    3. (Optional) To delete additional records
      1. Copy everything between the lines that start with the phrase "Copy everything"
      2. Paste what was copied above the line that starts with the phrase "Copy everything above this line"
      3. Replace SOURCERECORDID_2 with the value from control/sourcerecordid from another PNX record to be deleted
    4. Replace all instances of YYYY-MM-DD with the current year, month, and day
    5. Go to Back End, update the Pipe configuration to COPY method, and harvest the file created in Step 1.
    6. Run indexing_and_hotswapping job, so the record is physically removed from Primo Front End and database
    7. Check results in PNX viewer and Front End to verify the ILS records are deleted.

    Additional Information

    The template will only work for Data Sources that use the OAI or Static OAI File Splitter.

    See also Removing deleted ALEPH records from Primo

    Delete Record Template
    <?xml version="1.0"  encoding="UTF-8"?>
    <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
            http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
    	<ListRecords xmlns="">
    		<record>
    			<header status="deleted">
    				<identifier>SOURCERECORDID</identifier>
    				<datestamp>YYYY-MM-DD</datestamp>
    			</header>
    			<metadata/>
    		</record>
    <!-- Copy everything below this line to delete additional records
    		<record>
    			<header status="deleted">
    				<identifier>SOURCERECORID_2</identifier>
    				<datestamp>YYYY-MM-DD</datestamp>
    			</header>
    			<metadata/>
    		</record>
    	Copy everything above this line to delete additional records -->
    	</ListRecords>
    </OAI-PMH>


     


    • Article last edited: 21-Dec-2016